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 |
---|---|
Location |
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 Map
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 Wander
Extent .Factor - 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 Location
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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.