I want to know how can I plot folium map dynamically through dash without saving it and retrieve the clicked data information (e.g-district name).
I have tried html.Iframe() to run it statically but I dont want to save the map and then run.
Thanks in advance and any help from community is highly appreciated.
The only format supported “directly” for plotting is GeoJSON. For other file formats, you must construct the Leaflet objects (e.g. Polygon, Polyline, etc.) yourself. For shape files, this should be straight forward though.
I mean that you would open the shape file(s), loop through the shapes and construct the appropriate object (e.g. Polygon, Polyline, etc.) for each shape. You can then add these objects to the map.