Browse Source

事件详情清除图标

wang_xy 2 years ago
parent
commit
acc9be23ce
2 changed files with 10 additions and 4 deletions
  1. 4 4
      src/components/supermap-2.5d.vue
  2. 6 0
      src/views/eventdetailsdialog.vue

+ 4 - 4
src/components/supermap-2.5d.vue

@@ -316,9 +316,9 @@
           // let road_name_url = that.superMapRootUrl+'/3D-road_Name_S/rest/realspace';
           // that.road_name = that.scene.open(road_name_url);
           //
-          // 8.添加水系NAME
-          let shuixi_name_url = that.superMapRootUrl + '/3D-shuixi_Name/rest/realspace';
-          that.shuixi_name = that.scene.open(shuixi_name_url);
+          // // 8.添加水系NAME
+          // let shuixi_name_url = that.superMapRootUrl + '/3D-shuixi_Name/rest/realspace';
+          // that.shuixi_name = that.scene.open(shuixi_name_url);
 
           //9.添加县界和乡镇界
           let layer_xianjie = that.viewer.imageryLayers.addImageryProvider(new Cesium.SuperMapImageryProvider({
@@ -594,4 +594,4 @@
     opacity: 0;
     transform: translateY(-10rem);
   }
-</style>
+</style>

+ 6 - 0
src/views/eventdetailsdialog.vue

@@ -2233,6 +2233,7 @@ export default {
         }
         setTimeout(() => {
           that.$refs.supermapDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
+          that.$refs.supermapDialog.clearM(true)
           that.$refs.supermapDialog.clearM(false)
           that.$refs.supermapDialog.setMarkersRadius([markersMap])
           that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
@@ -2263,6 +2264,8 @@ export default {
           markersMap.lng = res.data.centermonitorTCamera.longitude
           markersMap.lat = res.data.centermonitorTCamera.latitude
           setTimeout(() => {
+            that.$refs.supermapDialog.clearM(true)
+            that.$refs.supermapDialog.clearM(false)
             that.$refs.supermapDialog.setMarkers([markersMap])
           }, 2000)
         }
@@ -2318,6 +2321,7 @@ export default {
           markersMap.radius = res.data.eventdetail[0].fireRadius
         }
         setTimeout(() => {
+          that.$refs.supermapDialog.clearM(true)
           that.$refs.supermapDialog.clearM(false)
           if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0].fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius > 0) {
             that.$refs.supermapDialog.setMarkersRadius([markersMap])
@@ -2351,6 +2355,8 @@ export default {
           markersMap.lng = res.data.centermonitorTCamera.longitude
           markersMap.lat = res.data.centermonitorTCamera.latitude
           setTimeout(() => {
+            that.$refs.supermapDialog.clearM(true)
+            that.$refs.supermapDialog.clearM(false)
             that.$refs.supermapDialog.setMarkers([markersMap])
           }, 2000)
         }