Files
via/maplibre/js.go
Ryan Hamamura 5f358fb155
All checks were successful
CI / Build and Test (push) Successful in 37s
CI / Build and Test (pull_request) Successful in 35s
fix: prevent custom element markers from rendering upside down
When a custom Element marker's rotation exceeds ±90°, normalize the
rotation into the upright range and apply scaleX(-1) to the inner
element. This keeps side-view icons (ships, vehicles) right-side up
regardless of heading direction.

Use a wrapper div for custom elements so MapLibre rotates the container
while the inner SVG can be independently flipped.
2026-02-20 11:22:49 -10:00

16 KiB