Remove ol.source.TileSource.useLowResolutionTiles
This commit is contained in:
@@ -246,7 +246,6 @@ ol.renderer.canvas.TileLayer.prototype.renderFrame =
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.updateUsedTiles(frameState.usedTiles, tileSource, z, tileRange);
|
this.updateUsedTiles(frameState.usedTiles, tileSource, z, tileRange);
|
||||||
tileSource.useLowResolutionTiles(z, extent, tileGrid);
|
|
||||||
this.scheduleExpireCache(frameState, tileSource);
|
this.scheduleExpireCache(frameState, tileSource);
|
||||||
|
|
||||||
var transform = this.transform_;
|
var transform = this.transform_;
|
||||||
|
|||||||
@@ -224,7 +224,6 @@ ol.renderer.dom.TileLayer.prototype.renderFrame =
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.updateUsedTiles(frameState.usedTiles, tileSource, z, tileRange);
|
this.updateUsedTiles(frameState.usedTiles, tileSource, z, tileRange);
|
||||||
tileSource.useLowResolutionTiles(z, extent, tileGrid);
|
|
||||||
this.scheduleExpireCache(frameState, tileSource);
|
this.scheduleExpireCache(frameState, tileSource);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -466,7 +466,6 @@ ol.renderer.webgl.TileLayer.prototype.renderFrame =
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.updateUsedTiles(frameState.usedTiles, tileSource, z, tileRange);
|
this.updateUsedTiles(frameState.usedTiles, tileSource, z, tileRange);
|
||||||
tileSource.useLowResolutionTiles(z, extent, tileGrid);
|
|
||||||
this.scheduleExpireCache(frameState, tileSource);
|
this.scheduleExpireCache(frameState, tileSource);
|
||||||
|
|
||||||
goog.vec.Mat4.makeIdentity(this.texCoordMatrix_);
|
goog.vec.Mat4.makeIdentity(this.texCoordMatrix_);
|
||||||
|
|||||||
@@ -138,26 +138,6 @@ ol.source.TileSource.prototype.getTileGrid = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {number} z Z.
|
|
||||||
* @param {ol.Extent} extent Extent.
|
|
||||||
* @param {ol.tilegrid.TileGrid} tileGrid Tile grid.
|
|
||||||
*/
|
|
||||||
ol.source.TileSource.prototype.useLowResolutionTiles =
|
|
||||||
function(z, extent, tileGrid) {
|
|
||||||
var tileRange, x, y, zKey;
|
|
||||||
// FIXME this should loop up to tileGrid's minZ when implemented
|
|
||||||
for (; z >= 0; --z) {
|
|
||||||
tileRange = tileGrid.getTileRangeForExtentAndZ(extent, z);
|
|
||||||
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
|
||||||
for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
|
||||||
this.useTile(z + '/' + x + '/' + y);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marks a tile coord as being used, without triggering a load.
|
* Marks a tile coord as being used, without triggering a load.
|
||||||
* @param {string} tileCoordKey Tile coordinate key.
|
* @param {string} tileCoordKey Tile coordinate key.
|
||||||
|
|||||||
Reference in New Issue
Block a user