mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +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
@@ -122,6 +122,8 @@ export interface Settings {
|
||||
map_always_show_routes?: boolean
|
||||
optimize_from_accommodation?: boolean
|
||||
map_provider?: 'leaflet' | 'mapbox-gl' | 'maplibre-gl'
|
||||
/** Leaflet base layer: default street tiles or a satellite/aerial view. */
|
||||
map_base_layer?: 'default' | 'satellite'
|
||||
mapbox_access_token?: string
|
||||
mapbox_style?: string
|
||||
maplibre_style?: string
|
||||
|
||||
Reference in New Issue
Block a user