Avoid creating a TileCoord object when marking used tiles

This commit is contained in:
Tom Payne
2013-02-21 16:52:52 +01:00
parent 4c9b70fa5c
commit c36de098bd

View File

@@ -133,7 +133,7 @@ ol.source.TileSource.prototype.useLowResolutionTiles = function(z, extent) {
tileRange = tileGrid.getTileRangeForExtentAndZ(extent, z);
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
this.useTile(new ol.TileCoord(z, x, y));
this.useTile(z + '/' + x + '/' + y);
}
}
}
@@ -142,6 +142,6 @@ ol.source.TileSource.prototype.useLowResolutionTiles = function(z, extent) {
/**
* Marks a tile coord as being used, without triggering a load.
* @param {ol.TileCoord} tileCoord Tile coordinate.
* @param {string} tileCoordKey Tile coordinate key.
*/
ol.source.TileSource.prototype.useTile = goog.nullFunction;