Map client update

* updates map client to most recent code
* fixes bug on as_feature_collection which led to problems on initial loading in map
This commit is contained in:
2022-10-07 13:56:43 +02:00
parent 757598970b
commit 6c8227ed17
2 changed files with 36 additions and 37 deletions

View File

@@ -221,8 +221,17 @@ class Geometry(BaseResource):
polygons.append(p)
geojson = {
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": f"urn:ogc:def:crs:EPSG::{geom.srid}"
}
},
"features": [
json.loads(x.geojson) for x in polygons
{
"type": "Feature",
"geometry": json.loads(x.geojson)
} for x in polygons
]
}
return geojson