Class LocationDisplay
Defines how location is displayed on a Map
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.UI
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class LocationDisplay : INotifyPropertyChanged
Remarks
Location display can retrieve the device's current location from a Location
Each Map
Apart from the device operating system's built-in location, you can also display locations from other sources, including external (high accuracy) GPS, an indoor positioning system (IPS), or simulated locations (for mocking location updates) using the following location data sources:
- Simulated
Location Data Source - Nmea
Location Data Source - Indoors
Location Data Source - Route
Tracker Location Data Source
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 (Accuracy
You can change the default symbology of these symbols to make them more visible against the underlying map cartography, increase their visibility for visually impaired users, or match an app's visual appearance.
Properties
Name | Description |
---|---|
Accuracy |
Gets or sets the fill symbol indicating how accurate the current location is. |
Acquiring |
Gets or sets the symbol used to display the last known location while the current location is being acquired. |
Auto |
Gets or sets the auto pan mode which determines how location changes affect the current viewpoint. |
Course |
Gets or sets the symbol used to display the current location and the course (direction of travel) when moving. |
Data |
Gets or sets the location data source used for generating location updates. |
Default |
Gets or sets the symbol used for location when not moving. |
Heading | Gets the heading angle of the current location in degrees relative to north. |
Heading |
Gets or sets the symbol used for the location when the auto-pan mode is Compass |
Initial |
Gets or sets the scale that the map should automatically be zoomed to upon receiving the first location update. |
Is |
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 in the projection of the current map view. |
Map |
Gets the map position of the most recent location reported by the location data source in the projection of the current map view |
Navigation |
Gets or sets the navigation point height factor. |
Opacity | Gets or sets the opacity value of all symbols displayed by the Location |
Ping |
Gets or sets the symbol that will be animated around the location symbol, to indicate when location updates are received. |
Show |
Gets or sets a value indicating whether to display the accuracy of the current location. |
Show |
Gets or sets a value indicating whether the location is shown on the Map |
Show |
Gets or sets a value indicating whether the ping animation is shown. |
Started | Gets a value indicating whether the location display is currently active (the Location |
Use |
Gets or sets a value indicating whether the Course |
Wander |
Gets or sets the wander extent factor controls the re-centering behavior of the Map |
Events
Name | Description |
---|---|
Auto |
Occurs when the Auto |
Location |
Occurs when the location changes |
Property |
Occurs when a property value changes |
Status |
Occurs when the status of the location changes |
Applies to
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 |