feat(): 监测数据开发

lsf-dev
李神峰 2025-06-13 09:28:51 +08:00
parent fa9121b76e
commit afcb324911
1 changed files with 10 additions and 1 deletions

View File

@ -85,7 +85,14 @@ export default function ActionDock({ }) {
const viewItem = useMemo(() => viewKey ? VIEWS.filter(o => o.id === viewKey)[0].children : VIEWS, [viewKey, VIEWS])
const dispatch = useDispatch();
const removePoint = () => {
const map = window.__mapref;
const layer = map.getLayer('关联站点')
if (layer) {
map.removeLayer('关联站点');
map.removeSource('关联站点');
}
}
return (
<div className="dp-actiondock">
@ -97,6 +104,7 @@ export default function ActionDock({ }) {
setViewKey(null)
dispatch.runtime.setScya(false)
dispatch.runtime.setGwtc(false)
removePoint()
}}>
<div className={clsx('button', { active: false })}>
<img width={40} style={{ marginLeft: '5px' }} src={'/assets/pump/退出.png'} />
@ -136,6 +144,7 @@ export default function ActionDock({ }) {
} else {
sessionStorage.setItem('point','')
}
removePoint()
}
}}>
<div className={clsx('button', { active: o.id===200?(view===207||view===203||view===205||view===206||view===200):view === o.id })}>