Is it possible to get a halo on text with the shield symbolizer?
http://trac.mapnik.org/wiki/ShieldSymbolizer would lead me to believe so, but I
can’t seem to get the results I’m looking for. Rendering labels for cities with
a point and the label offset. That shows up fine, but no halo. Also, using
cascadenik, but that just doesn’t like that at all. I tried to add
'halo_radius=1' to the xml to no avail, I get a parsing error. Should I be
using the shield symbolizer with no text, and then call it again with the text
symbolizer and offset it?
This didn’t work:
.place-natd[zoom>=5][zoom<10] name {
shield-min-distance: 2;
shield-dy: -10;
shield-dx: 8;
shield-fontset-name: 'bold-fonts';
shield-fill: #818180;
shield-size: 10;
shield-spacing: 100;
shield-avoid-edges: true;
shield-placement: point;
text-halo-fill: #f3f3e3;
text-halo-radius: 1;
}
nor did calling it shield-halo-radius, see below.
<Rule><MinScaleDenominator>12500000</MinScaleDenominator><MaxScaleDenominator>24999999</MaxScaleDenominator><Filter>[FEATURECLA]
= 'Admin-1 capital' and [UZOOM] = 5</Filter><ShieldSymbolizer
avoid-edges="true" dx="8" halo_radius=1 dy="-10"
file="/mnt/basemap/basemap/style/files/tableau_place_labels/star-7.png"
fill="#818180" fontset_name="bold-fonts" min_distance="2" name="name"
placement="point" size="10" spacing="100" /></Rule>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users