mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
9cbbbdb2e9
MapViewAuto chose the renderer and the offline fallback inline, so the journey map, which needs the same choice, could only copy it. useEffectiveMapEngine now holds it: the user's provider where it can run (Mapbox needs a token, both GL engines WebGL2), Leaflet where it cannot, and offline the stored basemap with its pill, checked on the engine that actually draws. It returns what to draw and never writes a setting. The logic is the one MapViewAuto ran, moved and not changed, and the hook is tested on the same cases as the trip map's offline suite. The header comment no longer claims the Atlas uses Leaflet.