Skip To Content ArcGIS for Developers Sign In Dashboard

AbstractLocationDataSource QML Type

A location data source object. More...

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

Object

Inherited By:

CustomLocationDataSource, DefaultLocationDataSource, 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:

  • PositionSource
  • Compass

Property Documentation

started : bool

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


Signal Documentation

void headingChanged()

Signal emitted when heading of the data source changes.


void locationChanged()

Signal emitted when location of the data source changes.


void startedChanged()

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


void statusChanged()

Signal emitted when the status of the data source changes.

See also started.


Method Documentation

void onStartCompleted(String 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(double heading)

Updates the heading.

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

void updateLocation(Location location)

Update the location position.



Feedback on this topic?