Skip to content

Commit

Permalink
Fix gdf index issu
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 17, 2024
1 parent 4ea09cd commit 209ce15
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 209ce15

Please sign in to comment.