Return Leafmap object in flask #439
-
Hello. I''m trying to integrate leafmap into my flask app where I take latitude and longitude from the user and display the map accordingly. But I'm facing trouble with returning the map object. Attaching the code for your reference below -
The 'return m' line is throwing me error. I'm able to achieve the same functionality with Folium. I'm attaching the code for that as well below -
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have the same question, I am using Folium with Flask. Is it possible to use Leafmap with Flask instead? |
Beta Was this translation helpful? Give feedback.
-
I don't use flask. For building interactive web apps, I recommend solara. Folium is very limited. |
Beta Was this translation helpful? Give feedback.
I don't use flask. For building interactive web apps, I recommend solara. Folium is very limited.
https://huggingface.co/spaces/giswqs/solara-geospatial