Map layer switcher: toggle between default and satellite view #993
Unanswered
WildDragonKing
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature request
It would be great to have a map layer toggle directly in the map view — switching between the current default tile layer and a satellite/aerial view. This is a standard feature in most travel and mapping apps and is especially useful when:
What I'd like to see
A small layer switcher button (like Leaflet's built-in
L.control.layers) in the corner of the map that lets users toggle between:Mapbox note
Since TREK already integrates with Mapbox (token configurable per user), the satellite layer could use
mapbox://styles/mapbox/satellite-streets-v12when a Mapbox token is available, with a free fallback (e.g. ESRI World Imagery:https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}) when no token is set.Related
All reactions