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 Mar 19, 2019
1 parent dbf17b0 commit 36161ea
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 @@ -107,6 +107,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 36161ea

Please sign in to comment.