ArcGIS Pro 2.7 API Reference Guide
ZoomOrPanToCurrentLocation Method (IMapDeviceLocationService)

ArcGIS.Desktop.Mapping.DeviceLocation Namespace > IMapDeviceLocationService Interface : ZoomOrPanToCurrentLocation Method
System.Boolean
Zooms or pans the active map view to the current location, keeping the current device location at the center. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
void ZoomOrPanToCurrentLocation( 
   bool zoom
)
Sub ZoomOrPanToCurrentLocation( _
   ByVal zoom As Boolean _
) 

Parameters

zoom
System.Boolean
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IMapDeviceLocationService Interface
IMapDeviceLocationService Members