Exclude unmanaged layers from selection

This commit is contained in:
Andreas Hocevar
2015-11-08 10:25:29 +01:00
parent 1aea2c2b0c
commit d968f32456
2 changed files with 24 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) {
* @param {ol.layer.Layer} layer Layer.
*/
function(feature, layer) {
if (this.filter_(feature, layer)) {
if (layer && this.filter_(feature, layer)) {
selected.push(feature);
this.addFeatureLayerAssociation_(feature, layer);
return !this.multi_;