Skip to content

Commit

Permalink
Fix gdf index issu (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Oct 17, 2024
1 parent 611862b commit 083f5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leafmap/leafmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@ def add_geojson(
print(e)
pass

geom_type = gdf.geom_type[0]
geom_type = gdf.reset_index().geom_type[0]

if style is None and (style_callback is None):
style = {
Expand Down

0 comments on commit 083f5ae

Please sign in to comment.