Dispose of vector tiles properly

This commit is contained in:
Andreas Hocevar
2017-05-17 00:02:28 +02:00
parent 8c00bbc91d
commit a9f369479f

View File

@@ -66,6 +66,18 @@ ol.VectorTile = function(tileCoord, state, src, format, tileLoadFunction) {
ol.inherits(ol.VectorTile, ol.Tile);
/**
* @inheritDoc
*/
ol.VectorTile.prototype.disposeInternal = function() {
this.features_ = null;
this.replayGroups_ = {};
this.state = ol.TileState.ABORT;
this.changed();
ol.Tile.prototype.disposeInternal.call(this);
};
/**
* Get the feature format assigned for reading this tile's features.
* @return {ol.format.Feature} Feature format.