Use addFeaturesInternal in ol.source.Vector constructor
This commit is contained in:
@@ -63,11 +63,7 @@ ol.source.Vector = function(opt_options) {
|
|||||||
this.featureChangeKeys_ = {};
|
this.featureChangeKeys_ = {};
|
||||||
|
|
||||||
if (goog.isDef(options.features)) {
|
if (goog.isDef(options.features)) {
|
||||||
var features = options.features;
|
this.addFeaturesInternal(options.features);
|
||||||
var i, ii;
|
|
||||||
for (i = 0, ii = features.length; i < ii; ++i) {
|
|
||||||
this.addFeature(features[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user