Live: fix geom_type
This commit is contained in:
parent
86a9c3c675
commit
d3fa4624f8
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class Store:
|
||||||
gdf['popup'] = 'Live: ' + live_name + ' #' + gdf.index.astype('U')
|
gdf['popup'] = 'Live: ' + live_name + ' #' + gdf.index.astype('U')
|
||||||
if len(gdf) > 0:
|
if len(gdf) > 0:
|
||||||
gdf = gdf.to_crs(conf.crs.geojson)
|
gdf = gdf.to_crs(conf.crs.geojson)
|
||||||
gis_type = gdf.gis_type.iloc[0]
|
gis_type = gdf.geom_type.iloc[0]
|
||||||
else:
|
else:
|
||||||
gis_type = 'Point' ## FIXME: cannot be inferred from the gdf?
|
gis_type = 'Point' ## FIXME: cannot be inferred from the gdf?
|
||||||
mapbox_type = SHAPELY_TYPE_TO_MAPBOX_TYPE.get(gis_type, None)
|
mapbox_type = SHAPELY_TYPE_TO_MAPBOX_TYPE.get(gis_type, None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue