fix overlay api
This commit is contained in:
parent
ed8ca8004d
commit
1cfcf7a5e1
1 changed files with 3 additions and 2 deletions
|
@ -17,7 +17,7 @@ from c3nav.mapdata.schemas.model_base import (AnyLocationID, AnyPositionID, Cust
|
||||||
WithAccessRestrictionSchema, WithLevelSchema,
|
WithAccessRestrictionSchema, WithLevelSchema,
|
||||||
WithLineStringGeometrySchema, WithPointGeometrySchema,
|
WithLineStringGeometrySchema, WithPointGeometrySchema,
|
||||||
WithPolygonGeometrySchema, WithSpaceSchema, schema_definitions,
|
WithPolygonGeometrySchema, WithSpaceSchema, schema_definitions,
|
||||||
schema_description, LocationSlugSchema)
|
schema_description, LocationSlugSchema, WithGeometrySchema)
|
||||||
from c3nav.mapdata.utils.geometry import smart_mapping
|
from c3nav.mapdata.utils.geometry import smart_mapping
|
||||||
from c3nav.mapdata.utils.json import format_geojson
|
from c3nav.mapdata.utils.json import format_geojson
|
||||||
|
|
||||||
|
@ -368,7 +368,8 @@ class DataOverlaySchema(TitledSchema, DjangoModelSchema):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class DataOverlayFeatureSchema(TitledSchema, DjangoModelSchema):
|
|
||||||
|
class DataOverlayFeatureSchema(TitledSchema, WithGeometrySchema, DjangoModelSchema):
|
||||||
"""
|
"""
|
||||||
A feature (any kind of geometry) to be displayed as part of a data overlay.
|
A feature (any kind of geometry) to be displayed as part of a data overlay.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue