[OpenLayers-Users] OL 6 DragZoom Control - how to change condition

karsten karsten at terragis.net
Wed Jan 12 11:13:33 PST 2022


Hi All,
 
in OL 6 I would like to use a button so a user can click activate a change
for the dragzoom control 
so it will be available without holding down shift.
In
<https://openlayers.org/en/latest/apidoc/module-ol_interaction_DragZoom-Drag
Zoom.html>
https://openlayers.org/en/latest/apidoc/module-ol_interaction_DragZoom-DragZ
oom.html it lists the option 'condition' to handles this.
I could not figure out how to change and set that condition . Any examples
how to do this?
 
Thanks
Karsten 

Terra GIS LTD
 <http://www.terragis.net> www.terragis.net
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20220112/1abea58b/attachment.html>


More information about the Users mailing list