AW: [OpenLayers-Users] symbol truncated on tile borders of WMS
Arnd Wippermann
arnd.wippermann at web.de
Fri Oct 21 15:00:47 EDT 2011
gutter is a client-side option. It tells OpenLayers to request larger tiles
from the WMS Server. This way it is possible to minimalize truncated symbols
at the edges of the tiles.
var wmsLayer = new OpenLayers.Layer.WMS(name, url, {layers:'...',
version:'1.1.1'}, {gutter:10});
Arnd
_____
Von: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca]
Gesendet: Freitag, 21. Oktober 2011 14:24
An: Arnd Wippermann
Cc: users at openlayers.org
Betreff: RE AW: [OpenLayers-Users] symbol truncated on tile borders of WMS
Most of my layers are WMS that I don't have control on.
I'm wondering why I don't set singleTile: true to all my WMS
connection......
What could be the issues if I set singleTile: true to all my layers?
thanks
Steve
"Arnd Wippermann" <arnd.wippermann at web.de>
2011-10-20 18:25
A
<Steve.Toutant at inspq.qc.ca>
cc
<users at openlayers.org>
Objet
AW: [OpenLayers-Users] symbol truncated on tile borders of WMS
set gutter:10 in the options of your wms layer.
OpenLayers\Layer.js
/**
* APIProperty: gutter
* {Integer} Determines the width (in pixels) of the gutter around image
* tiles to ignore. By setting this property to a non-zero value,
* images will be requested that are wider and taller than the tile
* size by a value of 2 x gutter. This allows artifacts of rendering
* at tile edges to be ignored. Set a gutter value that is equal to
* half the size of the widest symbol that needs to be displayed.
* Defaults to zero. Non-tiled layers always have zero gutter.
*/
gutter: 0,
Arnd
_____
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von
Steve.Toutant at inspq.qc.ca
Gesendet: Donnerstag, 20. Oktober 2011 18:00
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] symbol truncated on tile borders of WMS
Hi,
When I draw a WMS with singleTile: false, the symbols are truncated along
the edges of the tiles.
I read that we can use partial false for labels but is there somethig we can
do for symbols?
thanks
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111021/9bc62ce6/attachment.html
More information about the Users
mailing list