mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 14:44:51 +02:00
feat: Consolidated UX improvements for map selection
- Snap selection to feature geometry when clicking labeled places - Add wikidata enrichment for basemap labels (population, description) - Differentiate visual feedback: reticle marker vs pulsing highlight - Clear previous feature highlight when selection changes - Store selection mode (reticle/feature) and feature info in state Frontend: MapView click handler, PlaceDetail wikidata fetch, CSS Backend: /api/place/wikidata/<id> route for Wikidata API lookups Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4fcc3d1af4
commit
b354fd0aa0
5 changed files with 123 additions and 20 deletions
|
|
@ -59,7 +59,7 @@ export const useStore = create((set, get) => ({
|
|||
clearRoute: () => set({ route: null, routeError: null }),
|
||||
|
||||
// ── Place detail ──
|
||||
selectedPlace: null, // { lat, lon, name, address, type, source, matchCode, raw }
|
||||
selectedPlace: null, // { lat, lon, name, address, type, source, matchCode, raw, mode?, featureId?, featureLayer?, wikidata? }
|
||||
clickMarker: null, // { lat, lon, circleRadiusPx } — visual marker for two-click selection
|
||||
gpsOrigin: true, // whether GPS should be used as origin when available
|
||||
pendingDestination: null, // place waiting for a starting point (GPS-denied Directions flow)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue