This commit is contained in:
ylj20011123 2025-08-18 10:55:06 +08:00
parent ea104ba2f7
commit 08b0e8cb95
2 changed files with 3 additions and 2 deletions

View File

@ -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'
// //

View File

@ -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];
}); });