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 URL : ambiguity on URL root #272

Closed
sguimmara opened this issue Dec 7, 2017 · 3 comments
Closed

Relative URL : ambiguity on URL root #272

sguimmara opened this issue Dec 7, 2017 · 3 comments
Assignees

Comments

@sguimmara
Copy link

In the tileset.json spec, it is specified that tile URLs can either be relative or absolute. In the case of a relative URL that happens in a non-root tileset, it is unclear whether the URL should be created starting from the root tileset, or the non-root tileset.

Example:

tileset.json
   anotherTileset.json
      tile.b3dm

Given that the URL to tileset.json is www.example.com/tileset.json, what is the absolute URL of tile.b3dm ? Is it www.example.com/tile.b3dm or www.example.com/anotherTileset/tile.b3dm ?

@lilleyse
Copy link
Contributor

lilleyse commented Dec 7, 2017

This should stay open because the wording in the text could be clearer, but from the schema:

A string that points to the tile's contents with an absolute or relative url. When the url is relative, it is relative to the referring tileset.json.

So the absolute url would be www.example.com/anotherTileset/tile.b3dm

@sguimmara
Copy link
Author

Thanks, I didn't think about consulting the schema.

@ggetz
Copy link
Contributor

ggetz commented May 11, 2018

Resolved in #301

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

4 participants