Skip To Content ArcGIS for Developers Sign In Dashboard

KmlPlacemark Class

(Esri::ArcGISRuntime::KmlPlacemark)

A KML node with associated Geometry. More...

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

Public Functions

KmlPlacemark(const KmlGeometry &kmlGeometry, QObject *parent = nullptr)
~KmlPlacemark()
KmlGeometryListModel *geometriesListModel() const
KmlGraphicType graphicType() const

Reimplemented Public Functions

virtual AttributeListModel *attributes() const
virtual Geometry geometry() const
virtual void setGeometry(const Geometry &geometry)

Signals

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

A KML node with associated Geometry.

Member Function Documentation

KmlPlacemark::KmlPlacemark(const 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.

KmlPlacemark::~KmlPlacemark()

Destructor.

[virtual] AttributeListModel *KmlPlacemark::attributes() const

Reimplemented from GeoElement::attributes().

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.

KmlGeometryListModel *KmlPlacemark::geometriesListModel() const

Returns the KML geometries for the KML placemark.

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

[virtual] Geometry KmlPlacemark::geometry() const

Reimplemented from GeoElement::geometry().

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.

KmlGraphicType KmlPlacemark::graphicType() const

Returns the type of the graphic in the KML placemark.

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

Reimplemented from GeoElement::setGeometry().

Sets the geometry for the KmlPlacemark.

This is the GeoElement's popup tail location.

See also geometry.


Feedback on this topic?