Skip to content

Commit

Permalink
fix: added the url pushstate when search for a stop/route
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunsinghofficial committed Sep 3, 2024
1 parent a4fec1c commit fcb07d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/map/GoogleMap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
// show the same stop twice on the map
if (stop.id != selectedStopID) {
addMarker(stop);
pushState(`/stops/${stop.id}`);
map.setCenter({ lat: stop.lat, lng: stop.lon });
}
}
Expand Down

0 comments on commit fcb07d2

Please sign in to comment.