feat: support custom HTML/SVG element markers in MapLibre #10

Merged
ryan merged 1 commits from worktree-custom-markers into main 2026-02-20 20:40:20 +00:00
Owner

Add Element, Anchor, and Rotation fields to the Marker struct so users can render custom icons (ships, circles, buildings) instead of the default pin. When Element is set, Color is ignored and the raw HTML/SVG is injected as the marker's DOM element.

Update the example to demonstrate a static ship SVG marker with rotation and a signal-driven vehicle marker using a custom SVG circle.

Add `Element`, `Anchor`, and `Rotation` fields to the `Marker` struct so users can render custom icons (ships, circles, buildings) instead of the default pin. When `Element` is set, `Color` is ignored and the raw HTML/SVG is injected as the marker's DOM element. Update the example to demonstrate a static ship SVG marker with rotation and a signal-driven vehicle marker using a custom SVG circle.
ryan added 1 commit 2026-02-20 20:39:23 +00:00
feat: support custom HTML/SVG element markers in MapLibre
All checks were successful
CI / Build and Test (push) Successful in 37s
CI / Build and Test (pull_request) Successful in 33s
e6dc8c27fd
Add Element, Anchor, and Rotation fields to the Marker struct so users
can render custom icons (ships, circles, buildings) instead of the
default pin. When Element is set, Color is ignored and the raw HTML/SVG
is injected as the marker's DOM element.

Update the example to demonstrate a static ship SVG marker with rotation
and a signal-driven vehicle marker using a custom SVG circle.
ryan merged commit 934805e707 into main 2026-02-20 20:40:20 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/via#10