I have point with an attribute for each point's 0-360 direction. I need to render these points in Leaflet with arrows pointing in their respective directions. Is there a plugin or code I can use to accomplish this?

2 Answers 2


See https://github.com/bbecquet/Leaflet.RotatedMarker. Alternatively, use a L.DivIcon and apply CSS transforms to its contents.


What kind of arrows do you want to display? I have just created a Leaflet plugin which shows the direction and the speed of wind. So if per chance you would like to show wind data, you can use my plugin: https://github.com/JoranBeaufort/Leaflet.windbarb Otherwise there is the marker rotate plugin: https://github.com/shramov/leaflet-plugins/blob/master/examples/marker-rotate.html which might be of help to you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.