Add ol.FeaturesOverlay#removeFeature
This commit is contained in:
@@ -4,3 +4,4 @@
|
||||
@exportProperty ol.render.FeaturesOverlay.prototype.setFeatures
|
||||
@exportProperty ol.render.FeaturesOverlay.prototype.setMap
|
||||
@exportProperty ol.render.FeaturesOverlay.prototype.setStyleFunction
|
||||
@exportProperty ol.render.FeaturesOverlay.prototype.removeFeature
|
||||
|
||||
@@ -152,6 +152,14 @@ ol.render.FeaturesOverlay.prototype.handleMapPostCompose_ = function(event) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
*/
|
||||
ol.render.FeaturesOverlay.prototype.removeFeature = function(feature) {
|
||||
this.features_.remove(feature);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user