A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-locationdisplay.html below:

LocationDisplay Class | ArcGIS Maps SDK for Qt

Member Function Documentation [override virtual noexcept] LocationDisplay::~LocationDisplay()

Destructor.

Esri::ArcGISRuntime::Symbol *LocationDisplay::accuracySymbol() const

Returns a symbol used to represent location accuracy.

The accuracy of the location can vary depending on signal strength, satellite positions, and other factors. This circle may contract and expand as the accuracy of the locations, read from the AbstractLocationDataSource, increases or decreases.

The default symbol is a blue outline with a semi-transparent white fill.

See also setAccuracySymbol().

Esri::ArcGISRuntime::Symbol *LocationDisplay::acquiringSymbol() const

Returns the symbol used to display the last known location while the current location is being acquired.

The symbol will be shown until a new location fix is found. This symbol may be used immediately after starting the LocationDisplay. Once an up-to-date location is acquired, the defaultSymbol, courseSymbol, or headingSymbol is used, depending on the current settings of the LocationDisplay. The default symbol is a grey circle.

See also setAcquiringSymbol().

int LocationDisplay::acquiringTimeout() const

The time in milliseconds between the last valid position update and displaying the acquiring symbol.

See also setAcquiringTimeout().

Esri::ArcGISRuntime::LocationDisplayAutoPanMode LocationDisplay::autoPanMode() const

Defines how the MapView reacts when location updates are received.

The different auto-pan modes are suited for different types of app, including modes designed for navigation on foot and in a vehicle. They affect the symbols used to display device location, the initial zooming behavior, and the panning behavior of the MapView.

The auto-pan modes include:

To start the LocationDisplay in a specific mode, call this method before you start the AbstractLocationDataSource.

Any default zooming behavior (besides scrolling) or any operation that modifies the Viewpoint will automatically set the auto-pan mode to LocationDisplayAutoPanMode::Off.

The default auto-pan mode is LocationDisplayAutoPanMode::Off.

See also setAutoPanMode() and LocationDisplayAutoPanMode.

[signal] void LocationDisplay::autoPanModeChanged(Esri::ArcGISRuntime::LocationDisplayAutoPanMode autoPanMode)

Emitted when the auto pan mode changes.

Esri::ArcGISRuntime::Symbol *LocationDisplay::courseSymbol() const

Returns the symbol used to display the current location and the course (direction of travel) when moving.

This symbol rotates with the heading of the movement. If course information is not available (for example if the device is not moving), the defaultSymbol is used.

See also setCourseSymbol().

[since Esri::ArcGISRuntime 100.8] Esri::ArcGISRuntime::AbstractLocationDataSource *LocationDisplay::dataSource() const

Returns the location data source used for generating location updates.

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:

This function was introduced in Esri::ArcGISRuntime 100.8.

See also setDataSource().

Esri::ArcGISRuntime::Symbol *LocationDisplay::defaultSymbol() const

Returns the symbol used for the location when not moving.

Changing the location symbols is typically done if the existing symbols do not work well with the underlying map cartography, to increase visibility for visually impaired users, or to match an apps visual appearance.

See also setDefaultSymbol().

double LocationDisplay::heading() const

Returns the heading angle of the current location in degrees relative to north.

This is only applicable when the auto-pan mode is LocationDisplayAutoPanMode::CompassNavigation. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed due east, 180 means it is pointed due south, and so on. A negative value indicates that the heading could not be determined.

[signal] void LocationDisplay::headingChanged()

Emitted when the heading changes.

Esri::ArcGISRuntime::Symbol *LocationDisplay::headingSymbol() const

Returns the symbol used for the location when the auto-pan mode is LocationDisplayAutoPanMode::CompassNavigation.

The symbol is rotated to match with the heading of the compass. If there is no heading information (for example, if the device does not have a compass sensor), the defaultSymbol is used.

See also setHeadingSymbol().

double LocationDisplay::initialZoomScale() const

Returns the scale that the map should automatically be zoomed to upon receiving the first location update.

The initial map scale to which the MapView will zoom when the first location update is received after the auto-pan mode is changed from LocationDisplayAutoPanMode::Off to any other value. The default value is 10,000.

See also setInitialZoomScale().

bool LocationDisplay::isShowAccuracy() const

Returns true if the accuracySymbol is shown, false otherwise.

bool LocationDisplay::isShowLocation() const

Returns true if location symbols are shown, false otherwise.

bool LocationDisplay::isShowPingAnimationSymbol() const

Returns true if the pingAnimationSymbol is shown, false otherwise.

bool LocationDisplay::isStarted() const

Returns true if the location display is currently active (the AbstractLocationDataSource has been started), false otherwise.

bool LocationDisplay::isUseCourseSymbolOnMovement() const

Returns true if the courseSymbol is used to display current location, when the location updates indicate the device is moving, false otherwise.

If no course information is available, the default symbol will be used instead. The courseSymbol is rotated in order to indicate the device's direction of travel. Generally, course information is only available if the device is actively moving (the location has a positive speed).

Esri::ArcGISRuntime::Location LocationDisplay::location() const

Returns the most recent location reported by the location data source.

The Location provides data for the single location, including position, course, velocity, and accuracy.

[signal] void LocationDisplay::locationChanged(const Esri::ArcGISRuntime::Location &location)

