-
Notifications
You must be signed in to change notification settings - Fork 808
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
Render both housenumber and housename #2351
Conversation
I think that darkening the line colour of address interpolation requires previews. |
Currently housename has line wrap, but housenumber doesn’t. This seems okay for me. I think unifying it – if desired – should be separate PR. |
Can somebody guide me into what difference I am supposed to see in that left/right comparison? |
@nebulon42 had requested at #2351 (comment) a preview:
Indeed the line colour has slightly changed – though the change is almost invisible. |
Thanks, as you said this seems to be neglectable. |
|
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 quite good to me. Only on z17 the house names might be hard to read because they might overlap with other things. Since this is not different from the house name only rendering I'm not going to suggest it to be changed in this PR.
However, I really think that as follow-up we should
- give the house numbers and names a faint halo
- unify house name and house number layers
["addr_housenumber" != null] { | ||
text-name: [addr_housenumber]; | ||
["addr_housename" != null] { | ||
text-name: [addr_housenumber] + "\n" + [addr_housename]; |
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.
Wouldn't this add a spurious \n for nodes with house name and without house number?
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.
No, as this line matches only if addr_housenumber is not null. So addr_housenumber and addr_housename must be different from null.
See #2328. What is the purpose of rendering addr:housename on 10 shops inside a building that itself has that name? |
@aceman444 We do not render addr:housename (nor addr:housenumber) for shops. We render it only for buildings. |
OK, that's better. But on a building, the same value would be in 'name' so what is the benefit of rendering addr:housename ? |
As stated in the source code documentation:
On a building, “name” is not related to postal addresses, but “addr:housename” is. If both are present, “name” has higher priority. |
'addr:housename' on a building without 'name' makes no sense to me. But it is true the addr: wiki page is ambiguous about when to use addr:housename. But rendering it may encourage tagging addr:housename instead of name (which I have already seen in the wild). |
Render both housenumber and housename if both are present. Same colour for all address-related features. A little bit of documentation.
Fixes #2328
Fixes #735