[OSM-talk] Rendering subareas?

Dave Stubbs osm.list at randomjunk.co.uk
Mon Nov 19 16:36:59 GMT 2007


On 19/11/2007, Alex S. <maps at swavely.com> wrote:
> I have a question about how subareas should be addressed so they are
> properly rendered.
>
> For example, there is a park in my city that has several sport courts
> (pitches, for the britishly inclined) inside it as subareas.  This
> particular park has several tennis courts, baseball diamonds, soccer
> fields, a running track, etc.  However, these fields are sub-parts of
> the park as a greater whole.  This is common in the USA.
>
> Is there a special way to mark these so that they are rendered properly?
>     (I believe it has been noted that using 'level=*' is frowned upon,
> as these features are not physically 'above' or 'below' each other.)
> Or, does there need to be a change in the rendering ruleset instead?
>
> The park in question is located here:
> http://www.openstreetmap.org/?lat=47.66932&lon=-122.34368&zoom=16&layers=B0F


The only area other than the park I see is surrounding what appear to
be tennis courts, and only has the tag "area -> yes", which probably
isn't rendered by anything.

For mapnik, it will show up if the area is tagged with "leisure ->
pitch" -- you can also tag it with "sport -> tennis" but this won't
affect the rendering at the moment.
Mapnik will automatically render smaller areas on top of larger areas
-- so there is no need to do any special layering for this case.

There's an example here (tennis courts in wimbledon park, and more
auto-layering with the altogether more famous Centre Court, and Court
1 shown within the All England Lawn Tennis Club grounds):
http://www.openstreetmap.org/?lat=51.43589&lon=-0.20798&zoom=16&layers=B0F




More information about the talk mailing list