overlay api

This commit is contained in:
Gwendolyn 2024-12-16 11:36:43 +01:00
parent 1cfcf7a5e1
commit 6b494810cc
3 changed files with 34 additions and 4 deletions

View file

@ -365,7 +365,10 @@ class DataOverlaySchema(TitledSchema, DjangoModelSchema):
"""
Represents a collection of geometries to be displayed as an optional overlay to the map.
"""
pass
description: Optional[str]
stroke_color: Optional[str]
stroke_width: Optional[float]
fill_color: Optional[str]
@ -384,7 +387,6 @@ class DataOverlayFeatureSchema(TitledSchema, WithGeometrySchema, DjangoModelSche
point_icon: Optional[str]
external_url: Optional[str]
extra_data: Optional[dict[str, str]]
# TODO
class SourceSchema(WithAccessRestrictionSchema, DjangoModelSchema):