gravitystorm / openstreetmap-carto

A general-purpose OpenStreetMap mapnik style, in CartoCSS
Other
1.51k stars 811 forks source link

House number hides building names when rendering tiles #4926

Closed Vectorial1024 closed 5 months ago

Vectorial1024 commented 5 months ago

Expected behavior

Buildings with names AND with house numbers should perhaps show/contain the building name. (Whether the house number should be shown together is not a problem; could make them both show, I have no problem with that).

Actual behavior

Buildings with names AND with house numbers show only the house number when rendering tiles.

Screenshots with links illustrating the problem

image https://www.openstreetmap.org/#map=19/22.33664/114.14750

Building is labeled as "883" ("what even is 883????"), but when we look into it: image

https://www.openstreetmap.org/way/354995748

The building actually has a name, which somehow was not rendered, picking the house number instead.

imagico commented 5 months ago

Building names have priority over housenumbers - see #3983. Hence what you claim, that the housenumber is hiding the name here - is likely not true.

What probably happens instead is that the name rendering for the building collides with the POI label and therefore is not displayed - but the much smaller housenumber label is.

The underlying problem is the use of the name tag to tag lengthy multilingual labeling strings - which sometimes result in very large labels (with up to 12 lines in some cases in this area apparently) and therefore frequent collisions. See also #4404.

pnorman commented 5 months ago

Yep, if the housenumber were not rendered it does not appear that there would be any text rendered for the building.