-
Notifications
You must be signed in to change notification settings - Fork 820
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 "tourism=information" and "office" to lower priority in amenity-points query #3728
Conversation
This change makes sure that natural features and other amenities render first, and are not blocked by a tourism=information tag on the same node
Please add #1372 with peaks priority. |
@Tomasz-W It can be also done with a separate PR. |
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.
Looks fine. Ultimately the prioritization of tags in the feature COALESCE() should be the same as the sorting order so prioritization of two tags on the same node is the same as for two nodes next to each other. And as said elsewhere prioritization should also be synchronized with starting zoom levels.
Managing all of this together by hand is next to impossible with the number of POI types we have meanwhile of course.
Relates to #3712.
Since this heavily interferes with #3712 it would be good if you could re-base and re-test this with the new code structure. |
I fixed the merge conflicts. Thank you for #3712, it's a huge improvement, @pnorman I notice that tourism=viewpoint ended up duplicated on two different lines after #3712:
I can remove one of the duplicates in this PR, or open another PR to discuss it. |
Yes, i think you can remove the duplication here just as well. |
OK, I think a node double-tagged with "tourism=viewpoint" and "man_made=cross" or "historic=wayside_shrine" should show the physical object preferentially (the cross or shrine), rather than the viewpoint icon, so I've removed "viewpoint" from the first line. I also checked that the test renderings are the same as those previously shown above |
Nice, thanks. |
Fixes #3481
Changes proposed in this pull request:
tourism=information
to the lower prioritytourism
query withinproject.mml
office
to below the secondtourism
queryExplanation
This change makes sure that natural features and other amenities render first, and are not blocked by a tourism=information tag on the same node.
Since tourism offices are more important than most offices for a general map users, they can be tagged with office=* which would then be rendered as a blue office dot and text label after this change. Therefore,
office
is moved aftertourism
in the relevant layers withinproject.mml
A few features which are double-tagged with "office=*" and another major tag will be affected by this change, for example, an office in a building that is also tagged as "historic=manor". This should be a neutral or beneficial change, because offices are low-importance features for a general map.
Test renderings:
Before
After
Krzyzne Saddle
https://www.openstreetmap.org/node/1200864424#map=18/49.22847/20.04718
Before z18
z19
After z18
z19
Residenz des Botschafters
Double-tagged with office=diplomatic and historic=manor; this is one of the very rare possible combinations of office with a feature that is currently queried later that might be correct tagging (though I don't have any local knowledge about this area to confirm).
https://www.openstreetmap.org/way/23547938#map=19/52.48378/13.28926
z19 before
after