Show / Hide Table of Contents

Class LocationDisplay

Defines how location is displayed on a MapView.

Inheritance
Object
LocationDisplay
Implements
System.ComponentModel.INotifyPropertyChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.UI
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class LocationDisplay : INotifyPropertyChanged
Remarks

Location Display requires the Location Capability for the app to be enabled.

Properties

Name Description
AccuracySymbol

Gets or sets the fill symbol indicating how accurate the current location is

AcquiringSymbol

Gets or sets the symbol shown while the location is being acquired

AutoPanMode

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

CourseSymbol

Gets or sets the symbol when moving. The symbol is rotated with the heading of the movement.

DataSource

Gets or sets the location data source used for generating location updates.

DefaultSymbol

Gets or sets the symbol used for location when not moving.

Heading

Gets the heading of the current location

HeadingSymbol

Gets or sets the symbol shown in compass mode. The symbol is rotated with the heading of the compass.

InitialZoomScale

Gets or sets the initial zoom scale

IsEnabled

Gets or sets a value indicating whether the location display and its datasource are enabled.

Location

Gets the most recent location reported by the location data source.

MapLocation

Gets the map position of the most recent location reported by the location data source in the projection of the current map view

NavigationPointHeightFactor

Gets or sets the navigation point height factor.

Opacity

Gets or sets the opacity to apply to the location symbols

PingAnimationSymbol

Gets or sets the ping animation symbol

ShowAccuracy

Gets or sets a value indicating whether to display the accuracy of the current location.

ShowLocation

Gets or sets a value indicating whether the location is shown on the MapView this instance is associated with.

ShowPingAnimationSymbol

Gets or sets a value indicating whether the ping animation is shown.

Started

Gets a value indicating whether updating of the location is active or not.

UseCourseSymbolOnMovement

Gets or sets a value indicating whether to use the course symbol when moving.

WanderExtentFactor

Gets or sets the proportion of the current extent within which the location can be without automatically panning the map. Valid range is between 0 (continuous panning) and 1 (only pan when the location reaches the edge of the current extent. Only applies when AutoPanMode is set to Recenter.

Events

Name Description
AutoPanModeChanged

Occurs when the AutoPanMode changes

LocationChanged

Occurs when the location changes

PropertyChanged

Occurs when a property value changes

StatusChanged

Occurs when the status of the location changes

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15

Relevant samples

Display device location: Display your current position on the map, as well as switch between different types of auto pan Modes.
Find place: Find places of interest near a location or within a specific area.
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.