Is there a way to subscribe to an Event when any Map becomes 'Active'? I have an add in that needs to get a list of the layers of the current active map, and if it changes, they need to change too.
Hi,
You can use the ActiveMapViewChangedEvent class. In the arcgis-pro-sdk-community-samples repo there are a few samples that demonstrate this.
Search the repo for the text "activeMapViewChangedEvent" to find the sample.
Thanks!
Uma
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.