Skip to content
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

Display both name and house number for houses that have both #735

Closed
matthijsmelissen opened this issue Jul 19, 2014 · 6 comments
Closed

Comments

@matthijsmelissen
Copy link
Collaborator

The Mapnik rendering layer should display both the name and the housenumber of buildings. Right now, the housenumber suppresses the display of the name. I think a smaller font than is usual for the name label would be appropriate.

See also https://trac.openstreetmap.org/ticket/2240.

@matthijsmelissen
Copy link
Collaborator Author

  • Do we want this?
  • If so, is there any way to accomplish this?

@lest69
Copy link

lest69 commented Jan 9, 2015

It would be nice, but I'm not sure there's a way to do it without either hopelessly cluttering the map or having most of them not render due to conflicts between each other.

@balrog-kun
Copy link

With a little SQL conditional it should be well possible, you can append the house number after the name and a linebreak I guess. I don't remember what method there was available in mapnik (if any) to change the font and font size midway through a label.

@balrog-kun
Copy link

Looks like https://github.com/mapnik/mapnik/wiki/TextSymbolizer#formats example does just that, there may be no need for additional SQL.

@pnorman
Copy link
Collaborator

pnorman commented Nov 9, 2015

If we want to do this SQL has the advantage that it would allow the housenumber and housename layers to be combined, and the disadvantage that we can't style it any differently.

@HolgerJeromin
Copy link
Contributor

We have addr:housename, addr:housenumber and name. We should not confuse them :-)
This issue was about addr:housenumber and name.
There is a JOSM Style that renderes both separated with a |. So a Walmart with Housenumber 4 is displayed as 4|Walmart
Osmand renders Wallmart (4) in this case. Which is a little bit confusing, too.

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

No branches or pull requests

5 participants