|
|
@@ -57,13 +57,13 @@ onMounted(() => {
|
|
|
const beginMarker = new AMap.Marker({
|
|
|
position: props.pathData[0],
|
|
|
offset: new AMap.Pixel(-24, -48),
|
|
|
- icon: "/mark/begin.png",
|
|
|
+ icon: "./mark/begin.png",
|
|
|
title: "起始点"
|
|
|
})
|
|
|
const endMarker = new AMap.Marker({
|
|
|
position: props.pathData[props.pathData.length - 1],
|
|
|
offset: new AMap.Pixel(-24, -48),
|
|
|
- icon: "/mark/end.png",
|
|
|
+ icon: "./mark/end.png",
|
|
|
title: "终点"
|
|
|
})
|
|
|
map.add([beginMarker, endMarker])
|
|
|
@@ -75,7 +75,7 @@ onMounted(() => {
|
|
|
const marker = new AMap.Marker({
|
|
|
position: [point.longtitude, point.latitude],
|
|
|
offset: new AMap.Pixel(-15, -28),
|
|
|
- icon: "/mark/daka.png",
|
|
|
+ icon: "./mark/daka.png",
|
|
|
title: `打卡点${index + 1}`
|
|
|
})
|
|
|
map.add(marker)
|
|
|
@@ -89,7 +89,7 @@ onMounted(() => {
|
|
|
const marker = new AMap.Marker({
|
|
|
position: markerLocation,
|
|
|
offset: new AMap.Pixel(-15, -28),
|
|
|
- icon: "/mark/log.png",
|
|
|
+ icon: "./mark/log.png",
|
|
|
title: point.address
|
|
|
})
|
|
|
|