mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 22:54:42 +02:00
Add hillshade and traffic overlay layers with layer control UI
- New LayerControl component with popover toggles for hillshade/traffic - MapView: add/remove hillshade raster-dem and traffic raster layers - Overlay layers persist in localStorage, survive theme swaps - Hillshade defaults ON, traffic defaults OFF when available Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
edc5a9788d
commit
4020d5ae0a
4 changed files with 362 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ import { decodePolyline } from './utils/decode'
|
|||
import MapView from './components/MapView'
|
||||
import Panel from './components/Panel'
|
||||
import PlaceDetail from './components/PlaceDetail'
|
||||
import LayerControl from './components/LayerControl'
|
||||
|
||||
export default function App() {
|
||||
const mapViewRef = useRef(null)
|
||||
|
|
@ -106,6 +107,7 @@ export default function App() {
|
|||
<MapView ref={mapViewRef} />
|
||||
<Panel onManeuverClick={handleManeuverClick} />
|
||||
<PlaceDetail />
|
||||
<LayerControl mapRef={mapViewRef} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue