From 209ce150ee4696902cb45e6e60908fe2a74d72a9 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Thu, 17 Oct 2024 15:55:31 -0400 Subject: [PATCH] Fix gdf index issu --- leafmap/leafmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {