-
Notifications
You must be signed in to change notification settings - Fork 829
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
Give more priority to museums #3924
Comments
This is the current line where openstreetmap-carto/project.mml Lines 1413 to 1418 in ea73a44
Following the link, I get the same results as @HolgerJeromin - https://www.openstreetmap.org/node/6205724716 So this is a problem with one of the rendering servers, not with this style. (There is a problem on z18 where the museum icon is shown, but the bar text shows: the museum name is too long to fit in the space, so it is not rendered, but then the bar name fits, so it is shown. This is a known issue, see #234 and PR #2597 which attempted to solve it https://www.openstreetmap.org/node/6205724716#map=18/44.38999/7.54744) |
I suppose we could consider giving museums priority over |
The query has this ordering: openstreetmap-carto/project.mml Lines 1588 to 1591 in ea73a44
and score is defined as: openstreetmap-carto/project.mml Lines 1467 to 1479 in ea73a44
This means that it's ordering by (peak, volcano, saddle) elevation or waterfall height, then polygons by size, then the rest. From what I understand about SQL in general, the rest will come in unspecified order, maybe insert order. I also ave the impression that the order in which the style is defined does not impose a rendering order, but I might be mistaken. |
AFAIK order in COALESCE matters when multiple things are tagged at once on one object. So Compare with say openstreetmap-carto/project.mml Lines 1630 to 1635 in ea73a44
In other words @StyXman is right. |
Related to #3880 - Symbol and label prioritization is not in sync with the starting zoom levels - probably would be fixed if that issue is solved. |
Agreed, but the original question was, as I understand it, when a museum is close to other amenities (POIs?), render it "with higher priority" than those other amenities. |
Yes, I just wanted to explain when this specific order matters. |
FWIW, no matter how often I clear the browser cache I still see the situation like in the screenshots I have provided. If people see different map tiles depending on the server from which they get them, this would be a different issue not concerning this repo, or would it? |
Looking at code it seems that there is no well defined order of objects, at least in this case. I think that adding something along ORDER_BY osm_id to ensure that all servers serve the same tiles would be a good idea. |
If the ordering of objects is not deterministic then it's a style bug. |
Expected behavior
they outrule bars and banks
Actual behavior
the get hidden because of bars and banks
Links and screenshots illustrating the problem
Here's an example https://www.openstreetmap.org/node/6205724716
I am not completely sure whether there are other sideeffects, but it seems as if the museum is hidden because of the bank and the bar. Please check the priorities.
The text was updated successfully, but these errors were encountered: