-
Notifications
You must be signed in to change notification settings - Fork 819
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 parking back to amenity-points layers, change way_pixels limit and fix initial zoom level #3923
Conversation
Parking had previously been rendered in both amenity-points and amenity-low-priority. Recently PR gravitystorm#3874 had consolidated parking rendering in low-priority only, but this leads to problems when there is a building or an address on the same feature This commit moves parking back to the amenity-points layer, but near the end. The minzoom for text-low-priority is now changed back to z17
In PR gravitystorm#3612 it was planned to render parking from z14 only, however this was not changed for the text labels, only for the icon. This commit fixes the parking rendering at z10 to z13, though in practice almost no parking lots are large enough to have been rendered at these levels.
Start showing icon at 750 pixels instead of 900, but don't show text label till 3000 way_pixels, as with most other features
I tried the previous rendering at 900 way_pixels for the icon and text, but I think this often renders the text outside of the parking area. This can be confusing, and over-emphasizes small parking lots. Here's Hanau (same as above) at z17 but with 900 way_pixels limit: This doesn't work well for long, narrow parking areas. |
Does anyone have time to review this PR? I would love to get it in the next release if possible. |
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.
Seems to work fine. A few comments:
- this does essentially disable the idea of a separate low priority point symbol layer for all but the highest zoom levels - but this was not really working anyway so this is in a way a good thing.
- moving the parking features to the end of the COALESCE() only has the effect of giving these tags less priority than other tags on the same feature, it does not give the parking features and their symbols lower priority than other features. So this change will likely aggravate the problem of a lack of proper prioritization of POI symbols.
- if this change actually fixes a bug can be debated because the tagging of name tags in cases where it can refer to different things (name of building vs. name of parking) is ambiguous. It is fine with me to solve it this way - though the order of the COALESCE() (see above) becomes a highly significant choice on priorities here. Placing parkings last there could be confusing because in the landcover layer these have fairly high priority so symbol and label might often not match the fill color.
It was intended as to prevent parking icon from blocking for example shop icon or museum icon. Is it now achieved using a different method or considered as unimportant or it was not working anyway? |
The problem was that parking garages, tagged To properly get the priority of icons right in all cases, we need to fix #3880 in a general way, or consider how we want to set the priority of all the amenity-points icons (and text) in a consistent way. |
That is why parkings were in both amenity and amenity-low-priority (maybe it was overengineered and supporting only just parkings and therefore not a proper way to do this) but it seemed to work. |
After PR #3612 I initially tried fixing this by switching all parking into the In theory we could restore the previous duplicate rendering, with only larger polygons rendered in the main But I would recommend merging this PR now, which will fix the rendering in most cases, and then discuss next week whether the nodes / small parking areas should instead be rendered in the |
@matkoniecz - would you like to request changes formally, or do we have consensus to merge this PR today, before the release of v4.24.0? |
I just wanted to check whatever it was a deliberate decision to drop this part. I am not going to block merge. |
OK, I will merge this now and we can see if we can solve the prioritization problem in general, but if not then we can consider using the low-priority layer again. |
Fixes #3908
Partial revert of #3874
Follow-up to fix bug in #3612
Changes proposed in this pull request:
1) Move parking back to amenity-points layers
amenity=parking
,amenity=motorcycle_parking
,amenity=bicycle_parking
andamenity=parking_entrance
toamenity-points
andtext-point
layers instead ofamenity-low-priority
andtext-low-priority
2) Change initial zoom level to be z14 for both text label and icon
3) Change way_pixels limit for parking icon and text
amenity=marketplace
and parking have an icon that appears based onway_pixels
. The other uses 3000 way_pixels, which is the limit also used for all text labels.Test renderings
Hanau, Germany
https://www.openstreetmap.org/way/221032567#map=17/50.13289/8.92118
z16 compare current (left), after (right)
z17
z18
Montpellier, France
https://www.openstreetmap.org/#map=17/43.61338/3.88557
z16 comparison (left before, right after)
z17