Render older loaded tiles while waiting for new tiles

This commit is contained in:
Thomas Moelhave
2016-09-01 19:54:06 +02:00
parent 98aba50735
commit 69fc9edb4d
6 changed files with 152 additions and 22 deletions
+11
View File
@@ -72,6 +72,17 @@ ol.Tile.prototype.getKey = function() {
return this.key + '/' + this.tileCoord;
};
/**
* Get the interim tile if it exists, otherwise returns the tile itself.
* @return {!ol.Tile} The interim tile, or the tile itself
*
*/
ol.Tile.prototype.getInterimTile = function() {
if (this.interimTile) {
return this.interimTile;
}
return this;
};
/**
* Get the tile coordinate for this tile.