SubtypeSublayer Class

  • SubtypeSublayer
  • class Esri::ArcGISRuntime::SubtypeSublayer

    A sublayer that allows custom rendering for features of a particular subtype. More...

    Header: #include <SubtypeSublayer.h>
    Since: Esri::ArcGISRuntime 100.7
    Inherits: Esri::ArcGISRuntime::ArcGISSublayer

    Public Functions

    virtual ~SubtypeSublayer() override
    QList<Esri::ArcGISRuntime::FeatureTemplate> featureTemplates() const
    bool isAllowsEditing() const
    Esri::ArcGISRuntime::LabelDefinitionListModel *labelDefinitions() const
    void setAllowsEditing(bool allowsEditing)
    void setLabelsEnabled(bool labelsEnabled)
    void setMaxScale(double maxScale)
    void setMinScale(double minScale)
    void setOpacity(float opacity)
    void setRenderer(Esri::ArcGISRuntime::Renderer *renderer)
    Esri::ArcGISRuntime::FeatureSubtype subtype() const
    QJsonObject unknownJson() const
    QJsonObject unsupportedJson() const

    Detailed Description

    Relevant samples:

    See also SubtypeFeatureLayer::subtypeSublayers.

    Member Function Documentation

    [override virtual] SubtypeSublayer::~SubtypeSublayer()

    Destructor.

    [since Esri::ArcGISRuntime 200.2] QList<Esri::ArcGISRuntime::FeatureTemplate> SubtypeSublayer::featureTemplates() const

    Returns the sublayer's feature templates.

    A collection of templates that can be used to create new features of subtype with default attribute values and a specified mode for creating its geometry.

    {ArcGISFeatureTable::createFeatureWithTemplate(const Esri::ArcGISRuntime::FeatureTemplate&, const Esri::ArcGISRuntime::Geometry&, QObject*)}

    This function was introduced in Esri::ArcGISRuntime 200.2.

    See also FeatureTemplate, ArcGISFeatureTable::createFeatureWithTemplate(const Esri::ArcGISRuntime::FeatureTemplate&, QObject*), and Esri::ArcGISRuntime::ArcGISFeatureTable::createFeatureWithTemplate(const Esri::ArcGISRuntime::FeatureTemplate&, const Esri::ArcGISRuntime::Geometry&, QObject*).

    [since Esri::ArcGISRuntime 200.6] bool SubtypeSublayer::isAllowsEditing() const

    Returns true if editing is allowed on the sublayer, when it is supported, false otherwise.

    Indicates whether a client should allow feature editing for this layer. When you set this value to true, editing is allowed on the sublayer only if the service also supports editing.

    This function was introduced in Esri::ArcGISRuntime 200.6.

    See also FeatureServiceCapabilities::isSupportsEditing.

    Esri::ArcGISRuntime::LabelDefinitionListModel *SubtypeSublayer::labelDefinitions() const

    The collection of label definitions for the sublayer

    [since Esri::ArcGISRuntime 200.6] void SubtypeSublayer::setAllowsEditing(bool allowsEditing)

    Sets the allowsEditing to allowsEditing.

    This function was introduced in Esri::ArcGISRuntime 200.6.

    See also isAllowsEditing.

    void SubtypeSublayer::setLabelsEnabled(bool labelsEnabled)

    Sets the labelsEnabled to labelsEnabled.

    See also ArcGISSublayer::isLabelsEnabled.

    void SubtypeSublayer::setMaxScale(double maxScale)

    Sets the maxScale to maxScale.

    See also ArcGISSublayer::maxScale.

    void SubtypeSublayer::setMinScale(double minScale)

    Sets the minScale to minScale.

    See also ArcGISSublayer::minScale.

    void SubtypeSublayer::setOpacity(float opacity)

    Sets the opacity to opacity.

    See also ArcGISSublayer::opacity.

    void SubtypeSublayer::setRenderer(Esri::ArcGISRuntime::Renderer *renderer)

    Sets the renderer to renderer.

    See also ArcGISSublayer::renderer.

    Esri::ArcGISRuntime::FeatureSubtype SubtypeSublayer::subtype() const

    The subtype in the feature service that this subtype represents

    [since Esri::ArcGISRuntime 200.2] QJsonObject SubtypeSublayer::unknownJson() const

    Returns unknown data from the source JSON.

    Unknown JSON is a dictionary of values not defined in the ArcGIS specification used to create this object but found in the source JSON. If the object is written back to JSON, any unknown JSON data is not persisted. The ArcGIS specification may be for a web map, web scene, REST API, and so on.

    This function was introduced in Esri::ArcGISRuntime 200.2.

    See also SubtypeSublayer.

    [since Esri::ArcGISRuntime 200.2] QJsonObject SubtypeSublayer::unsupportedJson() const

    Returns unsupported data from the source JSON.

    Unsupported JSON is a dictionary of values defined in the ArcGIS specification used to create this object but not currently used in this API. If the object is written back to JSON, any unsupported JSON data is persisted. The ArcGIS specification may be from a web map, web scene, REST API, and so on.

    This function was introduced in Esri::ArcGISRuntime 200.2.

    See also SubtypeSublayer.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.