Browse Source

(*)消防站展示优化

master
peng.peng 1 year ago
parent
commit
065591000a
  1. 4
      super-screen/client/src/sections/fire-control/containers/gis.js

4
super-screen/client/src/sections/fire-control/containers/gis.js

@ -60,7 +60,7 @@ function Map(props) {
} }
useEffect(() => { useEffect(() => {
if (!delay && alarmList?.length > 0 && emergencyList['xfjy']) { if (!delay && (alarmList?.length > 0 || emergencyList['xfjy'])) {
map.clearMap() map.clearMap()
map && renderMarkers() map && renderMarkers()
map && renderAlarms() map && renderAlarms()
@ -301,7 +301,7 @@ function Map(props) {
</div> </div>
{ {
propTab == 'overview' && <div className='alarm_confirm'> propTab !== 'overview' && <div className='alarm_confirm'>
<div className='hande_button' <div className='hande_button'
onClick={() => { onClick={() => {
map.clearInfoWindow(); map.clearInfoWindow();

Loading…
Cancel
Save