Use addFeaturesInternal in ol.source.Vector constructor

This commit is contained in:
Tom Payne
2013-12-19 13:24:06 +01:00
parent 0912c8f6ea
commit 3af6521ee3

View File

@@ -63,11 +63,7 @@ ol.source.Vector = function(opt_options) {
this.featureChangeKeys_ = {};
if (goog.isDef(options.features)) {
var features = options.features;
var i, ii;
for (i = 0, ii = features.length; i < ii; ++i) {
this.addFeature(features[i]);
}
this.addFeaturesInternal(options.features);
}
};