Add a "features" option to ol.interaction.Select

This commit is contained in:
Éric Lemoine
2015-09-22 16:56:15 +02:00
parent 7896350fe4
commit 0bc8858760
3 changed files with 24 additions and 0 deletions

View File

@@ -180,6 +180,7 @@ ol.interaction.Select = function(opt_options) {
this.featureOverlay_ = new ol.layer.Vector({
source: new ol.source.Vector({
useSpatialIndex: false,
features: options.features,
wrapX: options.wrapX
}),
style: goog.isDef(options.style) ? options.style :