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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user