38 lines
822 B
TypeScript
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
|