Pass tilePixelRatio and gutter to TileTexture
This commit is contained in:
@@ -304,6 +304,9 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
|
||||
const tileLayer = this.getLayer();
|
||||
const tileSource = tileLayer.getRenderSource();
|
||||
const tileGrid = tileSource.getTileGridForProjection(viewState.projection);
|
||||
const tilePixelRatio = tileSource.getTilePixelRatio(frameState.pixelRatio);
|
||||
const gutter = tileSource.getGutterForProjection(viewState.projection);
|
||||
|
||||
const tileTextureCache = this.tileTextureCache_;
|
||||
const tileRange = tileGrid.getTileRangeForExtentAndZ(
|
||||
extent,
|
||||
@@ -348,7 +351,13 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
|
||||
viewState.projection
|
||||
);
|
||||
if (!tileTexture) {
|
||||
tileTexture = new TileTexture(tile, tileGrid, this.helper);
|
||||
tileTexture = new TileTexture(
|
||||
tile,
|
||||
tileGrid,
|
||||
this.helper,
|
||||
tilePixelRatio,
|
||||
gutter
|
||||
);
|
||||
tileTextureCache.set(cacheKey, tileTexture);
|
||||
} else {
|
||||
if (this.isDrawableTile_(tile)) {
|
||||
|
||||
Reference in New Issue
Block a user