Emitted when the location changes.

Esri::ArcGISRuntime::Point LocationDisplay::mapLocation() const

Returns the map position of the most recent location reported by the location data source in the projection of the current map view.

float LocationDisplay::navigationPointHeightFactor() const

Returns the navigation point height factor. The factor will decide the location symbol position vertically from the bottom of the map when the auto-pan mode is LocationDisplayAutoPanMode::Navigation. When navigating in a map, the current location is typically vertically positioned near the bottom of the map, and horizontally centered in the map, so that the map displays as much of the route ahead as possible.

See also setNavigationPointHeightFactor().

float LocationDisplay::opacity() const

Returns the opacity value of all symbols displayed by the LocationDisplay. The value should be between 0 and 1.

See also setOpacity().

Esri::ArcGISRuntime::Symbol *LocationDisplay::pingAnimationSymbol() const

Returns the symbol that will be animated around the location symbol, to indicate when location updates are received.

Location update animations are only shown when isShowPingAnimationSymbol is true.

See also setPingAnimationSymbol().

void LocationDisplay::setAccuracySymbol(Esri::ArcGISRuntime::Symbol *accuracySymbol)

Sets the accuracySymbol to accuracySymbol.

See also accuracySymbol.

void LocationDisplay::setAcquiringSymbol(Esri::ArcGISRuntime::Symbol *acquiringSymbol)

Sets the acquiringSymbol to acquiringSymbol.

See also acquiringSymbol.

void LocationDisplay::setAcquiringTimeout(int timeoutMilliseconds)

Sets the acquiring symbol timeout to timeoutMilliseconds.

The default timeout is 5 seconds. If the acquiringTimeout is passed, the location symbol will change to display the location acquiring symbol (which is gray in color).

See also acquiringTimeout().

void LocationDisplay::setAutoPanMode(Esri::ArcGISRuntime::LocationDisplayAutoPanMode autoPanMode)

Sets the autoPanMode to autoPanMode.

See also autoPanMode.

void LocationDisplay::setCourseSymbol(Esri::ArcGISRuntime::Symbol *courseSymbol)

Sets the courseSymbol to courseSymbol.

See also courseSymbol.

[since Esri::ArcGISRuntime 100.8] void LocationDisplay::setDataSource(Esri::ArcGISRuntime::AbstractLocationDataSource *dataSource)

Sets the dataSource to dataSource.

This function was introduced in Esri::ArcGISRuntime 100.8.

See also dataSource.

void LocationDisplay::setDefaultSymbol(Esri::ArcGISRuntime::Symbol *defaultSymbol)

Sets the defaultSymbol to defaultSymbol.

See also defaultSymbol.

void LocationDisplay::setHeadingSymbol(Esri::ArcGISRuntime::Symbol *headingSymbol)

Sets the headingSymbol to headingSymbol.

See also headingSymbol.

void LocationDisplay::setInitialZoomScale(double initialScale)

Sets the initialZoomScale to initialScale.

See also initialZoomScale.

void LocationDisplay::setNavigationPointHeightFactor(float pointHeightFactor)

Sets the navigationPointHeightFactor to pointHeightFactor.

See also navigationPointHeightFactor.

void LocationDisplay::setOpacity(float opacity)

Sets the opacity to opacity.

See also opacity.

void LocationDisplay::setPingAnimationSymbol(Esri::ArcGISRuntime::Symbol *pingSymbol)

Sets the pingAnimationSymbol to pingSymbol.

See also pingAnimationSymbol.

void LocationDisplay::setShowAccuracy(bool enable)

Sets the showAccuracy to enable.

See also isShowAccuracy.

void LocationDisplay::setShowLocation(bool enable)

Sets the showLocation to enable.

See also isShowLocation.

void LocationDisplay::setShowPingAnimationSymbol(bool enable)

Sets the showPingAnimationSymbol to enable.

See also isShowPingAnimationSymbol.

void LocationDisplay::setUseCourseSymbolOnMovement(bool enable)

Sets the useCourseSymbolOnMovement to enable.

See also isUseCourseSymbolOnMovement.

void LocationDisplay::setWanderExtentFactor(float wanderFactor)

Sets the wanderExtentFactor to wanderFactor.

See also wanderExtentFactor.

void LocationDisplay::start()

Starts the LocationDisplay on the MapView.

If a location data source is not explicitly set, a DefaultLocationDataSource will be assigned and started. If you attempt to start location display on a instance that is already started, it will complete without attempting to start it again. There is no need to check if it is started before calling start. If a user had previously denied the app access to location services, calling start again will again attempt to start.

[signal] void LocationDisplay::statusChanged(bool started)

Emitted when the status changes.

void LocationDisplay::stop()

Stops the LocationDisplay on the MapView.

Calling stop on the LocationDisplay will automatically attempt to stop its location data source.

float LocationDisplay::wanderExtentFactor() const

Returns the wander extent factor controls the re-centering behavior of the MapView when the location changes.

The proportion of the current extent within which the location can be without automatically panning the map. Permitted values are in the range between 0 (continuous panning) and 1 (only pan when the location reaches the edge of the current extent). This value only applies when the auto-pan mode is LocationDisplayAutoPanMode::Recenter. Lower values within this range will cause the map to re-center more often, leading to higher CPU and battery consumption.

See also setWanderExtentFactor().


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4