mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
17dd6b7caa
Add a corner button on the Leaflet trip map that switches the base layer between the default street tiles and a tokenless satellite view (ESRI World Imagery). The choice is a per-user setting (map_base_layer) that persists and applies instantly, including offline. GL-renderer satellite styles are unchanged. Closes #993
12 lines
577 B
TypeScript
12 lines
577 B
TypeScript
export const DEFAULT_MAP_LAT = 0
|
|
export const DEFAULT_MAP_LNG = 0
|
|
export const DEFAULT_MAP_ZOOM = 2
|
|
export const DEFAULT_MAP_CENTER: [number, number] = [DEFAULT_MAP_LAT, DEFAULT_MAP_LNG]
|
|
|
|
// Tokenless satellite base layer (ESRI World Imagery) — works without an API key.
|
|
export const SATELLITE_TILE_URL =
|
|
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'
|
|
export const SATELLITE_TILE_ATTRIBUTION =
|
|
'Imagery © <a href="https://www.esri.com">Esri</a>, Maxar, Earthstar Geographics'
|
|
export const SATELLITE_TILE_MAXZOOM = 19
|