Forráskód Böngészése

地图落点聚合问题

wang_xy 2 éve
szülő
commit
16347d9fac
3 módosított fájl, 21 hozzáadás és 21 törlés
  1. 8 8
      src/views/eventdetailsdialog.vue
  2. 8 8
      src/views/firespread.vue
  3. 5 5
      src/views/forest.vue

+ 8 - 8
src/views/eventdetailsdialog.vue

@@ -1421,11 +1421,11 @@ export default {
                 click: '',
                 parameter: '',
                 keepBindPopup: false,
-                isAggregation: false
-              }
-              if (res.data.length > 50) {
-                markersMap.isAggregation = true
+                isAggregation: true
               }
+              // if (res.data.length > 50) {
+              //   markersMap.isAggregation = true
+              // }
               if (type == 'qsk') {
                 markersMap.icon = 'sj-icon-waterintake'
               } else if (type == 'sh') {
@@ -1907,7 +1907,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) {
@@ -1945,7 +1945,7 @@ export default {
             click: 'preview',
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
           }
           markersMap.bindPopupHtml = '<div class="map-tip">' +
@@ -1991,7 +1991,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) {
@@ -2031,7 +2031,7 @@ export default {
             click: 'preview',
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
           }
           markersMap.bindPopupHtml = '<div class="map-tip">' +

+ 8 - 8
src/views/firespread.vue

@@ -1369,11 +1369,11 @@
                   click: '',
                   parameter: '',
                   keepBindPopup: false,
-                  isAggregation: false
-                }
-                if (res.data.length > 50) {
-                  markersMap.isAggregation = true
+                  isAggregation: true
                 }
+                // if (res.data.length > 50) {
+                //   markersMap.isAggregation = true
+                // }
                 if (type == 'qsk') {
                   markersMap.icon = 'sj-icon-waterintake'
                 } else if (type == 'sh') {
@@ -1854,7 +1854,7 @@
             click: '',
             parameter: '',
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
           }
           if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
@@ -1892,7 +1892,7 @@
               click: 'preview',
               parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
               keepBindPopup: false,
-              isAggregation: false,
+              isAggregation: true,
               radius: 0
             }
             markersMap.bindPopupHtml = '<div class="map-tip">' +
@@ -1938,7 +1938,7 @@
             click: '',
             parameter: '',
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
           }
           if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
@@ -1978,7 +1978,7 @@
               click: 'preview',
               parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
               keepBindPopup: false,
-              isAggregation: false,
+              isAggregation: true,
               radius: 0
             }
             markersMap.bindPopupHtml = '<div class="map-tip">' +

+ 5 - 5
src/views/forest.vue

@@ -894,11 +894,11 @@
                 click: '',
                 parameter: '',
                 keepBindPopup: false,
-                isAggregation: false
-              }
-              if (res.data.length > 200) {
-                markersMap.isAggregation = true
+                isAggregation: true
               }
+              // if (res.data.length > 200) {
+              //   markersMap.isAggregation = true
+              // }
               if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount == 0) {
                 markersMap.click = 'showEventDialog'
                 markersMap.icon = 'sj-icon-map-xinshangbao'
@@ -1045,7 +1045,7 @@
           click: '',
           parameter: '',
           keepBindPopup: false,
-          isAggregation: false
+          isAggregation: true
         }
         if (event.eventStatusValue == 'forest_event_status_1' && event.urgeCount == 0) {
           markersMap.click = 'showEventDialog'