KmlPlacemark Class

  • KmlPlacemark
  • class Esri::ArcGISRuntime::KmlPlacemark

    A KML node with associated Geometry. More...

    Header: #include <KmlPlacemark.h>
    Since: Esri::ArcGISRuntime 100.4
    Inherits: Esri::ArcGISRuntime::KmlNode and Esri::ArcGISRuntime::GeoElement

    Public Functions

    KmlPlacemark(const Esri::ArcGISRuntime::KmlGeometry &kmlGeometry, QObject *parent = nullptr)
    virtual ~KmlPlacemark() override
    Esri::ArcGISRuntime::KmlGeometryListModel *geometriesListModel() const
    Esri::ArcGISRuntime::KmlGraphicType graphicType() 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

    Signals

    Detailed Description

    Member Function Documentation

    [explicit, since Esri::ArcGISRuntime 100.6] KmlPlacemark::KmlPlacemark(const Esri::ArcGISRuntime::KmlGeometry &kmlGeometry, QObject *parent = nullptr)

    Construct a KmlPlacemark from a kmlGeometry with an optional parent object.

    • kmlGeometry - Geometry to use for the new placemark.

    This function was introduced in Esri::ArcGISRuntime 100.6.

    [override virtual] KmlPlacemark::~KmlPlacemark()

    Destructor.

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

    Reimplements: GeoElement::attributes() const.

    Returns a list model of all the KmlPlacemark attributes as key-value pairs.

    Warning: the attrributes list should be considered constant and immutable. You are not restricted from making changes, but the changes will not be persisted or updated.

    Returns the following attributes only.

    • name - KML node's name.
    • html - KML node's popup content as a fully formatted HTML string.
    • is_popup_location_absolute - A Boolean that indicates whether or not the KML node's popup tail location is absolute.

    Esri::ArcGISRuntime::KmlGeometryListModel *KmlPlacemark::geometriesListModel() const

    Returns the KML geometries for the KML placemark.

    The collection will contain one KmlGeometry for non multi-geometry.

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

    Reimplements: GeoElement::geometry() const.

    Returns the geometry for this KmlPlacemark.

    Returns the GeoElement's popup tail location. This needs to be used in combination with the return value of attributes which contains the attribute - is_popup_location_absolute.

    See also setGeometry() and attributes.

    [signal] void KmlPlacemark::geometryChanged()

    Signal emitted when the geometry is changed.

    See also GeoElement.

    Esri::ArcGISRuntime::KmlGraphicType KmlPlacemark::graphicType() const

    Returns the type of the graphic in the KML placemark.

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

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

    Sets the geometry for the KmlPlacemark.

    This is the GeoElement's popup tail location.

    See also geometry.

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