You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To see this, open a map with edit controls, and click on a tool to start drawing a polygon. Set the drawInteraction to inactive, and see that the drawing control is deactivated, but remains selected:
Right now the edit controls are not fully responsive to the OL interaction's "active" state: https://openlayers.org/en/latest/apidoc/module-ol_interaction_Interaction-Interaction.html#getActive
To see this, open a map with edit controls, and click on a tool to start drawing a polygon. Set the
drawInteraction
to inactive, and see that the drawing control is deactivated, but remains selected:Right now you can deactivate any of the interactions by calling
edit.disableAll()
:farmOS-map/src/control/Edit/Edit.js
Line 423 in 65f13b2
but I'm curious if our edit control could be refactored to use the Interactions concept of "active" state. The
Interaction
objects do seem to fire achange:active
event that could be used to update state within our edit control: https://openlayers.org/en/latest/apidoc/module-ol_interaction_Interaction-Interaction.htmlThe text was updated successfully, but these errors were encountered: