feat: support custom HTML/SVG element markers in MapLibre #10
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?
Add
Element,Anchor, andRotationfields to theMarkerstruct so users can render custom icons (ships, circles, buildings) instead of the default pin. WhenElementis set,Coloris 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.