Opened 12 years ago

Closed 12 years ago

#598 closed enhancement (fixed)

[osmarender] area=yes is not being used

Reported by: Skywave Owned by: Jochen Topf
Priority: major Milestone: Wishlist
Component: osmarender Version:
Keywords: area yes tag Cc: schuetzm@…


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.

Change History (6)

comment:1 Changed 12 years ago by Tom Hughes

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.

comment:2 Changed 12 years ago by Tom Hughes

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.

comment:3 Changed 12 years ago by Skywave

Resolution: fixed
Status: newclosed

Thank you

comment:4 Changed 12 years ago by schuetzm@…

Cc: schuetzm@… added
Resolution: fixed
Status: closedreopened

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"?

comment:5 Changed 12 years ago by Tom Hughes

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.

comment:6 Changed 12 years ago by Knut Arne Bjørndal

Resolution: fixed
Status: reopenedclosed

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.

Note: See TracTickets for help on using tickets.