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
Add a 'condition' option to ol.interaction.Modify #5320
Conversation
0359852
to
afb2084
Compare
FYI, I need this new option to not add a vertex to a linestring when the right click is used: new ol.interaction.Modify({
condition: ol.events.condition.mouseActionButton,
...
}); Thanks for any review |
Wouldn't ol.events.condition.mouseActionButton be a better default than what we currently have? Also, the docs could be a bit more verbose, e.g. 'Condition that determines whether the event will be considered to add a vertex to the sketch.'. |
I suspect that
Yes, good suggestion |
That it: |
Ok, thanks for investigating. So let's keep the default as it is. |
I've updated the code and added a |
ready for review, thanks |
Very nice. Please merge. |
Thanks for the review |
No description provided.