#529 give tiles gutters - all layers that use Tile.Image must now look after layer.imageSize and layer.imageOffset - this is handled by layer.setTileSize - for untiled layers, setTileSize must be defined by the subclass - gutters are currently supported in Layer.Mapserver and Layer.WMS
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -87,7 +87,9 @@ OpenLayers.Layer.MapServer.prototype =
|
||||
* @type String
|
||||
*/
|
||||
getURL: function (bounds) {
|
||||
|
||||
if(this.gutter) {
|
||||
bounds = this.adjustBoundsByGutter(bounds);
|
||||
}
|
||||
// Make a list, so that getFullRequestString uses literal ","
|
||||
var extent = [bounds.left, bounds. bottom, bounds.right, bounds.top];
|
||||
|
||||
@@ -95,10 +97,10 @@ OpenLayers.Layer.MapServer.prototype =
|
||||
var url = this.getFullRequestString(
|
||||
{mapext: extent,
|
||||
imgext: extent,
|
||||
map_size: [this.tileSize.w,this.tileSize.h],
|
||||
imgx: this.tileSize.w/2,
|
||||
imgy: this.tileSize.h/2,
|
||||
imgxy: [this.tileSize.w,this.tileSize.h]
|
||||
map_size: [this.imageSize.w, this.imageSize.h],
|
||||
imgx: this.imageSize.w / 2,
|
||||
imgy: this.imageSize.h / 2,
|
||||
imgxy: [this.imageSize.w, this.imageSize.h]
|
||||
});
|
||||
|
||||
return url;
|
||||
|
||||
Reference in New Issue
Block a user