diff --git a/api/app/schemas/elevation.py b/api/app/schemas/elevation.py index 5bac01c..c3cac4c 100644 --- a/api/app/schemas/elevation.py +++ b/api/app/schemas/elevation.py @@ -206,6 +206,7 @@ class ElevationTerrainLayerResponse(BaseModel): scheme: Literal["tms"] = "tms" projection: Literal["EPSG:4326"] = "EPSG:4326" tiles: list[str] + minzoom: int maxzoom: int extensions: list[str] = Field(default_factory=list) attribution: str | None = None diff --git a/api/app/services/elevation_service.py b/api/app/services/elevation_service.py index 915d105..bf9c43d 100644 --- a/api/app/services/elevation_service.py +++ b/api/app/services/elevation_service.py @@ -3083,6 +3083,7 @@ def _build_dataset_terrain_tiles(db: Session, dataset: ElevationDataset) -> _Ter layer_payload = ElevationTerrainLayerResponse( tiles=[f"{{z}}/{{x}}/{{y}}.terrain?v={TERRAIN_TILE_VERSION}"], + minzoom=0, maxzoom=max_zoom, attribution=f"{dataset.code} {dataset.name}", bounds=[bounds["west"], bounds["south"], bounds["east"], bounds["north"]],