How can I rotate a marker in leaflet? I will have a lot of markers, all with a rotation angle.
I\'ve tried this solution from runanet/coomsie at Leaflet on GitH
This solution is by far the easiest: https://github.com/bbecquet/Leaflet.RotatedMarker
Note: it only modifies the existing marker, allowing two more options (rotationAngle and rotationOrigin).
The solution works very well. As per the GitHub page, a usage example:
L.marker([48.8631169, 2.3708919], {
rotationAngle: 45
}).addTo(map);