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

Move leisure=track #5021

Closed
wants to merge 2 commits into from
Closed

Conversation

dch0ph
Copy link
Contributor

@dch0ph dch0ph commented Oct 12, 2024

Fixes #4726

Changes proposed in this pull request:

Move leisure=track and attraction=water_slide from amenity-line to landcover-line layer

[Also tweak to highway=ford SQL query to simplify hstore query]

Test rendering with links to the example places:

Before

Power line vs. track ordering
image

After

image

Unchanged renders for:

Ford as linear way
image

attraction=water_slide
image

Comments

As a ground-level feature, leisure=track is a very natural fit for early rendering in landcover-line. It's less obvious that water slides should be rendered e.g. before roller-coasters. Perhaps a future optimisation would be to merge many of these layers, so that the layer tag can be properly exploited?

[Note that #4104 proposes moving leisure=track to the roads layer (tricky) or aerialways and attraction=water_slide to waterway-bridges. It would make sense to consider these alternatives.]

Move leisure=track and attraction=water_slides from amenity-line to landcover-line
@dch0ph dch0ph mentioned this pull request Oct 29, 2024
@imagico
Copy link
Collaborator

imagico commented Oct 31, 2024

I have not gotten around reviewing this - but a quick note regarding layering.

As already indicated in #4666 - in case of line features

  • where mappers diligently apply tagging indicating relative vertical order
  • which can occur in different physical ordering relative to other line features

i see a substantial benefit of including them in the road layers. But i also get that in the current state of the road rendering and our setup in general this is somewhat difficult regarding maintainability of the code.

The cutline layer (immediately after the landcover layers) is very early in the layer stack for both leisure=track and attraction=water_slide. For leisure=track this is consistent with the polygon rendering, but it will lead to various things being rendered above these in a way that is likely weird to mappers. The most natural location as a separate layer would IMO be immediately before the road casing layers. But of course that would open the question if track/pitch polygons should be moved there as well (rooftop pitches anyone?). For attraction=water_slide i would probably see it before aerialways (and waterway-bridges should probably also go before aerialways)

@dch0ph
Copy link
Contributor Author

dch0ph commented Nov 1, 2024

Yes, it would make sense to do a quick review before incorporating this PR, otherwise we end up playing Whac-a-mole.

But of course that would open the question if track/pitch polygons should be moved there as well

Interesting thought. It would seem illogical to a mapper for leisure=track to move in the layer stack depending whether it was a simple way, or a way with ground width.

leisure=track is probably a special case of being "line like" - you can have other things inside the track in a way you wouldn't expect for say leisure=pitch.

To keep the scope manageable, I'll have a look at "man-made ground-based line-like" things.

@dch0ph
Copy link
Contributor Author

dch0ph commented Nov 21, 2024

Closing this PR as cleaner to create a new one based on discussion in #5041.

@dch0ph dch0ph closed this Nov 21, 2024
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

Successfully merging this pull request may close these issues.

leisure=track gets rendered too late in the layer stack
2 participants