[explicit]
FeatureLayer::FeatureLayer(Esri::ArcGISRuntime::FeatureTable *featureTable, QObject *parent = nullptr)
Initialize the layer with the given featureTable and optional parent.
Any inherited FeatureTable type can be used as the input parameter for this constructor, except FeatureCollectionTable. To display features in a FeatureCollectionTable, use FeatureCollectionLayer.
Note: You cannot create a FeatureLayer from a FeatureCollectionTable.
[explicit, since Esri::ArcGISRuntime 100.14]
FeatureLayer::FeatureLayer(Esri::ArcGISRuntime::Item *item, QObject *parent = nullptr)
Creates a new feature layer object from a feature layer, map service, portal item or feature service portal item.
If the portal item is a map or feature service, then the FeatureLayer is created from the first layer on the service.
This function was introduced in Esri::ArcGISRuntime 100.14.
See also Layer::item.
[since Esri::ArcGISRuntime 100.3]
FeatureLayer::FeatureLayer(Esri::ArcGISRuntime::Item *item, qint64 serviceLayerId, QObject *parent = nullptr)
Creates a new feature layer object from a feature service portal item.
The feature layer will fail to load if an invalid portal item is passed in.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also Layer::item.
[override virtual noexcept]
FeatureLayer::~FeatureLayer()
Destructor.
void FeatureLayer::clearSelection()Clears selection on all features.
QString FeatureLayer::definitionExpression() constReturns a SQL expression that limits the features available for query and display on the feature layer.
The definition expression string should follow standard SQL syntax as detailed in the SQL reference for query expressions used in ArcGIS document.
See also setDefinitionExpression().
[since Esri::ArcGISRuntime 100.13]
Esri::ArcGISRuntime::DisplayFilterDefinition *FeatureLayer::displayFilterDefinition() const
Returns how features are filtered from the display.
Use this property to reduce the number of features displayed in the map or scene view. The filter aims to improve data visualization and optimize rendering performance. It only affects the display of features so all features are still available for query methods such as selectFeaturesAsync(const Esri::ArcGISRuntime::QueryParameters&, Esri::ArcGISRuntime::SelectionMode, QObject*): Future<FeatureQueryResult>.
This function was introduced in Esri::ArcGISRuntime 100.13.
See also setDisplayFilterDefinition(), ManualDisplayFilterDefinition, and ScaleDisplayFilterDefinition.
[override virtual, since Esri::ArcGISRuntime 200.8]
Esri::ArcGISRuntime::FeatureFormDefinition *FeatureLayer::featureFormDefinition() const
Reimplements: FeatureFormSource::featureFormDefinition() const.
Defines and returns the user interface to display when editing a feature in this layer or table.
This is nullptr
if an error occurs or if the table does not have an associated feature form definition.
This function was introduced in Esri::ArcGISRuntime 200.8.
[since Esri::ArcGISRuntime 200.2]
Esri::ArcGISRuntime::FeatureReduction *FeatureLayer::featureReduction() const
Defines the properties for dynamically aggregating and summarizing groups of features as the map scale or visible extent changes.
FeatureReduction is only supported for point feature layers in dynamic rendering mode (FeatureRenderingMode::Dynamic) in 2D.
The following conditions will generate a LayerViewState error and will result in the layer rendering the original features. 1. A FeatureLayer that uses static rendering mode is enabled with FeatureReduction. 2. A FeatureLayer enabled with FeatureReduction is added to a Scene (or a Scene that contains such a layer is loaded). 3. An unsupported renderer is used as the AggregationFeatureReduction::renderer. See AggregationFeatureReduction::renderer for more info.
If this property is explicitly set to nullptr
, FeatureReduction is removed from the FeatureLayer and is not persisted when saving the map.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also setFeatureReduction().
Esri::ArcGISRuntime::FeatureTable *FeatureLayer::featureTable() constReturns the feature table whose features are drawn on the map by this layer.
[override virtual, since Esri::ArcGISRuntime 100.12]
Esri::ArcGISRuntime::LayerFloorDefinition *FeatureLayer::floorDefinition() const
Reimplements: FloorAware::floorDefinition() const.
Defines the properties that allow a layer to be floor-aware.
When a layer is configured as floor-aware, it has a floorDefinition property that defines properties that allow a layer to be floor-aware. When it is nullptr
(default value) the specific layer does not support floor filtering.
This function was introduced in Esri::ArcGISRuntime 100.12.
See also setFloorDefinition().
[override virtual, since Esri::ArcGISRuntime 100.3]
Esri::ArcGISRuntime::TimeExtent FeatureLayer::fullTimeExtent() const
Reimplements: TimeAware::fullTimeExtent() const.
Returns the full time extent of the layer.
If the layer, such as an ArcGISMapImageLayer, has sublayers with different time extents, fullTimeExtent is a union of its sublayer's time extents.
This function was introduced in Esri::ArcGISRuntime 100.3.
[signal]
void FeatureLayer::fullTimeExtentChanged()
Signal emitted when the fullTimeExtent changes.
See also TimeAware.
bool FeatureLayer::isLabelsEnabled() constReturns true
if features in the layer are labelled, otherwise false
.
[override virtual]
bool FeatureLayer::isPopupEnabled() const
Reimplements: PopupSource::isPopupEnabled() const.
Returns whether the Popup is enabled on the PopupSource.
[since Esri::ArcGISRuntime 100.5]
bool FeatureLayer::isScaleSymbols() const
Returns true
if the layer's symbols and labels honor the map's reference scale, otherwise false
.
If the map has a positive reference scale, and the layer honors it, then symbols and labels are drawn at their specified size when the viewing scale is the same as the reference scale. They will grow or shrink as the view zooms in or out, to keep the symbol a fixed size on the map. If the map has no reference scale, the reference scale is zero, or this feature layer's scaleSymbols property is false
, then the symbols and labels will be drawn at their fixed screen size.
The default value is false
.
This function was introduced in Esri::ArcGISRuntime 100.5.
[override virtual, since Esri::ArcGISRuntime 100.3]
bool FeatureLayer::isSupportsTimeFiltering() const
Reimplements: TimeAware::isSupportsTimeFiltering() const.
Returns true
if the layer supports filtering data based on its time values, false
otherwise.
This function was introduced in Esri::ArcGISRuntime 100.3.
[override virtual, since Esri::ArcGISRuntime 100.3]
bool FeatureLayer::isTimeFilteringEnabled() const
Reimplements: TimeAware::isTimeFilteringEnabled() const.
Returns true
if the layer filters data based on its GeoView::timeExtent, false
otherwise.
This is only applicable if the layer's isSupportsTimeFiltering value is true
. If the GeoView::timeExtent value is empty, no time filtering is applied and all content is rendered.
This function was introduced in Esri::ArcGISRuntime 100.3.
[since Esri::ArcGISRuntime 100.1]
Esri::ArcGISRuntime::LabelDefinitionListModel *FeatureLayer::labelDefinitions() const
Returns the collection of LabelDefinition objects that define how labels are displayed.
This function was introduced in Esri::ArcGISRuntime 100.1.
[override virtual]
Esri::ArcGISRuntime::PopupDefinition *FeatureLayer::popupDefinition() const
Reimplements: PopupSource::popupDefinition() const.
See PopupSource.
See also setPopupDefinition().
[since Esri::ArcGISRuntime 100.1]
quint64 FeatureLayer::refreshInterval() const
Returns the refresh interval used by the layer, in milliseconds.
Layers request features from the service each time this interval elapses
A value of 0 means to never refresh.
This function was introduced in Esri::ArcGISRuntime 100.1.
See also setRefreshInterval().
Esri::ArcGISRuntime::Renderer *FeatureLayer::renderer() constReturns the renderer specifying how the features are symbolized.
See also setRenderer().
[since Esri::ArcGISRuntime 100.2]
Esri::ArcGISRuntime::FeatureRenderingMode FeatureLayer::renderingMode() const
Returns the mode that defines how the feature layer is rendered.
FeatureRenderingMode::Static mode is better suited for displaying large datasets (in terms of the number of vertices) and for complex symbology because it does not update the layer's display while pan/zoom operations are in progress.
FeatureRenderingMode::Dynamic mode is better suited for small datasets that update frequently or for better interactive experiences when the layer's display is updated continuously while pan/zoom operations are in progress.
This function was introduced in Esri::ArcGISRuntime 100.2.
See also setRenderingMode().
void FeatureLayer::resetFeaturesVisible()Resets the visibility of all features back to their original state.
void FeatureLayer::resetRenderer()Resets the renderer back to the original renderer provided by the FeatureTable.
[since Esri::ArcGISRuntime 100.2]
Esri::ArcGISRuntime::LayerSceneProperties FeatureLayer::sceneProperties() const
Returns the properties that are applied when the layer is rendered in a 3D scene using a SceneView object.
These settings will have no effect if the layer is displayed in a MapView.
This function was introduced in Esri::ArcGISRuntime 100.2.
See also setSceneProperties().
void FeatureLayer::selectFeature(Esri::ArcGISRuntime::Feature *feature)Selects the given feature and adds it to the current collection of selected features.
Selected features are rendered according to the GeoView::selectionProperties.
void FeatureLayer::selectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)Selects the given features and adds them to the current collection of selected features.
Use the selectedFeatures: Future<FeatureQueryResult> to retrieve all of the selected features.
[since Esri::ArcGISRuntime 200.2]
QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> FeatureLayer::selectFeaturesAsync(const Esri::ArcGISRuntime::QueryParameters ¶meters, Esri::ArcGISRuntime::SelectionMode mode, QObject *parent = nullptr)
Selects the features that match the criteria in the QueryParameters object and adds them to the current collection of selected features.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
[since Esri::ArcGISRuntime 200.2]
QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> FeatureLayer::selectedFeaturesAsync(QObject *parent = nullptr)
A collection of the currently selected features.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
[since Esri::ArcGISRuntime 100.3]
qint64 FeatureLayer::serviceLayerId() const
Returns the service layer ID in the feature service that this layer was created from.
This function was introduced in Esri::ArcGISRuntime 100.3.
void FeatureLayer::setDefinitionExpression(const QString &expression)Sets the definitionExpression to an expression.
The definition expression string uses the SQL-92 WHERE clause syntax. Be sure to escape special characters in the expression string as required for your platform. The DATE
keyword expects the date format yyyy-mm-dd
and the TIMESTAMP
keyword expects the time stamp format yyyy-mm-dd
hh:mm:ss. See the ArcGIS Blog article Querying Feature Services Date-Time Queries for more information.
See also definitionExpression.
[since Esri::ArcGISRuntime 100.13]
void FeatureLayer::setDisplayFilterDefinition(Esri::ArcGISRuntime::DisplayFilterDefinition *displayFilterDefinition)
Sets the displayFilterDefinition to displayFilterDefinition.
This function was introduced in Esri::ArcGISRuntime 100.13.
See also displayFilterDefinition.
[since Esri::ArcGISRuntime 200.3]
void FeatureLayer::setFeatureReduction(Esri::ArcGISRuntime::FeatureReduction *featureReduction)
Sets the featureReduction to featureReduction.
This function was introduced in Esri::ArcGISRuntime 200.3.
See also featureReduction.
void FeatureLayer::setFeatureVisible(Esri::ArcGISRuntime::Feature *feature, bool visible)Sets the visibility of the given feature.
true
to show the features, otherwise false
.Sets the visibility of the given list of features.
[override virtual]
void FeatureLayer::setFloorDefinition(Esri::ArcGISRuntime::LayerFloorDefinition *floorDefinition)
Sets the floorDefinition to floorDefinition.
See also floorDefinition.
void FeatureLayer::setLabelsEnabled(bool enabled)Sets whether labels are enabled on features in layer.
See also isLabelsEnabled().
[override virtual]
void FeatureLayer::setPopupDefinition(Esri::ArcGISRuntime::PopupDefinition *popupDefinition)
Reimplements: PopupSource::setPopupDefinition(Esri::ArcGISRuntime::PopupDefinition *popupDefinition).
Sets the popup definition to popupDefinition.
See also popupDefinition() and PopupSource.
[override virtual]
void FeatureLayer::setPopupEnabled(bool popupEnabled)
Reimplements: PopupSource::setPopupEnabled(bool popupEnabled).
Sets whether the PopupSource is enabled to popupEnabled.
See also isPopupEnabled() and PopupSource.
[since Esri::ArcGISRuntime 100.1]
void FeatureLayer::setRefreshInterval(quint64 milliseconds)
Sets the refresh interval used by the layer to milliseconds.
Layers request features from the service each time this interval elapses
A value of 0 means to never refresh.
This function was introduced in Esri::ArcGISRuntime 100.1.
See also refreshInterval().
void FeatureLayer::setRenderer(Esri::ArcGISRuntime::Renderer *renderer)Sets the renderer specifying how the features should be symbolized.
See also renderer().
[since Esri::ArcGISRuntime 100.2]
void FeatureLayer::setRenderingMode(Esri::ArcGISRuntime::FeatureRenderingMode renderingMode)
Sets the rendering mode of the feature layer to renderingMode.
This function was introduced in Esri::ArcGISRuntime 100.2.
See also renderingMode().
[since Esri::ArcGISRuntime 100.5]
void FeatureLayer::setScaleSymbols(bool scaleSymbols)
Sets whether the sublayer renders its symbols based on scale to scaleSymbols.
A value of false
means the symbols stay the same size in screen units regardless of the map scale.
The default value is false
.
This function was introduced in Esri::ArcGISRuntime 100.5.
See also isScaleSymbols().
[since Esri::ArcGISRuntime 100.2]
void FeatureLayer::setSceneProperties(const Esri::ArcGISRuntime::LayerSceneProperties &sceneProperties)
Sets layer scene properties to sceneProperties, which can be used to make changes to how features are displayed in a SceneView.
This function was introduced in Esri::ArcGISRuntime 100.2.
See also sceneProperties().
[since Esri::ArcGISRuntime 100.10]
void FeatureLayer::setTilingMode(Esri::ArcGISRuntime::FeatureTilingMode tilingMode)
Sets the tilingMode to tilingMode.
This function was introduced in Esri::ArcGISRuntime 100.10.
See also tilingMode.
[override virtual, since Esri::ArcGISRuntime 100.3]
void FeatureLayer::setTimeFilteringEnabled(bool timeFilteringEnabled)
Reimplements: TimeAware::setTimeFilteringEnabled(bool timeFilteringEnabled).
Sets whether the layer uses the time range defined on the geo view to timeFilteringEnabled.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also isTimeFilteringEnabled().
[override virtual, since Esri::ArcGISRuntime 100.3]
void FeatureLayer::setTimeOffset(const Esri::ArcGISRuntime::TimeValue &timeOffset)
Reimplements: TimeAware::setTimeOffset(const Esri::ArcGISRuntime::TimeValue &timeOffset).
Sets the time offset of the layer to timeOffset.
The time offset is subtracted from the time extent set on the layer's geo view. This can be used to overlay data from different periods of time for comparison.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also timeOffset().
[since Esri::ArcGISRuntime 100.10]
Esri::ArcGISRuntime::FeatureTilingMode FeatureLayer::tilingMode() const
Returns the mode defines whether feature tiling is used to retrieve the features from the feature service.
The default tiling mode is FeatureTilingMode::EnabledWhenSupported.
Changes how feature tiling is handled by the feature layer.
This function was introduced in Esri::ArcGISRuntime 100.10.
See also setTilingMode().
[override virtual, since Esri::ArcGISRuntime 100.3]
Esri::ArcGISRuntime::TimeValue FeatureLayer::timeInterval() const
Reimplements: TimeAware::timeInterval() const.
Returns the suggested time slider step size for this time aware layer.
You can use this information to set the step size for a time slider control. The value is empty if no time interval is suggested. The author of the layer's data typically configures this property if the data has been collected on a regular basis. For example, the daily position of a hurricane.
This function was introduced in Esri::ArcGISRuntime 100.3.
[override virtual, since Esri::ArcGISRuntime 100.3]
Esri::ArcGISRuntime::TimeValue FeatureLayer::timeOffset() const
Reimplements: TimeAware::timeOffset() const.
Returns the amount of time by which the temporal values of this layer's data points are offset when displaying it in a GeoView.
The time offset is subtracted from the time extent set on the layer's GeoView. This is useful if you want to overlay data in multiple layers that lies within different temporal extents. For example, if you want to compare data in one layer for a certain year with data in the same layer from the subsequent year, you can create two layers that reference the same data's service endpoint but set the TimeValue in one of the layers to be one year.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also setTimeOffset().
void FeatureLayer::unselectFeature(Esri::ArcGISRuntime::Feature *feature)Unselects the given feature and removes it from the current collection of selected features.
Unselects the given features and removes them from the current collection of selected features.
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