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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user