diff --git a/leafmap/leafmap.py b/leafmap/leafmap.py index bfca622725..b5669dfae1 100644 --- a/leafmap/leafmap.py +++ b/leafmap/leafmap.py @@ -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 = {