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:
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
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.