The problem
I would like to be able to interactively draw a polygon on a choropleth map, where I can draw as many vertices as needed. After drawing the polygon, I would like to get back the zonal histogram or zonal statistics from the choropleth map within the polygon.
What I read
I checked out this link: https://community.plotly.com/t/draw-polygon-in-mapbox-with-dash-python/34917/5, which shows how to solve my problem, but only the polygon drawing and on Leaflet, and not how to get back the zonal statistics or histogram (see the answer from Emil also with an example picture)
The question
- Can I solve described problem somehow in Plotly instead of Leaflet?
- If not, how can I return the zonal histogram or statistics that I draw on a map?