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

"Tiles:" path syntax broken in index.html #5

Closed
bean-fidhleir opened this issue Aug 7, 2017 · 0 comments
Closed

"Tiles:" path syntax broken in index.html #5

bean-fidhleir opened this issue Aug 7, 2017 · 0 comments

Comments

@bean-fidhleir
Copy link

bean-fidhleir commented Aug 7, 2017

[location.origin+location.pathname+"countries/{z}/{x}/{y}.pbf]
resolves to
["http://[svrname]/[mappath]/index.htmlcountries/[digit]/[digit]/[digit].pbf"]
which doesn't work: index.html is not a subtree identifier. The same error affects the reference to the "fonts" subtree.

I substituted the literal path root ("http://svrname/mappath/") for "location.origin+location.pathname", and that solved the problem. I wanted to re-use location.origin and location.pathname, but had to discard them because I couldn't discover where they're defined.

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

1 participant