Add ol.source.Vector#addFeaturesInternal

This commit is contained in:
Tom Payne
2013-12-19 13:21:51 +01:00
parent 387fcfbdb0
commit e6c66d3678

View File

@@ -106,6 +106,20 @@ ol.source.Vector.prototype.addFeatureInternal = function(feature) {
};
/**
* Add features without firing a `change` event.
* @param {Array.<ol.Feature>} features Features.
* @protected
*/
ol.source.Vector.prototype.addFeaturesInternal = function(features) {
// FIXME use R-Bush bulk load when available
var i, ii;
for (i = 0, ii = features.length; i < ii; ++i) {
this.addFeatureInternal(features[i]);
}
};
/**
* FIXME empty description for jsdoc
*/