I'm using the standalone GeoWebCache to serve tiles from a remote GeoServer. My problem is that the polygon label is added to each one of the tiles served, instead of only once in the polygon centroid.
I found a post which discusses the issue:
http://osgeo-org.1560.n6.nabble.com/polygon-label-repeated-for-each-tile-td4995203.html
The first reply mentioned a possible solution:
"All in all, I suggest to use a tile rendering engine (GeoWebCache, MapProxy, TileCache) anyway, instead of requesting small image from GeoServer and have the tile rendering engine do the tile slicing afterwards. You will have send fewer requests to GeoServer (1 large image instead of multiple small images), so this speeds up the overall tile cache creation time."
Problem is that I couldn't find how to do that by referring to the GeoWebCache documentation, and the above mentioned post doesn't explain the way to implement that.
I also found a post with an answer that links to the GeoWebCache "Tiled" documentation, but my code allready uses all the necessary attributes and still the label shows up multiple times:
var Layer_1874 = new OpenLayers.Layer.WMS(
'Grundkort',
'/wms10.ashx'
, {
format: 'image/png',
srs: 'EPSG:25832',
layers: 'ballerupkommune_grundkort_bk',
tiled: true,
tilesOrigin: '698804,6173460'
}
, {
displayInLayerSwitcher: true,
isBaseLayer: true,
transitionEffect: 'resize',
displayOutsideMaxExtent: true,
visibility: false
}
);
Anyone has an idea?