Opened 10 years ago

Closed 8 years ago

#2211 closed defect (wontfix)

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

Reported by: Geochang scribe Owned by: mapnik-team@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: Cc: fiveisalive

Description

...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.

Change History (7)

comment:1 Changed 10 years ago by Shaun McDonald

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.

comment:2 Changed 10 years ago by fiveisalive

Cc: fiveisalive added

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

comment:3 Changed 10 years ago by Ldp

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.

comment:4 in reply to:  3 Changed 10 years ago by fiveisalive

Replying to 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.

comment:5 Changed 10 years ago by Ldp

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.

comment:6 Changed 10 years ago by Geochang scribe

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?

comment:7 Changed 8 years ago by Ldp

Priority: majorminor
Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.