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