mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 14:36:31 +00:00
feat(map): toggle the trip map between default and satellite tiles
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
This commit is contained in:
committed by
Maurice
parent
5315bacc2a
commit
17dd6b7caa
@@ -2,3 +2,10 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user