Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

amenity=cinema name is not rendered when it contains a space #2211

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 7 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: Geochang scribe
[Submitted to the original trac issue database at 3.38am, Saturday, 22nd August 2009]

...at least, that's what I thought the problem was.

This cinema was rendered at only the highest zoom level, but only as an icon without its name, when the name was "GoShen Cinema".

[http://www.openstreetmap.org/browse/node/462183755]

I visited a map of Leicester Square, because there are lots of cinemas there. I was convinced that "Empire" rendered, but "Odeon Leicester Square" did not. "Empire" has no spaces.

[http://www.openstreetmap.org/?lat=51.510267&lon=-0.129524&zoom=18&layers=B000FTFT]

I assumed that the space in the name was causing a bug in the renderer. I removed the space and waited a little, and the name "GoShen" was rendered properly. However, now when I go back to Leicester Square I still see some cinema names are rendered, and some are not, but some of the names that are rendered include spaces. This may be because the Leicester Square cinemas are visible at the highest and second-highest zoom levels, but 'my' cinema is only visible at the highest level.

At the time of writing "Empire" and "Odeon Leicester Square" names are rendered at the highest zoom level. "Odeon Mezzanine" and "Odeon West End" names are not (the icons are).

Anyway, I edited the name again to "GoShen Cinema" and now the name is not rendered.

I hope this contains enough information to track down the bug.

Thank you.

@openstreetmap-trac
Copy link
Author

Author: smsm1
[Added to the original trac issue at 10.16pm, Sunday, 23rd August 2009]

This is probably an issue with the collision detection, which will mean that if there is other text around, that will get priority in the rendering.

@openstreetmap-trac
Copy link
Author

Author: fiveisalive
[Added to the original trac issue at 10.51pm, Saturday, 29th August 2009]

I'm seeing a similar issue with amenity=pharmacy (and actually all amenity= tags) where for new nodes, the name isn't be rendered at all, even when there is plenty of space and no text in the area:

http://www.openstreetmap.org/browse/node/476981985

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 11.21am, Monday, 31st August 2009]

The 2 specific example nodes above have been deleted.

For Odeon Mezzanine and Odeon West End, it can be explained by collisions, as smsm1 noted.

@openstreetmap-trac
Copy link
Author

Author: fiveisalive
[Added to the original trac issue at 12.05pm, Monday, 31st August 2009]

Replying to [comment:3 Ldp]:

The 2 specific example nodes above have been deleted.

I deleted my one during in testing and regenerated it to force rendering. Here it is again:

http://www.openstreetmap.org/browse/node/478656133

Note that it appears without a name (even though very short "CVS") in the maximum zoom (z18), but the name appears at z17. Odd.

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 1.15pm, Monday, 31st August 2009]

I increased the text offset from the pharmacy icon by another pixel. I can't explain why it would not show in z18 which has the same icon and offset as z17, but there you have it. Should be showing once deployed on the tile server.

@openstreetmap-trac
Copy link
Author

Author: Geochang scribe
[Added to the original trac issue at 11.16pm, Monday, 31st August 2009]

I changed my cinema (I am the OP) to a building. Now it is rendered as a building outline with text at level 17

http://www.openstreetmap.org/?lat=35.68741&lon=127.91181&zoom=17&layers=B000FTF

But as a building outline with an icon and no text at level 18

http://www.openstreetmap.org/?lat=35.68741&lon=127.91181&zoom=18&layers=B000FTF

I don't mind too much, as the information is visible under various conditions, but still, a little odd?

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 9.28pm, Wednesday, 16th March 2011]

Not at all. The various other symbols around that cinema prevent the name from showing up at certain zoom levels. It's a generic issue that is impossible to avoid in densely mapped areas.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant