Skip to content

Is it possible to access collection-level properties from buildTileUrlTemplate? #559

Answered by m-mohr
hrodmn asked this question in Q&A
Discussion options

You must be logged in to vote

Not yet, but it will be possible in v3.4.0 once the migration to ol-stac and stac-js is merged, see #535
You can start using this branch if you want and check whether it works for you.

Docs for stac-js: https://m-mohr.github.io/stac-js/latest/

You should be given a stac-js object and if it's an asset, you can use getContext() to get the Item/Collection. Note, you can get the collection-level properties from within an Item as of now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by m-mohr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants