Skip to content

Commit

Permalink
don't look for covering tiles if we found parent in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Dec 16, 2013
1 parent 90ab47f commit 206bfea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ui/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ Layer.prototype._updateTiles = function() {
// Potentially add items from the MRU cache.
if (this.cache.has(parent)) {
this._addTile(parent);
}
else if (this.tiles[parent] && this.tiles[parent].loaded) {
continue findTile;
} else if (this.tiles[parent] && this.tiles[parent].loaded) {
// Retain the existing parent tile
required[parent] = true;
continue findTile;
Expand Down

0 comments on commit 206bfea

Please sign in to comment.