added clear method to vectortile source

This commit is contained in:
Florian Zouhar committed 2017-08-22 14:28:42 +02:00
1 parent 46e17530bc
commit 4476c1bb03
1 file changed
+7
+7
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