Use tile keys instead of coord keys

This change ensures that tiles with old params or dimensions are discarded
This commit is contained in:
Andreas Hocevar
2016-07-14 01:03:30 +02:00
parent 57af1a9b24
commit d259ab893e
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ ol.renderer.Layer.prototype.manageTilePyramid = function(
if (currentZ - z <= preload) {
tile = tileSource.getTile(z, x, y, pixelRatio, projection);
if (tile.getState() == ol.TileState.IDLE) {
wantedTiles[tile.tileCoord.toString()] = true;
wantedTiles[tile.getKey()] = true;
if (!tileQueue.isKeyQueued(tile.getKey())) {
tileQueue.enqueue([tile, tileSourceKey,
tileGrid.getTileCoordCenter(tile.tileCoord), tileResolution]);