Procházet zdrojové kódy

修改事件资源落点聚合

彭宇 před 2 roky
rodič
revize
5369733622
2 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 1 1
      src/components/supermap.vue
  2. 5 5
      src/views/firespread.vue

+ 1 - 1
src/components/supermap.vue

@@ -636,7 +636,7 @@ export default {
           //设置为true时显示聚类所占据的范围
           showCoverageOnHover: true,
           //设置为true时会向低一级聚类缩放
-          zoomToBoundsOnClick: true,
+          zoomToBoundsOnClick: false,
           //增加点位时增加聚合动画(否则会出问题)
           animateAddingMarkers: true,
           //最大缩放级别点击聚合图标展开图标

+ 5 - 5
src/views/firespread.vue

@@ -2398,7 +2398,7 @@ export default {
                 click: '',
                 parameter: '',
                 keepBindPopup: false,
-                isAggregation: false
+                isAggregation: true
               }
               if (res.data.length > 50) {
                 markersMap.isAggregation = true
@@ -2902,7 +2902,7 @@ export default {
           click: '',
           parameter: '',
           keepBindPopup: false,
-          isAggregation: false,
+          isAggregation: true,
           radius: 0
         }
         if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
@@ -2941,7 +2941,7 @@ export default {
             click: 'preview',
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory,name:res.data.centermonitorTCamera.name},
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
           }
           markersMap.bindPopupHtml = '<div class="map-tip">' +
@@ -2998,7 +2998,7 @@ export default {
           click: '',
           parameter: '',
           keepBindPopup: false,
-          isAggregation: false,
+          isAggregation: true,
           radius: 0
         }
         if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
@@ -3039,7 +3039,7 @@ export default {
             click: 'preview',
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory,name:res.data.centermonitorTCamera.cameraName},
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
           }
           markersMap.bindPopupHtml = '<div class="map-tip">' +