Skip to content

Commit eeaee72

Browse files
committed
DBC22-5246: removed the logic to set all feature as invisible to prevent icons from disappearing when page refreshed
1 parent 03d72bc commit eeaee72

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

  • src/frontend/src/Components/map

src/frontend/src/Components/map/Map.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -797,13 +797,6 @@ export default function DriveBCMap(props) {
797797
useEffect(() => {
798798
setLoadingLayers(getInitialLoadingLayers());
799799

800-
// Mark all features as invisible
801-
Object.values(mapLayers.current).forEach(layer => {
802-
layer.getSource().getFeatures().forEach(feature => {
803-
feature.setStyle(null);
804-
});
805-
});
806-
807800
// Use only selectedRoute in cam details page
808801
const routesData = isCamDetail ? (selectedRoute ? [selectedRoute] : null) : searchedRoutes;
809802
loadLayer(

0 commit comments

Comments
 (0)