Map extent changed event

380
2
Jump to solution
11-23-2017 04:03 AM
Highlighted
Occasional Contributor II

Is there an event when visible extent of the current map changed? I want to track such changes to update some values in my add-in. Or maybe there is a workaround for this task?

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Regular Contributor

Hi,

You can use the MapViewCameraChangedEvent for this.  http://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic12830.html 

The ViewExtentChanged event is in an internal namespace - they could change anytime. So not recommended to use anything from a Pro API Internal namespace.

Also, there are a couple of samples in the arcgis-pro-sdk-community-samples that uses the MapViewCameraChangedEvent.

Thanks

Uma

View solution in original post

Reply
0 Kudos
2 Replies
Highlighted
Occasional Contributor II

I've found that event. It is ViewerExtentChanged from the ArcGIS.Desktop.Internal.Mapping. It is possible to attach handler to this event with the Subscribe method.

Reply
0 Kudos
Highlighted
Esri Regular Contributor

Hi,

You can use the MapViewCameraChangedEvent for this.  http://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic12830.html 

The ViewExtentChanged event is in an internal namespace - they could change anytime. So not recommended to use anything from a Pro API Internal namespace.

Also, there are a couple of samples in the arcgis-pro-sdk-community-samples that uses the MapViewCameraChangedEvent.

Thanks

Uma

View solution in original post

Reply
0 Kudos