Subscribe to 'Active Map' event

719
1
Jump to solution
10-20-2017 02:10 PM
by Anonymous User
Not applicable

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.

Tags (2)
1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

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

View solution in original post

1 Reply
UmaHarano
Esri Regular Contributor

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