fix: prevent custom element markers from rendering upside down #15
Reference in New Issue
Block a user
Delete Branch "worktree-custom-markers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.Uses a wrapper div for custom elements so MapLibre rotates the container while the inner SVG can be independently flipped.