Skip To Content ArcGIS for Developers Sign In Dashboard

AbstractLocationDataSource QML Type

A location data source object. More...

Import Statement: import Esri.ArcGISRuntime 100.9
Since: Esri.ArcGISRuntime 100.8
Inherits:

Object

Inherited By:

CustomLocationDataSource, DefaultLocationDataSource, RouteTrackerLocationDataSource, and SimulatedLocationDataSource

Properties

Signals

Methods

Detailed Description

This type provides an interface for updating a location - for example, used by the LocationDisplay.

AbstractLocationDataSource is a class which can be customized to provide your own data source. To do this, you would create a CustomLocationDataSource and implement the start and stop callbacks in JavaScript.

The DefaultLocationDataSource provides a default implementation designed to work with the QML types:

Property Documentation

started : bool

Whether this data source has been started (true) or not (false) (read-only).


Signal Documentation

headingChanged()

Signal emitted when heading of the data source changes.

Note: The corresponding handler is onHeadingChanged.


locationChanged()

Signal emitted when location of the data source changes.

Note: The corresponding handler is onLocationChanged.


startedChanged()

Signal emitted when the started property of the data source changes.

Note: The corresponding handler is onStartedChanged.


statusChanged()

Signal emitted when the status of the data source changes.

Note: The corresponding handler is onStatusChanged.

See also started.


Method Documentation

void onStartCompleted(error)

Indicates that the start operation of the AbstractLocationDataSource has been completed.

If you are implementing a CustomLocationDataSource, this method must be called at the end of the CustomLocationDataSource::startCallback.

  • error - If the data source could not be started, this string supplies an error message.

void onStopCompleted()

Indicates that the stop operation of the AbstractLocationDataSource has been completed.

If you are implementing a CustomLocationDataSource, this method must be called at the end of the CustomLocationDataSource::stopCallback.


void start()

Starts the location data source.


void stop()

Stops the location data source.


void updateHeading(heading)

Updates the heading.

  • heading - a heading in degrees, clockwise from North.

void updateLocation(location)

Update the location position.



Feedback on this topic?