Explorar o código

事件列表点击定位层级放到最大

彭宇 %!s(int64=2) %!d(string=hai) anos
pai
achega
5db1ddbd31
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 5 0
      src/components/supermap.vue
  2. 1 1
      src/views/forest.vue

+ 5 - 0
src/components/supermap.vue

@@ -1290,6 +1290,11 @@
 					duration: 2
 				})
 			},
+			dropLocation: function(lat, lng,leve) { //落点定位
+				this.map.flyTo([lat, lng], leve, {
+					duration: 2
+				})
+			},
 			dropLocation10: function(lat, lng) { //落点定位
 				this.map.flyTo([lat, lng], 10, {
 					duration: 2

+ 1 - 1
src/views/forest.vue

@@ -616,7 +616,7 @@
       //   })
       // },
       dropLocation(lat, lng) {
-        this.$refs.supermap.dropLocation(lat, lng)
+        this.$refs.supermap.dropLocation(lat, lng,18)
       },
       showEventDialog(eventCode) {
         //事件信息弹出