Skip to content

Commit 3aa94a1

Browse files
authored
fix: include tileMatrixSetId in STAC Item map links (#502)
### Issue #494 ### What? Update dynamically rendered titiler map links to include required tile matrix set id. ### Why? to accomodate changes in[ titiler v0.19.0](https://github.com/developmentseed/titiler/blob/main/CHANGES.md#0190-2024-11-07)
2 parents 9a42fd1 + c09e224 commit 3aa94a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stac_api/runtime/src/links.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def inject_item(self, item: Item) -> None:
5454
def _get_item_map_link(self, item_id: str, collection_id: str) -> Dict[str, Any]:
5555
qs = self.render_config.get_full_render_qs()
5656
href = urljoin(
57-
self.tiler_href, f"collections/{collection_id}/items/{item_id}/map?{qs}"
57+
self.tiler_href,
58+
f"collections/{collection_id}/items/{item_id}/WebMercatorQuad/map?{qs}",
5859
)
5960

6061
return {

0 commit comments

Comments
 (0)