mirror of
https://github.com/15000rpm/Pole-Mapper.git
synced 2026-10-09 02:35:09 +09:00
타임 슬라이더의 변경사항이 지도에도 적용되도록 수정
This commit is contained in:
+2
-1
@@ -143,6 +143,7 @@ function App() {
|
||||
if (levelFilter !== 'all' && pole.level !== levelFilter) return;
|
||||
if (guFilter !== 'all' && pole.gu !== guFilter) return;
|
||||
if (dongFilter !== 'all' && pole.dong !== dongFilter) return;
|
||||
if (timeFilterEnabled && pole.timestamp > timeFilterCutoff) return;
|
||||
idSet.add(pole.id);
|
||||
const feature = new Feature({
|
||||
geometry: new Point(fromLonLat([pole.lng, pole.lat])),
|
||||
@@ -166,7 +167,7 @@ function App() {
|
||||
);
|
||||
source.addFeature(feature);
|
||||
});
|
||||
}, [poles, levelFilter, guFilter, dongFilter]);
|
||||
}, [poles, levelFilter, guFilter, dongFilter, timeFilterEnabled, timeFilterCutoff]);
|
||||
|
||||
useEffect(() => {
|
||||
syncMarkers();
|
||||
|
||||
Reference in New Issue
Block a user