ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping.DeviceLocation Namespace / IMapDeviceLocationService Interface / ZoomOrPanToCurrentLocation Method
System.Boolean
Version

    ZoomOrPanToCurrentLocation Method (IMapDeviceLocationService)
    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
    )

    Parameters

    zoom
    System.Boolean
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also