Map extent changed event

1216
2
Jump to solution
11-23-2017 04:03 AM
MaxMax2
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)
0 Kudos
1 Solution

Accepted Solutions
UmaHarano
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

0 Kudos
2 Replies
MaxMax2
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.

0 Kudos
UmaHarano
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

0 Kudos