• VectorTileFeature
  • class Esri::ArcGISRuntime::VectorTileFeature

    A vector tile feature. More...

    Header: #include <VectorTileFeature.h>
    Since: Esri::ArcGISRuntime 300.1
    Inherits: Esri::ArcGISRuntime::Object and Esri::ArcGISRuntime::GeoElement

    Public Functions

    virtual ~VectorTileFeature() override
    std::optional<quint64> id() const
    QString styleLayerId() const
    Esri::ArcGISRuntime::VectorTileStyleLayerType styleLayerType() const

    Reimplemented Public Functions

    virtual Esri::ArcGISRuntime::AttributeListModel *attributes() const override
    virtual Esri::ArcGISRuntime::Geometry geometry() const override
    virtual void setGeometry(const Esri::ArcGISRuntime::Geometry &geometry) override

    Detailed Description

    A vector tile feature is a type of GeoElement that represents a feature in an ArcGISVectorTiledLayer. Each vector tile feature corresponds to a specific style layer in the vector tile source, but its attributes are defined by the tile data. The GeoElement::geometry property is only populated for point-based features (circles and symbol icons). For line and fill style layers, the geometry is returned as null because its full fidelity cannot be guaranteed. Vector tile data must be published with IDs in order to be identified. Symbol icons along a line, such as highway shields, and text are not identifiable. Vector tile features support attributes of the following types: bool, int64, uint64, float, double, and QString.

    See also ArcGISVectorTiledLayer and VectorTileStyle.

    Member Function Documentation

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

    Destructor.

    [override virtual] Esri::ArcGISRuntime::AttributeListModel *VectorTileFeature::attributes() const

    Reimplements: GeoElement::attributes() const.

    Returns the attributes of the GeoElement as a collection of name/value pairs.

    [override virtual] Esri::ArcGISRuntime::Geometry VectorTileFeature::geometry() const

    Reimplements: GeoElement::geometry() const.

    Returns the geometry that defines the shape and location of the GeoElement.

    See also setGeometry().

    std::optional<quint64> VectorTileFeature::id() const

    Returns the feature ID, or std::nullopt if the feature does not have an ID.

    [override virtual] void VectorTileFeature::setGeometry(const Esri::ArcGISRuntime::Geometry &geometry)

    Reimplements: GeoElement::setGeometry(const Esri::ArcGISRuntime::Geometry &geometry).

    Sets the geometry to geometry.

    See also geometry.

    QString VectorTileFeature::styleLayerId() const

    Returns the ID of the style layer from which this feature originates.

    Esri::ArcGISRuntime::VectorTileStyleLayerType VectorTileFeature::styleLayerType() const

    Returns the VectorTileStyleLayerType of the style layer from which this feature originates.