[Mapnik-users] Point labelling, group symbols

artem artem at mapnik-consulting.com
Fri Dec 4 14:10:44 CET 2009

You can use ShieldSymbilizer with point_placement.
-- Artem

On 4 Dec 2009, at 11:10, Nicolas Gillet <nicolas.gillet at market-ip.com>  

> Hello,
> I would like to find a way to group two symbols in such a way that  
> if due to
> collision one of the two symbol cannot be drawn, none of them will be.
> E.g. When drawing cities' names. I want to put a point on the  
> location and a
> label above with the city name.
> This can be done with two symbols.
> <Rule>
>    <Filter>...</Filter>
>    <TextSymbolizer name="NAME" face_name="DejaVu Sans Book" size="11"
> fill="#000000" dx="0" dy="-10" placement="point" halo_fill="#FFFFFF"
> halo_radius="1" wrap_width="20" allow_overlap="0" />
>    <PointSymbolizer file=".../city2.png" type="png"  
> allow_overlap="false"
> width="5" height="5" />
> </Rule>
> But like this, it happens (quite often) that a point becomes orphan  
> (with
> non name above it) on the map.
> So I would like to know if there is a way to "group" those two  
> symbols in
> such a way that if one can't be drawn, none of them will be.
> Thank you =)
> -- 
> View this message in context: http://old.nabble.com/Point-labelling%2C-group-symbols-tp26635853p26635853.html
> Sent from the Mapnik - Users mailing list archive at Nabble.com.
> _______________________________________________
> Mapnik-users mailing list
> Mapnik-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/mapnik-users

More information about the Mapnik-users mailing list