Skip to content

Commit

Permalink
fixing inconsistency between initial zoom level and after dismissing …
Browse files Browse the repository at this point in the history
…active marker
  • Loading branch information
sam9116 committed Nov 11, 2024
1 parent 6198558 commit 201b779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Odyssey/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function Map({ concerts, userLocation, mapStyle }) {

if (activeMarker === null) {
mapRef.current.fitBounds(mapBoundsRef.current, 10);
mapRef.current.setZoom(mapRef.current.getZoom() - 0.2);
mapRef.current.setZoom(mapRef.current.getZoom() - 0.5);
}
else {
var index = markers.findIndex(marker => marker.id === activeMarker);
Expand Down

0 comments on commit 201b779

Please sign in to comment.