Skip to content

Icon anchor should be interpreted as L.Point#36

Open
falkoschumann-bitctrl wants to merge 2 commits intobbecquet:masterfrom
bitctrl:main
Open

Icon anchor should be interpreted as L.Point#36
falkoschumann-bitctrl wants to merge 2 commits intobbecquet:masterfrom
bitctrl:main

Conversation

@falkoschumann-bitctrl
Copy link
Copy Markdown

The Leaflet documentation defines the property iconAnchor of an icon as L.Point, so rotated marker should also accept {x: 10, y: 20} and not only [10, 20]. I write a little fix for this nice plugin.

PS: I also updated the example to the least Leaflet version 1.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant