added clear method to vectortile source

This commit is contained in:
Florian Zouhar
2017-08-22 14:26:08 +02:00
parent 46e17530bc
commit 4476c1bb03

View File

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