On 28 Mar 2008, at 15:29, Tom Chance wrote:
> Hello,
>
> I'd like to show symbols in the center of certain areas, like the
> parking symbols in OpenStreetMap:
> http://www.openstreetmap.org/?
> lat=51.46993&lon=-0.06831&zoom=16&layers=B
> 0FT
>
> It's not immediately obvious to me how this is achieved, looking at
> the
> style sheet:
> http://svn.openstreetmap.org/applications/rendering/mapnik/osm.xml
> Can anyone enlighten me?
>
You should be able to use PointSymbolizer/TextSymbolizer/
ShieldSymbolizer for polygons. Positions are simply centroids atm:
....
<Rule>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<Filter>[amenity]='parking'</Filter>
<PointSymbolizer file="parking.png" type="png" width="16"
height="16" allow_overlap="false"/>
</Rule>
...
In OSM there is an extra step (I think) in osm2pgsql to extract
centroids and put them into separate layer.
HTH
Artem
> Kind regards,
> Tom Chance
>
> --
> BioRegional Development Group, BedZED Centre, 24 Helios Road,
> Wallington, SM6 7BZ, UK
> direct. 020 8404 4884
> t. 020 8404 4880
> w. www.bioregional.com <http://www.bioregional.com/>
> Registered charity no. 1041486. A company limited by guarantee.
> Registered in England and Wales no. 2973226
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users