feat: add maplibre subpackage for type-safe MapLibre GL JS maps
Some checks failed
CI / Build and Test (push) Has been cancelled

Provides a Go API for interactive maps within Via applications:
- Plugin serves vendored MapLibre GL JS v4.7.1 assets
- Map struct with pre/post-render source, layer, marker, popup management
- Viewport signal sync (center, zoom, bearing, pitch) via hidden inputs
- FlyTo, SetCenter, SetZoom and other viewport setters via ExecScript
- Idempotent init script with SPA cleanup via MutationObserver
- Example app demonstrating markers, GeoJSON layers, and FlyTo actions
This commit is contained in:
Ryan Hamamura
2026-02-19 13:37:16 -10:00
parent 60009124c9
commit 742212fd20
6 changed files with 898 additions and 0 deletions

59
maplibre/maplibre-gl.js Normal file

File diff suppressed because one or more lines are too long