Skip to content

Commit

Permalink
More complete fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jan 4, 2018
1 parent 8fa7db1 commit dc9df2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/source/source_cache.js
Expand Up @@ -212,7 +212,8 @@ class SourceCache extends Evented {
return;
}

this._cache.reset();
this._resetCache();

for (const i in this._tiles) {
this._reloadTile(i, 'reloading');
}
Expand Down Expand Up @@ -678,6 +679,10 @@ class SourceCache extends Evented {
for (const id in this._tiles)
this._removeTile(id);

this._resetCache();
}

_resetCache() {
for (const id in this._cacheTimers)
clearTimeout(this._cacheTimers[id]);

Expand Down

0 comments on commit dc9df2f

Please sign in to comment.