A KML Placemark object. 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::KmlGraphicType | graphicType() const |
Esri::ArcGISRuntime::KmlGeometry | kmlGeometry() const |
void | setKmlGeometry(const Esri::ArcGISRuntime::KmlGeometry &kmlGeometry) |
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
void | geometryChanged() |
Detailed Description
A KML Placemark is a KML node with associated Geometry.
Relevant samples:
- Create and save KML file: Construct a KML document and save it as a KMZ file.
- Identify KML features: Show a callout with formatted content for a KML feature.
- List KML contents: List the contents of a KML file.
Member Function Documentation
[explicit, since Esri::ArcGISRuntime 100.6]
KmlPlacemark::KmlPlacemark (const Esri::ArcGISRuntime::KmlGeometry &kmlGeometry , QObject *parent = nullptr)
Creates a KML placemark from a specified KML geometry.
- kmlGeometry - Geometry to use for the new placemark.
- parent - The optional parent QObject.
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 the attributes of the GeoElement as a collection of name/value pairs.
[override virtual]
Esri::ArcGISRuntime::Geometry KmlPlacemark::geometry() const
Reimplements: GeoElement::geometry() const.
Returns the geometry defines the shape and location of the GeoElement.
See also setGeometry().
[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.
[since Esri::ArcGISRuntime 200.6]
Esri::ArcGISRuntime::KmlGeometry KmlPlacemark::kmlGeometry () const
Returns the KML geometry for the KML placemark.
This function was introduced in Esri::ArcGISRuntime 200.6.
See also setKmlGeometry().
[override virtual]
void KmlPlacemark::setGeometry (const Esri::ArcGISRuntime::Geometry &geometry)
Reimplements: GeoElement::setGeometry(const Esri::ArcGISRuntime::Geometry &geometry).
Sets the geometry to geometry.
See also geometry().
[since Esri::ArcGISRuntime 200.6]
void KmlPlacemark::setKmlGeometry (const Esri::ArcGISRuntime::KmlGeometry &kmlGeometry )
Sets the kmlGeometry to kmlGeometry.
This function was introduced in Esri::ArcGISRuntime 200.6.
See also kmlGeometry.