Skip to content

Commit

Permalink
clear tiles cache on setSourceProperty mapbox#3709
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin committed Jan 12, 2020
1 parent 5ebb174 commit eddb7d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/source/vector_tile_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class VectorTileSource extends Evented implements Source {
throw new Error('vector tile sources must have a tileSize of 512');
}

const sourceCache = this.map.style.sourceCaches[this.id];
sourceCache.clearTiles();
this.load();
}

Expand Down

0 comments on commit eddb7d1

Please sign in to comment.