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-annotationlayer.html below:

AnnotationLayer Class | ArcGIS Maps SDK for Qt

Detailed Description

Annotation can be used to symbolize text on your maps as described in the ArcGIS Pro "Annotation" documentation. Annotation is defined using a text string, geographical location, and display properties such as font, size, and color. This information is stored in an annotation feature class in a geodatabase.

There are two kinds of annotation:

You can construct an annotation layer using any of the following:

Each annotation layer is partitioned into annotation sublayers. Each annotation sublayer corresponds to the label class of the original labels that were used to publish the annotation. In ArcGIS Pro, the annotation sublayers are known as annotation classes. Annotation sublayers offer greater control over the annotation:

Annotation respects the reference scale defined by the map, so annotation will always be presented to the user at the correct size and position, as defined by the annotation author.

Annotation layers can be taken offline from a feature service hosted on ArcGIS Enterprise 10.7.1 or later, using the GeodatabaseSyncTask. Annotation layers are also supported in mobile map packages created in ArcGIS Pro 2.3 or later.

If your annotation feature class was created with ArcGIS Desktop, it will not display in an AnnotationLayer. To display the annotation data, you must upgrade the annotation dataset using the ArcGIS Pro Data Management tool called Upgrade Dataset before you publish it. For more information see the Managing annotation feature classes documentation.

Relevant samples:

Member Function Documentation [explicit, since Esri::ArcGISRuntime 100.6] AnnotationLayer::AnnotationLayer(Esri::ArcGISRuntime::ArcGISFeatureTable *featureTable, QObject *parent = nullptr)

Creates a new annotation layer from a feature service table.

If the feature table does not contain annotation data then the AnnotationLayer will fail to load. ArcGISFeatureTable::layerInfo and ArcGISFeatureLayerInfo::serviceType can be checked to verify the feature type, before attempting to create a Layer.

This function was introduced in Esri::ArcGISRuntime 100.6.

[explicit] AnnotationLayer::AnnotationLayer(const QUrl &url, QObject *parent = nullptr)

Creates a new annotation layer from a feature service URL.

If the specified URL is not a valid ArcGIS feature service endpoint, then it will fail to load.

AnnotationLayer::AnnotationLayer(Esri::ArcGISRuntime::Item *item, qint64 serviceLayerId, QObject *parent = nullptr)

Creates a new annotation layer from a feature service portal item.

See also Layer::item.

[override virtual noexcept] AnnotationLayer::~AnnotationLayer()

Destructor.

[since Esri::ArcGISRuntime 100.14] Esri::ArcGISRuntime::LabelBarrierWeight AnnotationLayer::barrierWeight() const

Returns the weight of annotation features when considered as barriers to labeling.

The default is LabelBarrierWeight::High.

This function was introduced in Esri::ArcGISRuntime 100.14.

See also setBarrierWeight().

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::clearSelection()

Updates any selected features in the layer back to the un-selected state.

This function was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12] QString AnnotationLayer::definitionExpression() const

Returns a SQL statement where clause that stipulates a subset of features to be displayed.

The definition expression string uses the SQL-92 WHERE clause syntax: (https://en.wikipedia.org/wiki/SQL-92). The default value is an empty string, which will allow all annotation features in the data source to be used by the AnnotationLayer.

This function was introduced in Esri::ArcGISRuntime 100.12.

See also setDefinitionExpression().

[since Esri::ArcGISRuntime 100.6] Esri::ArcGISRuntime::ArcGISFeatureTable *AnnotationLayer::featureTable() const

Returns the feature table associated with this layer.

This function was introduced in Esri::ArcGISRuntime 100.6.

double AnnotationLayer::referenceScale() const

Returns the reference scale for the layer.

The reference scale of the layer is the scale at which a client should view the layer for the text to appear at its authored size.

If the client changes the viewing scale, then text will grow or shrink to keep a consistent size on the map (not the screen).

For a valid layer, the reference scale will always be a finite value, greater than zero. Until the layer is loaded, the reference scale will be zero.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::resetFeaturesVisible()

Resets the visibility of the layer's features to the original visibility loaded from the data source.

This function was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::selectFeature(Esri::ArcGISRuntime::Feature *feature)

Selects the given feature and adds it to the current list of selected features.

This function was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::selectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)

Selects the features in the list and adds them to the current list of selected features.

This function was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 200.2] QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> AnnotationLayer::selectFeaturesAsync(const Esri::ArcGISRuntime::QueryParameters &parameters, Esri::ArcGISRuntime::SelectionMode mode, QObject *parent = nullptr)

Selects the features that match the criteria in the QueryParameters object and adds them to the current list 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 *> AnnotationLayer::selectedFeaturesAsync(QObject *parent = nullptr)

Returns a list 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.

qint64 AnnotationLayer::serviceLayerId() const

Returns the layer ID that defines the layer within the feature service portal item.

See also Layer::item.

[since Esri::ArcGISRuntime 100.14] void AnnotationLayer::setBarrierWeight(Esri::ArcGISRuntime::LabelBarrierWeight barrierWeight)

Sets the barrierWeight to barrierWeight.

This function was introduced in Esri::ArcGISRuntime 100.14.

See also barrierWeight.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::setDefinitionExpression(const QString &definitionExpression)

Sets the definitionExpression to definitionExpression.

This function was introduced in Esri::ArcGISRuntime 100.12.

See also definitionExpression.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::setFeatureVisible(Esri::ArcGISRuntime::Feature *feature, bool visible)

Sets the visibility of the given feature.

This function was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::setFeaturesVisible(const QList<Esri::ArcGISRuntime::Feature *> &features, bool visible)

Sets the visibility of the features in the QList.

This function was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::unselectFeature(Esri::ArcGISRuntime::Feature *feature)

Unselects the given feature and removes it from the current list of selected features.

This function was introduced in Esri::ArcGISRuntime 100.12.

[since Esri::ArcGISRuntime 100.12] void AnnotationLayer::unselectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)

Unselects the features in the given list and removes them from the current list of selected features.

This function was introduced in Esri::ArcGISRuntime 100.12.

[override virtual] QUrl AnnotationLayer::url() const

Reimplements: RemoteResource::url() const.

Returns the Feature Service URL for the layer.


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