|
@@ -37,7 +37,7 @@ export function useGMapTrajectory() {
|
|
|
strokeWeight: 6,//线宽
|
|
strokeWeight: 6,//线宽
|
|
|
strokeStyle: 'solid',
|
|
strokeStyle: 'solid',
|
|
|
})
|
|
})
|
|
|
- const serialList = list.filter((item) => [2, 3].includes(item.type));
|
|
|
|
|
|
|
+ const serialList = list.filter((item) => item.show_point);
|
|
|
// 序号
|
|
// 序号
|
|
|
const text = serialList.map((item, index) => {
|
|
const text = serialList.map((item, index) => {
|
|
|
return new AMap.Text({
|
|
return new AMap.Text({
|
|
@@ -83,7 +83,7 @@ export function useGMapTrajectory() {
|
|
|
});
|
|
});
|
|
|
distances.push(distanceText);
|
|
distances.push(distanceText);
|
|
|
}
|
|
}
|
|
|
- const other=[startMarker, polyline, ...text, ...circles, ...distances];
|
|
|
|
|
|
|
+ const other = [startMarker, polyline, ...text, ...circles, ...distances];
|
|
|
root.$map.add(other);
|
|
root.$map.add(other);
|
|
|
// 自动缩放地图到合适的视野级别
|
|
// 自动缩放地图到合适的视野级别
|
|
|
root.$map.setFitView(other);
|
|
root.$map.setFitView(other);
|