Skip to content

Commit

Permalink
fix issue with deprecated morecantile method
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jan 8, 2024
1 parent 3c17f83 commit 2bd0304
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release Notes

## 0.16.1 (2024-01-08)

### titiler.core

* use morecantile `TileMatrixSet.cellSize` property instead of deprecated/private `TileMatrixSet._resolution` method

### titiler.mosaic

* use morecantile `TileMatrixSet.cellSize` property instead of deprecated/private `TileMatrixSet._resolution` method

## 0.16.0 (2024-01-08)

### titiler.core
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/core/titiler/core/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def map_viewer(
"request": request,
"tilejson_endpoint": tilejson_url,
"tms": tms,
"resolutions": [tms._resolution(matrix) for matrix in tms],
"resolutions": [matrix.cellSize for matrix in tms],
},
media_type="text/html",
)
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/mosaic/titiler/mosaic/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def map_viewer(
"request": request,
"tilejson_endpoint": tilejson_url,
"tms": tms,
"resolutions": [tms._resolution(matrix) for matrix in tms],
"resolutions": [matrix.cellSize for matrix in tms],
},
media_type="text/html",
)
Expand Down

0 comments on commit 2bd0304

Please sign in to comment.