Can TileJSON return attribution info? #1214
mradamcox
started this conversation in
Feature Request
Replies: 1 comment
-
The Pydantic model we use for the tilejson document has the attribution field but we are not setting it in the response titiler/src/titiler/core/titiler/core/factory.py Lines 656 to 662 in 7f213c4 We could add an option to add one by default 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm exploring further use of TileJSON within my app that uses TiTiler, because unlike XYZ Tiles it can embed min/max zoom, and also bounds information. According to the TileJSON spec one can also pass
attribution
along with the return, but I'm not seeing any way to get that property in TiTiler's response. Though the API docs do suggest that it is in the schema:I'm using an older version of Titiler ( 0.11.6 ) but still don't see mention of attribution in the latest endpoints docs.
I'm not really sure what the best approach to adding attribution to TiTiler's response would be anyway. If it is a new URL parameter, then anyone could change the attribution whenever they make a request. Seems like it would need to be embedded higher up in the response chain. For me, I'm thinking I could make my own endpoint that wraps TiTiler's and then injects the TileJSON with an extra attribution prop. Figured it was still worth bringing up here though, because I can't find mention of the topic in other tickets or discussions.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions