The following members of class LocationDisplay are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) QCompass * | compass() const |
(obsolete) QGeoPositionInfoSource * | positionSource() const |
(obsolete) void | setCompass(QCompass *compass) |
(obsolete) void | setPositionSource(QGeoPositionInfoSource *positionSource) |
Member Function Documentation
QCompass *LocationDisplay::compass() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Gets the QCompass that has been set to the LocationDisplay.
From Esri::ArcGISRuntime 100.8 you should access the QCompass exposed by the DefaultLocationDataSource instead.
See also setCompass() and QCompass.
QGeoPositionInfoSource *LocationDisplay::positionSource () const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Gets the QGeoPositionInfoSource that has been set to the LocationDisplay.
From Esri::ArcGISRuntime 100.8 you should access the QGeoPositionInfoSource exposed by the DefaultLocationDataSource instead.
See also setPositionSource() and QGeoPositionInfoSource.
void LocationDisplay::setCompass (QCompass *compass)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Sets the compass on the LocationDisplay.
To display position using a compass, two things must be done. First, a QCompass must be given to the LocationDisplay. This will acquire the azimuth and calibration level from the compass. Second, the LocationDisplayAutoPanMode must be set to CompassNavigation.
From Esri::ArcGISRuntime 100.8 you should access the QCompass exposed by the DefaultLocationDataSource instead.
See also compass() and QCompass.
void LocationDisplay::setPositionSource (QGeoPositionInfoSource *positionSource )
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Sets the positionSource on the LocationDisplay.
The position source obtains and distributes the position updates. The LocationDisplay uses these updates to display the location on the MapView.
From Esri::ArcGISRuntime 100.8 you should access the QGeoPositionInfoSource exposed by the DefaultLocationDataSource instead.
See also positionSource() and QGeoPositionInfoSource.