-
Notifications
You must be signed in to change notification settings - Fork 53
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
transitive overlay uses fonts which might not be available on the tile server (leg geometries are sometimes not displayed / incomplete / rendering glitch?) #778
Comments
I have yet to see this issue! It might be a priority issue with the tiles? We use default priority on the custom overlays, but your tiles may have something else set to a higher priority? This is my only guess as to what could be going on. We have never seen this before. |
@miles-grant-ibigroup okay, thanks. That could be it. Do you have a hint how those priorities can be checked? For the record: We use https://africa.tiles.openplaceguide.org/ ( a makinamaps instance) on https://web.addismaptransit.com where we spot this issue. |
I wish I knew enough about MapLibre to tell you... I do know that if you peek at the transitive overlay you'll see where we define the layers and in that React layer component you should be able to set a priority or importance or similar. Hopefully that fixes things for you! I think we'd accept that change as well, since it would increase the layer's compatibility with different base tiles! |
Okay, maybe we need to set a sort-key https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#layout-line-line-sort-key |
Yes this is what I was thinking of! Thanks for figuring that one out. Please let me know if this fixes the issue for you! |
@miles-grant-ibigroup which vector tile provider are you using in your installations where this is working? I tried a some things, for example adding
but no effect. It looks like the Canvas is hard to debug, a while ago Chrome and Firefox had Canvas debuggers but they were all removed. The layers at transitive overlay all don't define any priority, so I believe everything should equally be displayed on top of the base map. Maybe this is a bug in Maplibre GL? |
Asked over there: maplibre/maplibre-gl-js#2172 |
Okay, not a bug in maplibre-gl-js :) The overlay generated by OTP-ReactRedux requests there is also a fixme there - so we actually should use a fond which is available on the tile server or make this configurable? |
There is already a config option for the font:
otp-react-redux/example-config.yml Line 137 in a7c1c57
But I think this is not used - maybe this is from pre-vectortiles-times? |
I was able to solve this using serveAllFonts (maptiler/tileserver-gl#391) |
Thanks for all your detailed reporting! We'll try to set some more sensible defaults in the example config! Please let us know/open a PR if there's any other changes you think might be sensible! |
Unfortunately the used font face seems to be not configurable at the moment. |
Ah that makes sense good to know -- the long term plan is to fully transition https://github.com/conveyal/transitive.js/ to MapLibre. We'll keep this in mind for when this happens! |
We are using OTP react redux in the dev branch with vector tiles.
The trip leg geometries are not displayed reliably. Tested in a recent Chrome and Firefox browser.
The green part is added for illustration - here the blue line is missing.
However, when zooming in the part appears:
When zooming out, other parts disappear.
Is this a known issue? I could not find similar issues in the search.
The text was updated successfully, but these errors were encountered: