Select to view content in your preferred language

How to disable coordinate widget capture mode

355
3
Jump to solution
11-22-2023 03:06 PM
BradBarnell
New Contributor III

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)

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JoelBennett
MVP Regular Contributor

This appears to work:

 

View.ui.remove(coordinate_conversion_widget);
coordinate_conversion_widget.mode = "live";

 

View solution in original post

0 Kudos
3 Replies
JoelBennett
MVP Regular Contributor

This appears to work:

 

View.ui.remove(coordinate_conversion_widget);
coordinate_conversion_widget.mode = "live";

 

0 Kudos
Noah-Sager
Esri Regular Contributor

Can you explain your use case a bit more?

0 Kudos
BradBarnell
New Contributor III

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.

0 Kudos