ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / LookAtAsync Method
The point to center the view at.
The amount of time to navigate the view to the new camera position. If null it uses the transition time property set for the application.

In This Topic
    LookAtAsync Method
    In This Topic
    Center the view at a given point.
    Syntax
    Public Function LookAtAsync( _
       ByVal mapPoint As MapPoint, _
       Optional ByVal duration As Nullable(Of TimeSpan) _
    ) As Task(Of Boolean)

    Parameters

    mapPoint
    The point to center the view at.
    duration
    The amount of time to navigate the view to the new camera position. If null it uses the transition time property set for the application.

    Return Value

    True if the navigation is completed, false if it was interrupted by another view navigation.
    Remarks
    In 2D this will center the view on the given point, it will not adjust the Scale or Heading of the view. In 3D this will maintain X, Y, and Z for the camera and adjust the Heading and Pitch so that the provided point is at the center of the view.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also