|
@ -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(); |
|
|