Browse Source

feature_20250827_地图添加搜索当前范围功能

zhujindu 3 months ago
parent
commit
c415c80b77
2 changed files with 3 additions and 4 deletions
  1. BIN
      src/assets/mapLocation.png
  2. 3 4
      src/views/deviceOutside/rangeStore.vue

BIN
src/assets/mapLocation.png


+ 3 - 4
src/views/deviceOutside/rangeStore.vue

@@ -140,11 +140,10 @@
         <!-- 地图中心坐标 -->
         <bm-marker
           :position="{ lng: currentCenter.lng, lat: currentCenter.lat }"
-          :dragging="true"
-          animation="BMAP_ANIMATION_BOUNCE"
           :icon="{
-            url: 'http://developer.baidu.com/map/jsdemo/img/location.gif',
-            size: { width: 14, height: 23 },
+            // url: 'http://developer.baidu.com/map/jsdemo/img/location.gif',
+            url: require('@/assets/mapLocation.png'),
+            size: { width: 42, height: 80 },
           }">
         </bm-marker>
         <bm-marker