Hi all,
I'm trying to set labels for my layers. I have point layer with about 3000
points and this layer is only for showing labels. In SLD I set AnchorPointX
and Y to 0.5 and 0.5 so center of label should be exactly above the point.
And this work if I serve this labels as single tile. But from some reasons I
don't want to use single tile. So I define tiled: true in my OpenLayers. But
in some cases label center is not exactly above point but displaced little
bit. It is shown on images (it is only one example, this shift could be to
any direction on any pixels). Code I used is here:

new OpenLayers.Layer.WMS(
                    "admin_obec_centroid_label_type",
"http://192.168.1.98:8080/geoserver/zk/wms";,
                    {   layers: 'zk:admin_obec_centroid_label_type',
                        srs: 'EPSG:3857',
                        format: 'image/png',
                        tiled: true,
                        tilesOrigin : map.maxExtent.left + ',' +
map.maxExtent.bottom,
                        transparent: 'true'                                     
                    },
                    {singleTile: false,
                    yx : {'EPSG:3857' : false}})

Is anything I forget to define or is it normal behavior and could't be
changed?

Thanks,
Dan
http://osgeo-org.1560.n6.nabble.com/file/n4988536/singleTile.png 
http://osgeo-org.1560.n6.nabble.com/file/n4988536/tiled.png 

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/meta-tiling-doesn-t-preserve-position-of-labels-tp4988536.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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

Reply via email to