Add ol.FeaturesOverlay#addFeature
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
@exportSymbol ol.render.FeaturesOverlay
|
@exportSymbol ol.render.FeaturesOverlay
|
||||||
|
@exportProperty ol.render.FeaturesOverlay.prototype.addFeature
|
||||||
@exportProperty ol.render.FeaturesOverlay.prototype.getFeatures
|
@exportProperty ol.render.FeaturesOverlay.prototype.getFeatures
|
||||||
@exportProperty ol.render.FeaturesOverlay.prototype.setFeatures
|
@exportProperty ol.render.FeaturesOverlay.prototype.setFeatures
|
||||||
@exportProperty ol.render.FeaturesOverlay.prototype.setMap
|
@exportProperty ol.render.FeaturesOverlay.prototype.setMap
|
||||||
|
|||||||
@@ -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.
|
* @return {ol.Collection} Features collection.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user