;

SiteLayerDefinition Class

  • SiteLayerDefinition
  • class Esri::ArcGISRuntime::SiteLayerDefinition

    The layer and field properties for the layer used to describe sites. More...

    Header: #include <SiteLayerDefinition>
    Since: Esri::ArcGISRuntime 100.12
    Inherits: Esri::ArcGISRuntime::Object and Esri::ArcGISRuntime::JsonSerializable

    This class was introduced in Esri::ArcGISRuntime 100.12.

    Public Functions

    SiteLayerDefinition(const QString &layerId, const QString &nameField, const QString &siteIdField, QObject *parent = nullptr)
    virtual ~SiteLayerDefinition() override
    QString layerId() const
    QString nameField() const
    QString siteIdField() const

    Reimplemented Public Functions

    virtual QString toJson() const override
    virtual QJsonObject unknownJson() const override
    virtual QJsonObject unsupportedJson() const override

    Static Public Members

    Esri::ArcGISRuntime::SiteLayerDefinition *fromJson(const QString &json, QObject *parent = nullptr)

    Detailed Description

    A SiteLayerDefinition identifies the layer containing the boundaries of managed sites. A site is the largest space designation in the ArcGIS Indoors Information Model and is used to represent an area such as a campus, a barrack, or an industrial site. A site can contain multiple facilities.

    See also GeoModelFloorDefinition.

    Member Function Documentation

    SiteLayerDefinition::SiteLayerDefinition(const QString &layerId, const QString &nameField, const QString &siteIdField, QObject *parent = nullptr)

    Creates a new SiteLayerDefinition object with the specified layer id, site name attribute field and site id attribute field.

    • layerId - An ID that specifies a layer in the map or scene that contains site features.
    • nameField - The name of the attribute field that contains each site feature's name.
    • siteIdField - The name of the attribute field that contains each site feature's unique identifier.
    • parent - The optional parent QObject.

    [override virtual] SiteLayerDefinition::~SiteLayerDefinition()

    Destructor.

    [static] Esri::ArcGISRuntime::SiteLayerDefinition *SiteLayerDefinition::fromJson(const QString &json, QObject *parent = nullptr)

    Converts a JSON string and returns an object.

    • json - The JSON string.
    • parent The parent object (optional).

    QString SiteLayerDefinition::layerId() const

    Returns an ID that specifies a layer in the map or scene that contains site features.

    QString SiteLayerDefinition::nameField() const

    Returns the name of the attribute field that contains each site feature's name.

    QString SiteLayerDefinition::siteIdField() const

    Returns the name of the attribute field that contains each site feature's unique identifier.

    [override virtual] QString SiteLayerDefinition::toJson() const

    Reimplements: JsonSerializable::toJson() const.

    Converts an object and returns a JSON string.

    [override virtual] QJsonObject SiteLayerDefinition::unknownJson() const

    Reimplements: JsonSerializable::unknownJson() const.

    Returns unknown data from the source JSON.

    Unknown JSON is a dictionary of values that was in the source JSON but was unparsed by the Runtime.

    See also JsonSerializable.

    [override virtual] QJsonObject SiteLayerDefinition::unsupportedJson() const

    Reimplements: JsonSerializable::unsupportedJson() const.

    Returns unsupported data from the source JSON.

    Unsupported JSON is a dictionary of values that are supported by webmaps, but not exposed through the native Runtime API.

    See also JsonSerializable.

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