From 1250621ab9ea6ea93911be0f283c3bfcdceb0667 Mon Sep 17 00:00:00 2001
From: chenyibo <p-honggang.li@pcitc.com>
Date: 星期二, 30 三月 2021 18:03:59 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop

---
 src/components/BaseNav/SolidWaste/SolidWaste.js |   59 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/src/components/BaseNav/SolidWaste/SolidWaste.js b/src/components/BaseNav/SolidWaste/SolidWaste.js
index 6df5e3e..85f3235 100644
--- a/src/components/BaseNav/SolidWaste/SolidWaste.js
+++ b/src/components/BaseNav/SolidWaste/SolidWaste.js
@@ -67,7 +67,7 @@
             // console.log(this.map.setCenter([e.target.getLatLng().lat, e.target.getLatLng().lng]))
             // this.map.flyTo([e.target.getLatLng().lat, e.target.getLatLng().lng])
             // this.map.panTo([e.target.getLatLng().lat, e.target.getLatLng().lng], 100)
-            this.setPanTo(e.target.getLatLng(), 30)
+            this.setPanTo(e.target.getLatLng(), 250)
             this.EffectOfPulse(e.target.getLatLng())
             this.SolidWastePopup.setData(data[i], 'gufei')
             return this.SolidWastePopup.$el
@@ -87,8 +87,9 @@
     position = this.map.latLngToLayerPoint(position)
     position.y += value
     position = this.map.layerPointToLatLng(position)
-    this.map.setView(position)
-    // this.map.flyTo(position)
+    // this.map.setView(position)
+    this.map.flyTo(position)
+    // this.map.panTo(position)
   }
 
   // 鍥哄簾鐐瑰嚮杩涜鐨� 鍐呭鐨勮缃�
@@ -121,32 +122,32 @@
   // 鑴夊啿鏁堟灉璁剧疆瀹炵幇
   EffectOfPulse (position, markers, layerGroup) {
     // 鍖哄垎鐩存帴鎵ц 鍜屽垽鏂墽琛岀殑涓嶅悓鍖哄埆
-    var differentColor = ''
-    if (markers) {
-      differentColor = '#ff0000'
-    } else {
-      differentColor = '#98FB98'
-    }
-    // 鍧愭爣鏁版嵁锛氭姤璀︿紶杩涙潵鐨勬槸鏁扮粍 / 鐐瑰嚮浼犺繘鏉ョ殑鏄痮bject
-    var FinalPosition = position instanceof Array ? {
-      lat: position[0],
-      lng: position[1]
-    } : position
-    // 鎻掍欢 鏁堟灉瀹炵幇
-    var pulsingIcon = this.L.icon.pulse({
-      iconSize: [20, 20],
-      color: differentColor,
-      fillColor: ''
-    })
-    if (markers) {
-      // markers.push(this.L.marker(FinalPosition, { icon: pulsingIcon }))
-      // this.L.layerGroup(markers).addLayer(layerGroup)
-    } else {
-      var picGroupMarker = new this.L.FeatureGroup()
-      this.L.marker(FinalPosition, { icon: pulsingIcon }).addTo(picGroupMarker)
-      this.pulseHeighLightMarker = picGroupMarker.addTo(this.SolidWasteLayerGroup)
-      this.PulseCountSetting()
-    }
+    // var differentColor = ''
+    // if (markers) {
+    //   differentColor = '#ff0000'
+    // } else {
+    //   differentColor = '#98FB98'
+    // }
+    // // 鍧愭爣鏁版嵁锛氭姤璀︿紶杩涙潵鐨勬槸鏁扮粍 / 鐐瑰嚮浼犺繘鏉ョ殑鏄痮bject
+    // var FinalPosition = position instanceof Array ? {
+    //   lat: position[0],
+    //   lng: position[1]
+    // } : position
+    // // 鎻掍欢 鏁堟灉瀹炵幇
+    // var pulsingIcon = this.L.icon.pulse({
+    //   iconSize: [20, 20],
+    //   color: differentColor,
+    //   fillColor: ''
+    // })
+    // if (markers) {
+    //   // markers.push(this.L.marker(FinalPosition, { icon: pulsingIcon }))
+    //   // this.L.layerGroup(markers).addLayer(layerGroup)
+    // } else {
+    //   var picGroupMarker = new this.L.FeatureGroup()
+    //   this.L.marker(FinalPosition, { icon: pulsingIcon }).addTo(picGroupMarker)
+    //   this.pulseHeighLightMarker = picGroupMarker.addTo(this.SolidWasteLayerGroup)
+    //   this.PulseCountSetting()
+    // }
   }
 
   // 瀵瑰浘鏍囪剦鍐� 杩涜set璁剧疆  // 楂樹寒鍥惧眰

--
Gitblit v1.8.0