Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative URLs in external tileset.json #67

Closed
clausnagel opened this issue Feb 6, 2016 · 3 comments
Closed

Relative URLs in external tileset.json #67

clausnagel opened this issue Feb 6, 2016 · 3 comments

Comments

@clausnagel
Copy link

I am currently experimenting with external tilesets and came across a question with relative URLs.
Assume a tileset a.json with a content.url pointing to another tileset b.json. b.json contains a content.url to a tile.b3dm content file. Further assume that a.json and b.json are not in the same path.

Now, my assumption was that a relative content.url to tile.b3dm must be given relative to b.json because it is referenced from this tileset. However, I was surprised to learn that it has to be relative to a.json. Is this the supposed behavior?

Cheers,
Claus

@lilleyse
Copy link
Contributor

lilleyse commented Feb 8, 2016

Thanks for bringing this up, a tile url should be relative to its tileset and not just the root tileset. I opened a pull request in Cesium: CesiumGS/cesium#3529

@pjcozzi
Copy link
Contributor

pjcozzi commented Feb 8, 2016

Thanks for the report, @clausnagel, and for the fix, @lilleyse.

I tweaked the wording in #68 to make this more explicit.

@pjcozzi
Copy link
Contributor

pjcozzi commented Feb 8, 2016

@lilleyse please close this when you merge #68.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants