ol.FeaturesOverlay creates a features collection

ol.FeaturesOverlay creates an empty collection of features if the features option is not specified.
This commit is contained in:
Éric Lemoine
2014-01-07 14:10:51 +01:00
parent 8c0406b390
commit 6556726541

View File

@@ -64,6 +64,8 @@ ol.render.FeaturesOverlay = function(opt_options) {
goog.asserts.assertInstanceof(options.features, ol.Collection);
this.setFeatures(options.features);
}
} else {
this.setFeatures(new ol.Collection());
}
if (goog.isDef(options.styleFunction)) {