From 4e7355c89bbf0417bb4aa3fd4d6770a7ab568178 Mon Sep 17 00:00:00 2001 From: "laurent.rothuizen" Date: Mon, 27 Nov 2023 15:53:04 +0100 Subject: [PATCH] Use max_zoomlevel --- ngr_spider/models.py | 2 +- ngr_spider/ogc_api_tiles.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ngr_spider/models.py b/ngr_spider/models.py index 6ed9c31..b489a01 100644 --- a/ngr_spider/models.py +++ b/ngr_spider/models.py @@ -82,7 +82,7 @@ class WmsLayer(Layer): class OatTileSet(): tileset_id: str tileset_crs: str - tileset_zoomlevel: int + tileset_max_zoomlevel: int @dataclasses.dataclass class OatTiles(): diff --git a/ngr_spider/ogc_api_tiles.py b/ngr_spider/ogc_api_tiles.py index 983a6c0..5987062 100644 --- a/ngr_spider/ogc_api_tiles.py +++ b/ngr_spider/ogc_api_tiles.py @@ -160,12 +160,12 @@ def get_tilesets(self): tilesets_json = self.tiles.json["tilesets"] for tileset in tilesets_json: tileset_url = self.get_self_link(tileset['links']) - tileset_zoom = self.get_zoomlevel(tileset_url) + tileset_max_zoomlevel = self.get_zoomlevel(tileset_url) tilesets.append( OatTileSet( tileset_id = tileset["tileMatrixSetId"], tileset_crs = tileset["crs"], - tileset_zoomlevel = tileset_zoom + tileset_max_zoomlevel = tileset_max_zoomlevel ) ) return tilesets