-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Correct/improve dragbox docs #2204
Conversation
* for zooming to a specific area of the map | ||
* (see {@link ol.interaction.DragZoom} and | ||
* {@link ol.interaction.DragRotateAndZoom}), or for selecting specific | ||
* features. |
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.
Do we really use the dragboxinteraction to select specific features (yet)?
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.
maybe not, but I think the point is that dragbox can be used for things other than zooming. I can take out that comment if you like (and try and remember to put it back when the selection example is merged)
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.
Yes, I would do that as well.
* A conditional modifier (i.e. Shift key) that determines if the interaction is | ||
* active or not, default is shify key. | ||
* A conditional modifier (such as the Shift key) that determines if the | ||
* interaction is active or not; default is shift key. |
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 think we should we be capitalizing Shift
consistently.
I agree with #2204 (comment) that the current description for 'condition' needs changing. However, this is not specific to dragbox; all the condition options say the same thing. The same applies to the comments on consistent shift/Shift. I've removed changes to olx.js from this PR and will submit another PR to change all condition option descriptions. |
Makes sense. Thanks Peter. |
Agreed. This looks good to me. |
We can address consistency of |
right, overlooked that - thanks. |
docs only, no logic change.
Was going to include a reference to the box-selection example #1959, but that hasn't been merged yet :-)