ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping.DeviceLocation Namespace / MapDeviceLocationOptions Class / TrackUpNavigation Property
Example

In This Topic
    TrackUpNavigation Property
    In This Topic
    Gets and sets whether the heading of the location from the device points to the top of the screen.
    Syntax
    Public Property TrackUpNavigation As Boolean
    public bool TrackUpNavigation {get; set;}
    Remarks

    Zooming or pannig the map view interactively cancels this mode and sets it to MappingDeviceLocationNavigationMode.None

    By default, TrackupNavigation is set to False.

    Example
    Get Current Map Device Location Options
    {
        //Gets the current device location options used by the MapDeviceLocationService
        var options = MapDeviceLocationService.Instance.GetDeviceLocationOptions();
        //Device location visibility on the map
        var visibility = options.DeviceLocationVisibility;
        //MappingDeviceLocationNavigationMode
        var navMode = options.NavigationMode;
        //Heading of the location from the device points to the top of the screen
        var trackUp = options.TrackUpNavigation;
        //Show accuracy buffer on the map
        var showBuffer = options.ShowAccuracyBuffer;
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also