Skip To Content ArcGIS for Developers Sign In Dashboard

KmlPlacemark Class

class Esri::ArcGISRuntime::KmlPlacemark

A KML node with associated Geometry. More...

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

This class was introduced in Esri::ArcGISRuntime 100.4.

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


Detailed Description

Member Function Documentation

KmlPlacemark::KmlPlacemark(const Esri::ArcGISRuntime::KmlGeometry &kmlGeometry, QObject *parent = nullptr)

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

This function was introduced in Esri::ArcGISRuntime 100.6.

[signal] void KmlPlacemark::geometryChanged()

Signal emitted when the geometry is changed.

See also GeoElement.

[override virtual] KmlPlacemark::~KmlPlacemark()


[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 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.

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.

Feedback on this topic?