Show / Hide Table of Contents

Property DataSource

DataSource

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

Declaration
public LocationDataSource DataSource { get; set; }
Property Value
Type Description
LocationDataSource

The location data source used for generating location updates.

Remarks

LocationDisplay uses a location data source to provide the current position of the device. To start receiving location updates, and display the current location, you must start the location data source.

By default the location data source obtains locations from the device's operating system.

Alternative location data sources include:

  • SimulatedLocationDataSource
  • NmeaLocationDataSource
  • IndoorsLocationDataSource
  • RouteTrackerLocationDataSource

See Also
SystemLocationDataSource
SimulatedLocationDataSource
NmeaLocationDataSource
IndoorsLocationDataSource
RouteTrackerLocationDataSource

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
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.