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';
|
import { handleGetServerpartList, handleGetServerPartListJava } from '../../service';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import yunNanData from '../../../../options/anhuiLine.js'
|
import yunNanData from '../../../../options/anhuiLine.js'
|
||||||
|
// @ts-ignore
|
||||||
import YNHighWayLine from '../../../../options/YNHighWayLine.js'
|
import YNHighWayLine from '../../../../options/YNHighWayLine.js'
|
||||||
|
|
||||||
// 地图实例
|
// 地图实例
|
||||||
|
|||||||
@ -485,9 +485,9 @@ const handleGetHighWayData = async () => {
|
|||||||
const paths = data.route?.paths?.[0]?.steps || [];
|
const paths = data.route?.paths?.[0]?.steps || [];
|
||||||
const coords: number[][] = [];
|
const coords: number[][] = [];
|
||||||
|
|
||||||
paths.forEach(step => {
|
paths.forEach((step: any) => {
|
||||||
if (step.polyline) {
|
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);
|
const [lng, lat] = p.split(",").map(Number);
|
||||||
return [lng, lat];
|
return [lng, lat];
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user