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

In This Topic
    ZoomOrPanToCurrentLocation Method (IMapDeviceLocationService)
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also