diff --git a/src/page/index/components/PageMap/PageMap.vue b/src/page/index/components/PageMap/PageMap.vue index 3696551..f5b480d 100644 --- a/src/page/index/components/PageMap/PageMap.vue +++ b/src/page/index/components/PageMap/PageMap.vue @@ -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' // 地图实例 diff --git a/src/page/index/index.vue b/src/page/index/index.vue index a89532a..57bc76d 100644 --- a/src/page/index/index.vue +++ b/src/page/index/index.vue @@ -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]; });