Hello,
I was looking at the measurement widget at the following site. I noticed that when you close the drop-down it still lets you measure things. Is there a way to disable the measure widget when the container is closed?
Measurement Widget | ArcGIS API for JavaScript
Thanks,
Jenna
Hi Jenna,
Check out this link.
Edit fiddle - JSFiddle
Is this what you're after?
Ryan
Jenna,
You click on the tool you have active again to toggle the tool off. You could add an event listener to the title panes toggle event to turn off the measure widgets selected tool.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.