Skip to content

Commit

Permalink
wms legend
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Oct 1, 2024
1 parent b7ee3cf commit a69a40a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion metadata_catalogue/maps/libs/maplibre.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,18 @@ class SequentialLegend(BaseModel):
title: str | None = None


class WMSLegend(BaseModel):
url: str
type: Literal["wms"]
id: str | None = None
title: str | None = None


class LayerMetadata(BaseModel):
name: str | None = None
description: str | None = None
is_basemap: bool
legend: IntervalLegend | SequentialLegend | None = None
legend: IntervalLegend | SequentialLegend | WMSLegend | None = None
download: str | None = None


Expand Down

0 comments on commit a69a40a

Please sign in to comment.