-
Because my interested region is usually small, I realize that I don't need to plot the global wind velocity. Instead, I come up with this idea, just using the mean u and v wind (one-point data with speed and direction) to plot a quiver at the bottom right of the map, like this figure. Is it possible to add it using leafmap? If that's not possible, maybe I can just create a PNG image and plot it on map with rotation ... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Create a png, then use m.add_image() |
Beta Was this translation helpful? Give feedback.
-
The feature has been implemented in #467. Update the package using m = leafmap.Map()
html = f"""
<img src="image.png" style="transform:rotate({wdir+180}deg);">
<h5 style="color:white;">{wspd:.1f}m/s</h5>
"""
m.add_html(html) |
Beta Was this translation helpful? Give feedback.
Create a png, then use m.add_image()
https://leafmap.org/leafmap/#leafmap.leafmap.Map.add_image