|
@@ -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,
|