Browse Source

✨ feat: 更新打卡点样式

Pchen. 9 months ago
parent
commit
76918f958c
2 changed files with 2 additions and 2 deletions
  1. BIN
      public/mark/daka.png
  2. 2 2
      src/components/Map/MapContainer.vue

BIN
public/mark/daka.png


+ 2 - 2
src/components/Map/MapContainer.vue

@@ -74,7 +74,7 @@ onMounted(() => {
         props.point_list.forEach((point, index) => {
         props.point_list.forEach((point, index) => {
           const marker = new AMap.Marker({
           const marker = new AMap.Marker({
             position: [point.longtitude, point.latitude],
             position: [point.longtitude, point.latitude],
-            offset: new AMap.Pixel(-24, -48),
+            offset: new AMap.Pixel(-15, -28),
             icon: "/mark/daka.png",
             icon: "/mark/daka.png",
             title: `打卡点${index + 1}`
             title: `打卡点${index + 1}`
           })
           })
@@ -88,7 +88,7 @@ onMounted(() => {
           const markerLocation = [Number(point.jingwei[1]), Number(point.jingwei[0])]
           const markerLocation = [Number(point.jingwei[1]), Number(point.jingwei[0])]
           const marker = new AMap.Marker({
           const marker = new AMap.Marker({
             position: markerLocation,
             position: markerLocation,
-            offset: new AMap.Pixel(-12, -24),
+            offset: new AMap.Pixel(-15, -28),
             icon: "/mark/log.png",
             icon: "/mark/log.png",
             title: point.address
             title: point.address
           })
           })