Make ol.extent.buffer return an extent instead of mutating

This commit is contained in:
Tom Payne
2014-01-08 23:07:10 +01:00
parent bcf38b1b21
commit 784f3500f2
3 changed files with 21 additions and 10 deletions

View File

@@ -114,7 +114,7 @@ ol.TileUrlFunction.createFromParamsFunction =
tmpSize[0] = tileSize[0] + (2 * gutter);
tmpSize[1] = tileSize[1] + (2 * gutter);
var extent = tileGrid.getTileCoordExtent(tileCoord, tmpExtent);
ol.extent.buffer(extent, tileResolution * gutter);
ol.extent.buffer(extent, tileResolution * gutter, extent);
return paramsFunction.call(this, baseUrl, params,
extent, tmpSize, projection);
}