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

leisure=track gets rendered too late in the layer stack #4726

Open
u-spec-png opened this issue Nov 12, 2022 · 2 comments · May be fixed by #5046
Open

leisure=track gets rendered too late in the layer stack #4726

u-spec-png opened this issue Nov 12, 2022 · 2 comments · May be fixed by #5046
Labels
bug layering Issues related to the layering structure of the style

Comments

@u-spec-png
Copy link

Expected behavior

leisure=track should be rendered an normal vertical ordering below bridges and ways with layer=>1

Actual behavior

leisure=track gets rendered over stuff with higher vertical ordering

Screenshots with links illustrating the problem

map(1)
Link to location, Novi Sad, Serbia

@imagico
Copy link
Collaborator

imagico commented Nov 12, 2022

Thanks for the report.

First of all at the location you showed this is most likely a tagging error. This is not a use case for leisure=track that is widely considered correct.

Independent of that - we render leisure=track lines in the amenity-line layer, which is very late in the layer stack, even after amenity-points. That means it gets rendered even over point symbols, which is an actual bug IMO:

leisure=track

We should change that by moving leisure=track (and also attraction=water_slide) out of the amenity-line layer, either

  • into landcover-line (since leisure=track polygons are rendered in landcover this would be consistent)
  • into a new layer between the buildings and the roads layers
  • integrate it into the road layers.

I have no strong preference regarding the choice between those options. Any of these options would also resolve the shown example btw.

@imagico imagico changed the title leisure=track gets rendered over other stuff with layer=1 leisure=track gets rendered too late in the layer stack Nov 12, 2022
@imagico imagico added the bug label Nov 12, 2022
@dch0ph
Copy link
Contributor

dch0ph commented Aug 23, 2024

Another manifestation of the same issue here:

image

Power lines appearing below the track.

Moving the two line renders from from amenity-line to landcover-line would seem a logical solution?

@imagico imagico added the layering Issues related to the layering structure of the style label Nov 9, 2024
@dch0ph dch0ph linked a pull request Nov 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug layering Issues related to the layering structure of the style
Projects
None yet
3 participants