Class LocationDisplay
Defines how location is displayed on a MapView.
Implements
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.
By default, the location display uses a blue, round symbol to show the current location. Depending on signal strength, satellite positions, and other factors, the accuracy of the reported location can vary. An additional blue circle around the location symbol indicates the estimated range of accuracy for the current location. As locations are read from the configured LocationDataSource, this outer circle may contract and expand as accuracy increases or decreases.
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.1 |
.NET 6.0 | 100.13 - 200.1 |
.NET 6.0 Windows | 100.13 - 200.1 |
.NET 6.0 Android | 200.0 - 200.1 |
.NET 6.0 iOS | 200.0 - 200.1 |
.NET Framework | 100.0 - 200.1 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Android | 100.0 - 100.15 |
iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.1 |