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

[osmarender] area=yes is not being used #598

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

[osmarender] area=yes is not being used #598

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

Comments

@openstreetmap-trac
Copy link

Reporter: rjtehpwn[at]gmail.com
[Submitted to the original trac issue database at 12.42am, Tuesday, 27th November 2007]

Although on the map features, the area=yes tag to make closed ways solid is not being used. Having used this multiple times this tag for squares and also seen others do it, i think it would be a good idea to implement this tag in Osmarender. As Mapnik is not doing this as well it is actually a feature request for Mapnik too.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 5.55pm, Tuesday, 27th November 2007]

I suspect nothing pays attention to it because it's a pointless tag. If you want an area as a square then agree on a tag for squares (highway=square or something) and create a closed area with that tag and the renderers can deal with.

We don't tag lakes or forests as area=yes so why should squares be any different - tag things for what they are, not how you want them rendered.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 5.57pm, Tuesday, 27th November 2007]

In fact the very description on map features reveals how pointless it is - it says "Making a closed way render solid" but if a way is closed we already know that it probably needs to be rendered solid and we don't need anything else to tell us.

@openstreetmap-trac
Copy link
Author

Author: rjtehpwn[at]gmail.com
[Added to the original trac issue at 4.36pm, Saturday, 1st December 2007]

Thank you

@openstreetmap-trac
Copy link
Author

Author: schuetzm[at]gmx.net
[Added to the original trac issue at 10.56am, Sunday, 2nd December 2007]

I'm reopening this feature request, as it has only been implemented in Osmarender, not in Mapnik.

Some comments:

  • AFAICS the text is currently drawn along the outline of the area, not in the center
  • Could this be implemented as a generic modification, so that it is not only applicable to highway=pedestrian? Something like "change all <line ...> in the SVG to <area ...>, if the area attribute is set"?

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 6.16pm, Sunday, 2nd December 2007]

If it's drawing the text round the edge then it just means that it's a feature that the render doesn't realise is supposed to be an area - area=yes is not the right way to fix that.

If you have specific feature types that are being rendered are linear features instead of areas then please say what they are and what tags you are using.

@openstreetmap-trac
Copy link
Author

Author: bob[at]cakebox.net
[Added to the original trac issue at 1.01am, Friday, 21st December 2007]

Most highway-tags can now be combined with area=yes to make them render as areas in osmarender. Name rendering have also been changed so the text will be centered, not drawn around the edge.

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