python-visualization / folium

Python Data. Leaflet.js Maps.
https://python-visualization.github.io/folium/
MIT License
6.85k stars 2.22k forks source link

Is it possible to modify follium generated map with javascript? #1514

Closed tomlinguist closed 1 year ago

tomlinguist commented 2 years ago

I would like to add a marker once a follium map is generated with javascript.

How would I find the map object from leafletjs part?

Conengmo commented 1 year ago

When you look at the rendered html + JS, you should be able to pick out the map object. It looks like this: var map_b7ea3c68e98f8843c73c5b57a10e1c3d = L.map(. Though the variable name is different every time.