Show / Hide Table of Contents

Property AutoPanMode

AutoPanMode

Gets or sets the auto pan mode which determines how location changes affect the current viewpoint.

Declaration
public LocationDisplayAutoPanMode AutoPanMode { get; set; }
Property Value
Type Description
LocationDisplayAutoPanMode

The auto pan mode.

Remarks

The different auto-pan modes are suited for different types of app, including modes designed for navigation on foot and in a vehicle. They affect the symbols used to display device location, the initial zooming behavior, and the panning behavior of the MapView.

The auto-pan modes include:

  • Recenter - the map view attempts to keep the location symbol on-screen by re-centering the location symbol when the symbol moves outside an extent defined by the WanderExtentFactor.
  • Navigation - the location symbol is pinned to a point on the screen and always points toward the top edge of the device. The map pans and rotates based on location updates and the direction of travel.
  • Compass navigation - the location symbol is pinned to a point on the screen and always points toward the top edge of the device. The map rotates based on the user's bearing relative to magnetic north.
  • Off - the map only updates the position of the location symbol on the map.

To start the LocationDisplay in a specific mode, call this method before you start the LocationDataSource.

Any default zooming behavior (besides scrolling) or any operation that modifies the Viewpoint will automatically set the auto-pan mode to Off.

The default auto-pan mode is Off.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Display device location: Display your current position on the map, as well as switch between different types of auto pan Modes.
Navigate route: Use a routing service to navigate between points.
Show location history: Display your location history on the map.
In This Article
Back to top Copyright © 2022 Esri.