瀏覽代碼

base64图片 地图聚合

qinhouyu 2 年之前
父節點
當前提交
8f3da36317
共有 3 個文件被更改,包括 22 次插入13 次删除
  1. 0 1
      src/views/eventdetailsdialog.vue
  2. 17 11
      src/views/firespread.vue
  3. 5 1
      src/views/forest.vue

+ 0 - 1
src/views/eventdetailsdialog.vue

@@ -232,7 +232,6 @@
                   style="position: absolute; top: 0; left: 0"
                   :mapDiv="'forestWarmSuperMap'"
                   :mapSite="{
-                    zoom: 12,
                     doubleClickZoom: false,
                     dragging: false,
                     scrollWheelZoom: false,

+ 17 - 11
src/views/firespread.vue

@@ -72,7 +72,7 @@
                 <!-- 地图 -->
                 <supermapDialog1 ref="supermapDialog1" style="position: absolute; top:0;left: 0;"
                                  :mapDiv="'forestWarmSuperMap'"
-                                 :mapSite="{zoom:16,doubleClickZoom:true,dragging:true,scrollWheelZoom:true}" :codes="['9fa5']"
+                                 :mapSite="{doubleClickZoom:true,dragging:true,scrollWheelZoom:true}" :codes="['9fa5']"
                                  :isSideBySide="false" @preview="preview" />
                 <!-- 地图end -->
               </div>
@@ -3187,11 +3187,14 @@ export default {
           markersMapList.push(markersMap)
         }
         setTimeout(() => {
-          that.$refs.supermapDialog1.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
-          that.$refs.supermapDialog1.clearM(false)
-          that.$refs.supermapDialog1.clearM(true)
-          that.$refs.supermapDialog1.setMarkersRadius(markersMapList)
-        }, 2000)
+          that.$refs.supermapDialog1.dropLocation10(
+            res.data.catalogue.latitude,
+            res.data.catalogue.longitude
+          );
+          that.$refs.supermapDialog1.clearM(false);
+          that.$refs.supermapDialog1.clearM(true);
+          that.$refs.supermapDialog1.setMarkersRadius(markersMapList);
+        }, 2000);
       })
     },
     refreshEvent(eventCode) {
@@ -3284,11 +3287,14 @@ export default {
           markersMapList.push(markersMap)
         }
         setTimeout(() => {
-          that.$refs.supermapDialog1.clearM(false)
-          that.$refs.supermapDialog1.clearM(true)
-          that.$refs.supermapDialog1.setMarkersRadius(markersMapList)
-          that.$refs.supermapDialog1.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
-        }, 2000)
+          that.$refs.supermapDialog1.dropLocation10(
+            res.data.catalogue.latitude,
+            res.data.catalogue.longitude
+          );
+          that.$refs.supermapDialog1.clearM(false);
+          that.$refs.supermapDialog1.clearM(true);
+          that.$refs.supermapDialog1.setMarkersRadius(markersMapList);
+        }, 2000);
       })
     },
     refreshEventDialog(eventCode) {

File diff suppressed because it is too large
+ 5 - 1
src/views/forest.vue