Files
web/packages/design-system/lib/components/Map/mapConstants.ts
Matilda Landström 00689607bc Merged in feat/SW-2241-country-map (pull request #2808)
Feat/SW-2241 country map

Approved-by: Erik Tiekstra
Approved-by: Chuma Mcphoy (We Ahead)
2025-09-24 12:04:01 +00:00

38 lines
822 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 HOTEL_PAGE = {
DEFAULT_ZOOM: 14,
MAX_ZOOM: 18,
MIN_ZOOM: 8,
} as const
export const DESTINATION_PAGE = {
DEFAULT_ZOOM: 10,
MAX_ZOOM: 18,
MIN_ZOOM: 3,
}
export const CITY_PAGE = {
DEFAULT_ZOOM: 10,
SELECTED_HOTEL_ZOOM: 15,
MAX_ZOOM: 18,
MIN_ZOOM: 3,
} as const
export const COUNTRY_PAGE = {
DEFAULT_ZOOM: 3,
SELECTED_HOTEL_ZOOM: 15,
MAX_ZOOM: 18,
MIN_ZOOM: 3,
} as const
export type MapType =
| typeof HOTEL_PAGE
| typeof DESTINATION_PAGE
| typeof CITY_PAGE
| typeof COUNTRY_PAGE