-
Hi, is it possible to overlay non-map related images, such as Plotly generated graphs, on geemap? I am looking for a way to display wind roses on top of specific geographic areas, represented as rectangles. These wind roses are based on data from single or multiple locations, derived from GRIB/NetCDF files using a distance approximation. I managed to add a rectangle as a new layer, and wondering if there is a way to link an image to this rectangle. Would be nice if these rectangles were assigned an ID, allowing an image/plot/chart to be associated with it and automatically resized (fit to width or stretch to fit) as the map is zoomed in/out, just like the rectangle resizes itself currently. Right now I have either a single wind rose or a grid of them, but ideally I'd like to have them as a layer locked to a location, since I am also trying to use the visualization of wind speed from https://geemap.org/notebooks/105_netcdf/ in another layer and perhaps would like to have these wind roses to work with the timeslider if possible. I have a df extracting data from the xarray dataset min_latitude = df2['latitude'].min()
max_latitude = df2['latitude'].max()
min_longitude = df2['longitude'].min()
max_longitude = df2['longitude'].max()
rectangle = ee.Geometry.Rectangle([min_longitude, min_latitude, max_longitude, max_latitude])
center_lat = (min_latitude + max_latitude) / 2
center_lon = (min_longitude + max_longitude) / 2
Map = geemap.Map(center=(center_lat, center_lon), zoom=6)
Map.addLayer(rectangle, {'color': 'red'}, 'Rectangle')
Map Thank you! |
Beta Was this translation helpful? Give feedback.
See https://geemap.org/notebooks/86_image_overlay/