Merge pull request #4596 from ahocevar/tile-key

Use consistent tile coordinate keys
This commit is contained in:
Andreas Hocevar
2016-01-04 19:27:47 +01:00
8 changed files with 10 additions and 26 deletions

View File

@@ -20,7 +20,6 @@ goog.require('ol.renderer.canvas.Layer');
goog.require('ol.renderer.vector');
goog.require('ol.size');
goog.require('ol.source.VectorTile');
goog.require('ol.tilecoord');
goog.require('ol.vec.Mat4');
@@ -439,7 +438,7 @@ ol.renderer.canvas.VectorTileLayer.prototype.prepareFrame =
if (tileState == ol.TileState.LOADED ||
tileState == ol.TileState.EMPTY ||
(tileState == ol.TileState.ERROR && !useInterimTilesOnError)) {
tilesToDrawByZ[z][ol.tilecoord.toString(tile.tileCoord)] = tile;
tilesToDrawByZ[z][tile.tileCoord.toString()] = tile;
continue;
}