Merge pull request #7172 from f7o/ol-source-vectortile-clear

added clear method to vectortile source
This commit is contained in:
Andreas Hocevar
2017-08-31 23:01:48 +02:00
committed by GitHub

View File

@@ -96,6 +96,14 @@ ol.source.VectorTile.prototype.getOverlaps = function() {
return this.overlaps_;
};
/**
* clear {@link ol.TileCache} and delete all source tiles
* @api
*/
ol.source.VectorTile.prototype.clear = function() {
this.tileCache.clear();
this.sourceTiles_ = {};
};
/**
* @inheritDoc