Skip to content

Commit

Permalink
refactor: remove render markers in show route mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Nov 25, 2024
1 parent f28ab06 commit b49100e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/map/MapView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@
}
function updateMarkers() {
if (showRoute) {
const stopsToShow = allStops.filter((s) => s.routeIds.includes(selectedRoute.id));
stopsToShow.forEach((s) => addMarker(s));
} else if (!selectedRoute && !isTripPlanModeActive) {
if (!selectedRoute && !isTripPlanModeActive) {
allStops.forEach((s) => addMarker(s));
}
}
Expand Down

0 comments on commit b49100e

Please sign in to comment.