Hi,
I was wondering how to ensure that a text symbolizer always gets centered on
the point.
As far as I can see, the default is to anchor the label-text at the point´s 0,0
coordinate ie bottom-lefthand corner of the point.
Can I change this so that the center of the text gets placed on the center of
the point?
At the moment I am playing with
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.75</AnchorPointY>
</AnchorPoint>
</PointPlacement>
</LabelPlacement>
but is there also a css?
or should I be looking at this...
<Geometry>
<ogc:Function name="centroid">
<ogc:PropertyName>the_geom</ogc:PropertyName>
</ogc:Function>
</Geometry>
I hope this is understandable.
yours,
Robert
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users