Skip to content

Commit

Permalink
Use max_zoomlevel
Browse files Browse the repository at this point in the history
  • Loading branch information
kad-rothul committed Nov 27, 2023
1 parent 0992c3d commit 4e7355c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ngr_spider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
4 changes: 2 additions & 2 deletions ngr_spider/ogc_api_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e7355c

Please sign in to comment.