When in "Capture" mode on the Coordinate Conversion widget and then removing the widget from the UI, how do you disable the widget from continuing to capture map click points? I would like to change the mode back to "Live" mode without having to click the toggle button on the widget to disable it. I know I can destroy the widget, but that is not ideal.
View.ui.remove(coordinate_conversion_widget)
Solved! Go to Solution.
This appears to work:
View.ui.remove(coordinate_conversion_widget);
coordinate_conversion_widget.mode = "live";
This appears to work:
View.ui.remove(coordinate_conversion_widget);
coordinate_conversion_widget.mode = "live";
Can you explain your use case a bit more?
Users forget to toggle the Capture mode off on the Coordinate widget and then they click a button to hide the Coordinate widget. After that the click event on the map is stuck in capture coordinate location mode.