Skip to content

Include own layer in layerFilter and only select unselected features #4613

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

Merged
merged 1 commit into from
Jan 5, 2016

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Jan 4, 2016

When selecting an already selected feature, it will be on the Select
interaction's featureOverlay_. So we need to include that featureOverlay_
in the layer filter, regardless of what the user set as layer filter.

When in toggle mode, we need to make sure that we only select features that
are not already included in the selection.

Fixes #4607

When selecting an already selected feature, it will be on the Select
interaction's featureOverlay_. So we need to include that featureOverlay_
in the layer filter, regardless of what the user set as layer filter.

When in toggle mode, we need to make sure that we only select features that
are not already included in the selection.
@fredj
Copy link
Member

fredj commented Jan 5, 2016

LGTM, thanks

ahocevar added a commit that referenced this pull request Jan 5, 2016
Include own layer in layerFilter and only select unselected features
@ahocevar ahocevar merged commit 15be53e into openlayers:master Jan 5, 2016
@ahocevar ahocevar deleted the select-self branch January 5, 2016 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants