Skip to content

Commit

Permalink
Merge pull request #42 from OneBusAway/select-stop
Browse files Browse the repository at this point in the history
fix: added the url pushstate when search for a stop/route
  • Loading branch information
aaronbrethorst authored Sep 3, 2024
2 parents 02c130e + fcb07d2 commit a420b77
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 a420b77

Please sign in to comment.