-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass null as forEachFeatureAtPixel layer arg for unmanaged layers #4391
Pass null as forEachFeatureAtPixel layer arg for unmanaged layers #4391
Conversation
@bartvde I meant you should look at my branch to see if it makes your life easier, so you don't need a code snippet like the one you posted in your application. Your issue is unlikely to be fixed with this branch, but it might. Because now forEachFeatureAtPixel is only called once for features that are on multiple unmanaged layers. |
4680c8b
to
b6db331
Compare
LGTM @ahocevar does this deserve a mention in the release notes? |
I can add that, yes. |
f497b37
to
a446147
Compare
Done @bartvde. |
LGTM @ahocevar please merge if Travis agrees again |
…atpixel Pass null as forEachFeatureAtPixel layer arg for unmanaged layers
Fix select interaction regression caused by #4391
Features on the removed
ol.FeatureOverlay
were detected byol.Map#forEachFeatureAtPixel
, and thelayer
arg passed to the handler function wasnull
. This change makes it so the same behaviour applies to features on an unmanaged vector layer. Previously the forEachFeatureAtPixel handler was called with a reference to the unmanaged layer aslayer
arg.See #4143 (comment).
Fixes #4114.