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
10 lines
374 B
TypeScript
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
|