Do not ignore layer filter for unmanaged layers

PR #3883 made `forEachFeatureAtPixel` ignore unmanaged layers. This commit reverts that change.
This commit is contained in:
Éric Lemoine
2015-09-21 18:02:56 +02:00
committed by Andreas Hocevar
parent 6897e3cc52
commit 279eae1dba
5 changed files with 10 additions and 35 deletions

View File

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