Hi Andrea

The styling is fairly simple at this point as most of the work is being done
in the view for the layer. Each parcel has a number and there is an optional
name. It is only when both exist that a line break is required between them.

My view returns the parcel (multi)polygon as "geom", a labeling point as
"label_point" and the label as "parcel_label".

* { 
        stroke: #A9A9A9;
        stroke-width: 1;
        stroke-geometry: [geom];
        label: [parcel_label];
        label-geometry: [label_point];
        label-anchor: 0.5 0.5;
        font-family: 'Tahoma';
        font-size: 10;
        font-opacity: 0.65;
        font-fill: black;
        halo-radius: 2;
        halo-color: white;
        halo-opacity: 0.65;
        -gt-label-fit-goodness: 0.1;
        -gt-label-auto-wrap: 75;
}





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/CSS-styling-force-line-break-in-label-tp5234108p5234137.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to