update
This commit is contained in:
parent
ea104ba2f7
commit
08b0e8cb95
@ -5,6 +5,7 @@ import { GaodeMap, LineLayer, PointLayer, Scene } from '@antv/l7';
|
||||
import { handleGetServerpartList, handleGetServerPartListJava } from '../../service';
|
||||
// @ts-ignore
|
||||
import yunNanData from '../../../../options/anhuiLine.js'
|
||||
// @ts-ignore
|
||||
import YNHighWayLine from '../../../../options/YNHighWayLine.js'
|
||||
|
||||
// 地图实例
|
||||
|
||||
@ -485,9 +485,9 @@ const handleGetHighWayData = async () => {
|
||||
const paths = data.route?.paths?.[0]?.steps || [];
|
||||
const coords: number[][] = [];
|
||||
|
||||
paths.forEach(step => {
|
||||
paths.forEach((step: any) => {
|
||||
if (step.polyline) {
|
||||
const points = step.polyline.split(";").map(p => {
|
||||
const points = step.polyline.split(";").map((p: any) => {
|
||||
const [lng, lat] = p.split(",").map(Number);
|
||||
return [lng, lat];
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user