TransWikia.com

Creating popups in Folium (Leaflet) for GeoJSON polygon layer

Geographic Information Systems Asked by Ethan Goss on April 7, 2021

Looking through the Folium documentation I can’t find how to add a popup to a polygon GeoJSON layer in Folium. Looking through the Leaflet documentation it seems like its possible, but I don’t know how to translate the JavaScript to Python. Below is a snippet of the code I’m using to render the map.

stand_boundary = folium.GeoJson(stands_gdf, name='Stands')

The stands_gdf variable is a GeoJSON read into a GeoDataFrame.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP