Add ol.FeaturesOverlay#addFeature

This commit is contained in:
Éric Lemoine
2014-01-07 14:09:46 +01:00
parent a313331098
commit 0b4970ae46
2 changed files with 9 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
@exportSymbol ol.render.FeaturesOverlay
@exportProperty ol.render.FeaturesOverlay.prototype.addFeature
@exportProperty ol.render.FeaturesOverlay.prototype.getFeatures
@exportProperty ol.render.FeaturesOverlay.prototype.setFeatures
@exportProperty ol.render.FeaturesOverlay.prototype.setMap

View File

@@ -77,6 +77,14 @@ ol.render.FeaturesOverlay = function(opt_options) {
};
/**
* @param {ol.Feature} feature Feature.
*/
ol.render.FeaturesOverlay.prototype.addFeature = function(feature) {
this.features_.push(feature);
};
/**
* @return {ol.Collection} Features collection.
*/