-
Notifications
You must be signed in to change notification settings - Fork 648
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
fix problems with some urls when use --public_url #583
base: master
Are you sure you want to change the base?
Conversation
I believe the font-face definitions can be left in the css file, and use relative paths to the font files. |
| <a href="/styles/{{@key}}/wmts.xml{{&../key_query}}">WMTS</a> | ||
| <a href="{{public_url}}styles/{{@key}}/wmts.xml{{&../key_query}}">WMTS</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this has been fixed long ago
This is weird indeed, because the tileserver-gl/public/templates/index.tmpl Lines 64 to 72 in 9bb270b
There is a peculiar issue though:
The only issue I noticed is the missing thumbnails: but that seems to be due to the URL-s missing |
Hello
I've had some problems when trying to use tileserver-gl through a proxy.
These problems are related to the static files located in the path "/usr/src/app/public/"
The "wmts.tmpl" file does not contemplate the use of {{public_url}}, it always uses {{base_url}}
In the index.tmpl file in the wmts section, {{public_url}} is not considered in the link to the capabilities of the service.
In the index.css file all calls to styles that have url fail because they cannot be parameterized with {{public_url}}
If these styles are removed and included within index.tmpl in the header with <style> you can use {{public_url}}
These changes are minor and make it easier to use tileserver-gl through a proxy.
Thanks