Browse Source

点击列表定位点位时地图放大

彭宇 3 years ago
parent
commit
57833bc939
3 changed files with 4 additions and 0 deletions
  1. 2 0
      src/views/event.vue
  2. 1 0
      src/views/forest.vue
  3. 1 0
      src/views/monitor.vue

+ 2 - 0
src/views/event.vue

@@ -767,6 +767,7 @@
             information.isAggregation = false;
             information.icon = "marker";
             that.markersMapList.push(information)
+            this.$refs.supermapNotProcessed.controlLevel(12)
             that.$refs.supermapNotProcessed.dropLocation(that.information[4].content,that.information[3].content)
             // 查询火点附近摄像头
             selectFjsxt(that.information[3].content,that.information[4].content).then(response => {
@@ -1305,6 +1306,7 @@
         })
       },
       dropLocation(lat,lng) {
+        this.$refs.supermap.controlLevel(12)
         this.$refs.supermap.dropLocation(lat,lng)
       },
       /** ----------------------------------摄像头预览开始------------------------------------- */

+ 1 - 0
src/views/forest.vue

@@ -1020,6 +1020,7 @@
             information.isAggregation = false;
             information.icon = "marker";
             that.markersMapList.push(information)
+            that.$refs.supermapNotProcessed.controlLevel(12)
             that.$refs.supermapNotProcessed.dropLocation(that.information[4].content,that.information[3].content)
             // 查询火点附近摄像头
             selectFjsxt(that.information[3].content,that.information[4].content).then(response => {

+ 1 - 0
src/views/monitor.vue

@@ -324,6 +324,7 @@
         })
       },
       dropLocation(lat,lng) {
+        this.$refs.supermap.controlLevel(12)
         this.$refs.supermap.dropLocation(lat,lng)
       },
       selectCameraByDeptId(depId) {