-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamization in Folium #1581
Comments
I would also like this to be added! :) |
Check out https://github.com/jupyter-widgets/ipyleaflet which is much more dynamic than folium. There's also this discussion: #848 And this one: #906 Hope it helps! |
Is this usable outside of Jupyter notebook?
On Thu, Nov 17, 2022 at 10:35 AM Frank ***@***.***> wrote:
Closed #1581 <#1581>
as completed.
—
Reply to this email directly, view it on GitHub
<#1581 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXPJQ7BKRZ5IHYLVFGPYLKTWIZGC5ANCNFSM5S2GNECA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
*Patrick Staton* | Weather Product Engineer
*c:* 304-888-2595 *e:* ***@***.***
|
ipyleaflet is specifically for in Notebooks |
Okay - I am developing an application that is not using a Jupyter Notebook
- thank you for the suggestion anyway!
…On Thu, Nov 17, 2022 at 10:45 AM Frank ***@***.***> wrote:
ipyleaflet is specifically for in Notebooks
—
Reply to this email directly, view it on GitHub
<#1581 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXPJQ7DMUSI5VPQDVXXYBR3WIZHIPANCNFSM5S2GNECA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
*Patrick Staton* | Weather Product Engineer
*c:* 304-888-2595 *e:* ***@***.***
|
Well, I am doing the same. But facing same issues, @pstatonwx any luck? |
Nope :( It looks like we're out of luck on this front. |
Sorry to hear that. Any alternate ways adopted?. Thank you @pstatonwx for your repsone. |
Unfortunately that is what I have found as well, there's no way to dynamically add/remove content with Python/Folium. The only other way would be to use JavaScript to make an actual Leaflet map. |
@pstatonwx thanky very much for your time and concern! |
If you are looking for a Python solution outside Jupyter notebook, Streamlit pydeck chart kind of allows adding and removing layers without refreshing the entire map. |
Thanks! I can't completely speak for @MuhammadQaisarAli , but at least for me, I'm only adding/removing polygons on a map, not entire layers. Is this something that Streamlit pydeck chart could achieve? For instance, mine is a weather application displaying warnings - if a tornado warning is issued, I need the polygon for the affected area to pop up on my Folium map, and then when it expires, it needs to disappear. In the current framework, this requires a full page refresh. |
Yes, I believe so. I did that before using streamlit pydeck chart. It can add/remove layers dynamically without refreshing the entire map, kind of like ipyleaflet for Jupyter notebook. |
Okay thanks! |
Thank you Professor @giswqs . I will have a try to this. |
Describe the solution you'd like
I would like to update marker data live based on actual data. Same goes for the data in the marker pop-up. I would also like to draw circles and maybe add or remove markers based on live data.
Describe alternatives you've considered
Writing in JavaScript with Leaflet.js itself, but my JavaScript is not good.
Additional context
Maybe there is already another Python package that supports this, but I do not think so, if there is I would appreciate if anyone could let me know!
Implementation
I am not sure how this could be implemented, since my Python and JavaScript knowledge is limited.
Thanks for developing Folium, makes it a lot easier to use for non JavaScript people!
The text was updated successfully, but these errors were encountered: