-
Notifications
You must be signed in to change notification settings - Fork 645
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
4.5.2-4.6.1 breaks URL-based "glyphs" and "sprites" (concats URLs with root paths?) #1025
Comments
have you tried if v4.6.1 fixes it? |
I just tested your style and it looks like it is the same in 4.6.1 . I didn't change anything specific to glyphs and sprites, so I will have to try and track it down. |
@acalcutt thanks for your response. Looking at the changelog, this 4.5.2 change might be related: |
I does seem like With that included the style json returns But with the old tester string it returns I do have to wonder though, did raster maps work at all for you before with this style? There is also this other code on the rendering side that always seems to append path EDIT: nevermind on the second location, that would only apply if the string started with sprites:// or glyphs:// I think |
I used vector tiles only. Do you mean server-side rendered rasters of my vectors? |
Ya, the rendering part I am talking about makes the images on the index page next to your style, and also the images for the raster page you are talking about, to the right of your style on the index page. When I revert the HttpTester string the vector tiles work again and and the style looks correct. However when it tries to render it looks like it uses https://github.com/maptiler/tileserver-gl/blob/master/src/serve_rendered.js#L1237-L1260 and maplibre-native gets an error it adds in the path.
|
I missed that the http testing code was actually in two places https://github.com/liberty-rider/tileserver-gl/blob/869ab0489cb7b5396b46c051deda6afd15f38808/src/serve_style.js#L12 Any chance you can put in a PR to revert these back to it will be easier for me to approve the change if someone else puts it in. |
Thanks! Will do the PR. |
@Caerbannog , just an fyi. this broke in v4.5.2 with #1002 |
…ng of vector tiles Root cause: modified regex in maptiler#1002 caused URLs to be broken. Fixed by reverting previous regexes. Tests: * Confirmed by building and running locally with formerly breaking config.json and style json. * Run tests via Dockerfile_test
@acalcutt here goes the PR. |
Thanks for the PR. I'll merge it as soon at the tests finish and make a new release. Just a side FYI, I don't think this sections in your config.json does anything.
that format would be used in your style, the mystyle.json fie, to reference (data -> europe) in config.json |
Ouch, sorry for creating this bug. I ignored the |
v4.6.2 has been released, so let me know if that fixes your issue. @Caerbannog I was just glad it wasn't my PR this time...haha |
Just grabbed 4.6.2 docker image and tested with my jsons. Perfetto! |
With the following config.json and mystyle.json (relevant fragments) 4.5.1 displays nice map,
while after updated to 4.6.0 it emits errors for glyphs and fonts and does not display vector map at all. Moreover, errors indicate that sprites URLs are concated with local "/data" root prefix.
Revert to 4.5.1 fixed the issue.
Errors on startup:
Errors when serving:
config.json:
mystyle.json:
The text was updated successfully, but these errors were encountered: