-
Notifications
You must be signed in to change notification settings - Fork 825
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
labeling logic for golf=hole inconsistent between MSS and SQL #4863
Comments
Looking at the golf docs
Then I will almost argue for showing both if exist eg, name is a guides reference when used: OR (tags @> 'golf=>hole' AND (ref IS NOT NULL OR name IS NOT NULL) ) And mms like [feature = 'golf_hole'][ref != ''],
[feature = 'golf_hole'][name != ''] {
...
text-name: "[ref]";
[name != ''][ref != ''] { text-name: "[ref] - [name]"; }
[name != ''][ref = null] { text-name: "[name]"; }
} The example Masters Golf Course in Augusta, Georgia, USA don't shows the hole numbers at the moment which feels wrong. But the overpass query shows that when both is present, which is the case a lot of places, then the number is often in the name as well to show the number on the map, which following the docs is wrong.
Then the options could be to just show then name and ref to encourage to remove the number from the name as the docs says, or complicate the mss to check for the substring like [feature = 'golf_hole'][ref != ''],
[feature = 'golf_hole'][name != ''] {
...
text-name: "[ref]";
[name != ''][ref != ''][name!~=ref] { text-name: "[ref] - [name]"; }
[name != ''][ref != ''][name~=ref]
[name != ''][ref = null] {
text-name: "[name]";
}
} (not sure if I nailed the syntax) |
That would add substantial complexity in code, is difficult to intuitively understand for the map user (compound labels with no clear indication how it is composed from tags) and would work poorly in most non-latin scripts. But more importantly: The name tag on https://www.openstreetmap.org/way/909406128 This in my eyes rules out rendering the name tag - there is no consistent use of the name tag on |
SQL code requires ref:
openstreetmap-carto/project.mml
Line 2113 in aef9179
while MSS code renders
name
with priority overref
.openstreetmap-carto/style/golf.mss
Lines 35 to 45 in aef9179
This is inconsistent and confusing for mappers.
We either should change the SQL condition to also include features with
name
but noref
or we should remove thename
support from MSS. Currently about 11 percent ofgolf=hole
have a name tag - see here. >90 percent have aref
tag. So i would be slightly in favor of making it ref only (simpler logic, simpler code, not much lost).The text was updated successfully, but these errors were encountered: