Skip to content

Commit

Permalink
Merge pull request #148 from hrodmn/fix-map-endpoint
Browse files Browse the repository at this point in the history
use the cellSize parameter instead of the _resolution method for the /map endpoint
  • Loading branch information
vincentsarago authored Jan 8, 2024
2 parents 7070461 + a7d60c6 commit 2b50147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion titiler/pgstac/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,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 2b50147

Please sign in to comment.