Files
web/apps/scandic-web/constants/map.ts
Matilda Landström 5397437628 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
2025-08-13 07:50:39 +00:00

10 lines
374 B
TypeScript

export const MAP_RESTRICTIONS = {
// Restrict the map to the entire world, this avoids showing a grey area.
// 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