integrate data overlay api into new MapdataAPIBuilder

This commit is contained in:
Laura Klünder 2024-12-03 09:59:51 +01:00
parent be76f3a8db
commit 707c81f159
5 changed files with 38 additions and 41 deletions

View file

@ -319,11 +319,16 @@ class DynamicLocationSchema(SpecificLocationSchema, DjangoModelSchema):
class DataOverlaySchema(TitledSchema, DjangoModelSchema):
# TODO
"""
Represents a collection of geometries to be displayed as an optional overlay to the map.
"""
pass
class DataOverlayFeatureSchema(TitledSchema, DjangoModelSchema):
"""
A feature (any kind of geometry) to be displayed as part of a data overlay.
"""
geometry: AnyGeometrySchema
level_id: PositiveInt
stroke_color: Optional[str]
@ -336,7 +341,6 @@ class DataOverlayFeatureSchema(TitledSchema, DjangoModelSchema):
external_url: Optional[str]
extra_data: Optional[dict[str, str]]
# TODO
pass
class SourceSchema(WithAccessRestrictionSchema, DjangoModelSchema):