Merged in feat/SW-2041-map-zoom-buttons (pull request #2550)

Feat(SW-661): Hotel page map zoom restrictions

* fix(SW-2041): update tokens

* chore(SW-2041): restrict zooming

* fix(SW-2041): remove ref

* fix(SW-2041): create map zoom hook


Approved-by: Erik Tiekstra
Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
Matilda Landström
2025-08-13 07:50:39 +00:00
parent 28e9a043b8
commit 5397437628
4 changed files with 75 additions and 33 deletions

View File

@@ -3,3 +3,7 @@ export const MAP_RESTRICTIONS = {
// See https://developers.google.com/maps/documentation/javascript/reference/map#MapRestriction.latLngBounds
latLngBounds: { north: 85, south: -85, west: -180, east: 180 },
}
export const DEFAULT_ZOOM = 14
export const MAX_ZOOM = 18
export const MIN_ZOOM = 8