AnsweredAssumed Answered

Disable Draw Toolbar when using Measurement widget

Question asked by sbills2 on Sep 18, 2017
Latest reply on Sep 19, 2017 by sbills2

I have a map using the 3.21 JavaScript API that contains a Draw Toolbar and a Measurement widget. I would like to disable the Draw Toolbar when the Measurement widget is used so the user isn't drawing while measuring. I tried attaching to the tool-change event of the Measurement widget and deactivating the Draw Toolbar from there, but that's causing issues with the Measurement widget where the last segments of the area or distance measurements aren't added to the total. Is there a good way of deactivating the Draw Toolbar when using the Measurement widget?

Outcomes