added clear method to vectortile source
This commit is contained in:
@@ -101,6 +101,13 @@ ol.source.VectorTile.prototype.getOverlaps = function() {
|
|||||||
return this.overlaps_;
|
return this.overlaps_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clear {@link ol.TileCache} and delete all source tiles
|
||||||
|
*/
|
||||||
|
ol.source.VectorTile.prototype.clear = function() {
|
||||||
|
this.tileCache.clear();
|
||||||
|
this.sourceTiles_ = {};
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
|
|||||||
Reference in New Issue
Block a user