-
-
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
Improve docs for interaction.Select #2269
Conversation
@@ -1928,7 +1928,8 @@ olx.interaction.SelectOptions.prototype.addCondition; | |||
/** | |||
* A function that takes an {@link ol.MapBrowserEvent} and returns a boolean | |||
* to indicate whether that event should be handled. | |||
* By default, {@link ol.events.condition.singleClick} toggles the selection. | |||
* By default, {@link ol.events.condition.singleClick} makes this feature | |||
* the selected one. Additional features can be added with the `toggle` option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand "By default, {@link ol.events.condition.singleClick} makes this feature the selected one." Is it just me?
rewritten. Hope this is now clear |
I like it. @elemoine, do you agree? |
@@ -1928,7 +1928,12 @@ olx.interaction.SelectOptions.prototype.addCondition; | |||
/** | |||
* A function that takes an {@link ol.MapBrowserEvent} and returns a boolean | |||
* to indicate whether that event should be handled. | |||
* By default, {@link ol.events.condition.singleClick} toggles the selection. | |||
* This is the toggle for the selected features as a whole. By default, this is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the word "toggle" a bit confusing here. But again this may be just me. Leave it if you think it makes sense.
It looks good to me too. I just added two new comments. We can merge this when my second comment is addressed. Thanks! |
revised version |
Improve docs for interaction.Select
Attempts to make the options clearer.