Closed DSoftwareArtist closed 11 months ago
I also don't think if the angle is properly set. @Raruto
const x = L.marker(L.latLng(0,0)).bindTooltip('<b>' + 'reamon' + '</b>').addTo(map)
x.setRotation(30)
Hi Reamon
Is there an option to rotate the marker from center?
I don't think so (out of the box).
Eventually you could test with some other L.Icon
properties, eg:
BTW, please start poring over the code to get a feel for possibile alternatives.
For instance, you can start from here:
With some effort, you should be able to come up with something similar on your own.
👋 Raruto
@Raruto ,
Currently, the behavior of the marker rotation is like this:
But what I want to achieve is like this:
Here's my code:
I hope there's an option that I can apply for this. Thanks!