Labels not displaying correctly in the centroid of the polygon in GeoServer SLD

المشرف العام

Administrator
طاقم الإدارة
When creating labels using centroids of a polygon layer, I'm facing the problem that some of them are missing. Eg:



Ok, I can make it reappear by using "maxDisplacement" vendor option, but, using this option labels appear displaced. Some to the right, some to the left.



How can I render all the labels propperly in the centroid of the polygons?

Here is the SLD code I'm using:

#40FF40 #FFFFFF 2 geom cod_25000 Arial 11 normal bold 0.5 0.5 #000000 100 50 1

أكثر...
 
أعلى