ArcGIS Pro 3.7 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
    Sub ZoomOrPanToCurrentLocation( _
       ByVal zoom As Boolean _
    ) 
    void ZoomOrPanToCurrentLocation( 
       bool zoom
    )

    Parameters

    zoom
    System.Boolean
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also