Use addFeaturesInternal in ol.source.Vector constructor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user