Use tile pixel ratio for gutter calculation (webgl and tests)

This commit is contained in:
Frederic Junod
2016-10-20 11:14:36 +02:00
committed by Andreas Hocevar
parent 76e0a37d69
commit 0345055cfb
3 changed files with 1 additions and 1 deletions

View File

@@ -161,7 +161,7 @@ ol.renderer.webgl.TileLayer.prototype.prepareFrame = function(frameState, layerS
var pixelRatio = tilePixelSize[0] /
ol.size.toSize(tileGrid.getTileSize(z), this.tmpSize_)[0];
var tilePixelResolution = tileResolution / pixelRatio;
var tileGutter = frameState.pixelRatio * tileSource.getGutter(projection);
var tileGutter = tileSource.getTilePixelRatio(pixelRatio) * tileSource.getGutter(projection);
var center = viewState.center;
var extent = frameState.extent;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 21 KiB