mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 14:44:51 +02:00
fix(map): use filter-based highlights for PMTiles compatibility
Replace feature-state based highlighting with filter-based approach using dedicated highlight layers. PMTiles don't have feature IDs, causing setFeatureState to silently fail. The new approach: - Creates hover-hl-* and selected-hl-* layers per source-layer - Uses EMPTY_FILTER to hide layers by default - Updates filter to match feature name when highlighting - Preserves all existing functionality (zoom, boundary, place card) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b381d8d97f
commit
4edc453835
1 changed files with 2029 additions and 2057 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue