Renxy преди 2 години
родител
ревизия
f5157f4b36
променени са 2 файла, в които са добавени 6 реда и са изтрити 5 реда
  1. 1 1
      src/components/Map/Lushu.js
  2. 5 4
      src/components/centerPage/charts/BMap.js

+ 1 - 1
src/components/Map/Lushu.js

@@ -35,7 +35,7 @@ class Lushu extends PureComponent {
       geodesic: true,
       autoCenter: true,
       icon: this.icon,
-      speed: 10000,
+      speed: 50,
       enableRotation: false,
       onComplete: () => {
         this.clearLushu();

+ 5 - 4
src/components/centerPage/charts/BMap.js

@@ -130,9 +130,10 @@ class BMap extends PureComponent {
 
     //供水页面只展示供水厂   污水页面只展示污水厂
     if (actives?.findIndex((item) => item == ShowIconType.SupplyWorks) !== -1)
-      return [...WaterWorks[1], ...list];
-    if (actives?.findIndex((item) => item == ShowIconType.SewageWorks) !== -1)
-      return [...WaterWorks[0], ...list];
+      return [WaterWorks[1], ...list];
+    if (actives?.findIndex((item) => item == ShowIconType.SewageWorks) !== -1) {
+      return [WaterWorks[0], ...list];
+    }
 
     return list;
   }
@@ -160,7 +161,7 @@ class BMap extends PureComponent {
             height: "100%",
           }}
           center={new BMapGL.Point(117.124099, 36.659565)} //{ lng: 116.402544, lat: 39.928216 }
-          minZoom={10}
+          minZoom={12}
           zoom={11}
           mapStyleV2={{
             styleJson,