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

House numbers are rendered on top of POI icons #1331

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

House numbers are rendered on top of POI icons #1331

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

Comments

@openstreetmap-trac
Copy link

Reporter: deejay1
[Submitted to the original trac issue database at 12.17am, Thursday, 13th November 2008]

Currently when there's a POI with an icon and a house number, the number renders on top of the icon making it unusable. See http://openstreetmap.org/?lat=52.40868&lon=16.93635&zoom=17&layers=0B00FTF for an example. Maybe the house number could be moved to the left/right/top/whatever?

@openstreetmap-trac
Copy link
Author

Author: R2D2_C3PO
[Added to the original trac issue at 1.03am, Sunday, 4th January 2009]

I've written a patch that moves the housenumbers to the right if there is an amenity tag present. If you prefer not to render the housenumbers at all just remove the clause.

@openstreetmap-trac
Copy link
Author

Author: osm[at]petschge.de
[Added to the original trac issue at 11.42am, Sunday, 4th January 2009]

Nice fix. I wanted to make the regular collision avoidance algorithm do the heavy lifting but could not figure out how to do that. Patch committed as r12905.

@openstreetmap-trac
Copy link
Author

Author: deejay1
[Added to the original trac issue at 6.11pm, Monday, 5th January 2009]

This doesn't work for nodes tagged as shop=supermarket - see http://www.informationfreeway.org/?lat=52.09085190261699&lon=17.015578083840328&zoom=17&layers=B0000F000F

@openstreetmap-trac
Copy link
Author

Author: osm[at]petschge.de
[Added to the original trac issue at 11.50am, Tuesday, 6th January 2009]

Ok. Fixed that case too.

@openstreetmap-trac
Copy link
Author

Author: R2D2_C3PO
[Added to the original trac issue at 3.54pm, Tuesday, 6th January 2009]

I've attached a new patch, that handles all icons I could find. It also fixes a typo: The second rule for ways matches only on nodes and therefore offsets all housenumbers on buildings.

@openstreetmap-trac
Copy link
Author

Author: osm[at]petschge.de
[Added to the original trac issue at 6.15pm, Tuesday, 6th January 2009]

Committed as r12997.

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