Live: fix geom_type

This commit is contained in:
phil 2024-04-29 19:15:39 +02:00
parent 86a9c3c675
commit d3fa4624f8

View file

@ -191,7 +191,7 @@ class Store:
gdf['popup'] = 'Live: ' + live_name + ' #' + gdf.index.astype('U')
if len(gdf) > 0:
gdf = gdf.to_crs(conf.crs.geojson)
gis_type = gdf.gis_type.iloc[0]
gis_type = gdf.geom_type.iloc[0]
else:
gis_type = 'Point' ## FIXME: cannot be inferred from the gdf?
mapbox_type = SHAPELY_TYPE_TO_MAPBOX_TYPE.get(gis_type, None)