I'm a leaflet noob. I have some weather data and I'd like to display it using a leaflet map, but I'm having difficulty convincing myself that what I want to do is possible. Specifically I want to compare observed wind speed and direction with the predicted wind speed and direction. A usual way to visualize wind speed and direction is with a Wind Barb.
So there's two issues I see:
1. I need to be able draw the barb, and
2. I need to be able to rotate it to point in the correct cardinal direction.
For 1 I figure I could pre-draw some barbs for wind speeds from 5 up to say 50 every 5 units.
For 2 I would have to rotate that marker based on where it was located to point in the correct cardinal direction. This is where I get confused. Can anybody explain to me how this would be done? Is it projection dependant?
I don't suppose there's a leaflet plug-in out there that would take care of all this for me. I haven't been able to find anything thus far.