-
Hello. I'm encountering a new issue. I have several boundary layers in my map and one layer consists of points. They all plot fine and the layer control icon in the upper right corner works as it should. However, when I add a new layer of points I not only lose the layer control icon but I also can't map two layers of points. For the layer with points, I define a feature group, add this as a layer, add my points to it and then add the layer to the map with this statement "folium.LayerControl().add_to(Map)" This process works for one layer of points but not for two. I'd appreciate some suggestions. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Folium has very limited interactive functionality. You need to add all the data layers before displaying the map. Once the map is displayed, you CANNOT add additional layers to it. Try the ipyleaflet plotting backend. That gives you a lot more flexibility for modifying the map. Try it out with Binder: https://gishub.org/leafmap-pangeo |
Beta Was this translation helpful? Give feedback.
Folium has very limited interactive functionality. You need to add all the data layers before displaying the map. Once the map is displayed, you CANNOT add additional layers to it. Try the ipyleaflet plotting backend. That gives you a lot more flexibility for modifying the map. Try it out with Binder: https://gishub.org/leafmap-pangeo