Skip To Content ArcGIS for Developers Sign In Dashboard

KmlPolygonStyle Class


A KML polygon style object. More...

Header: #include <KmlPolygonStyle>
Since: Esri::ArcGISRuntime 100.7
Inherits: KmlColorStyle

Public Functions

KmlPolygonStyle(const QColor &fillColor, QObject *parent = nullptr)
bool isFilled() const
bool isOutlined() const
void setIsFilled(bool isFilled)
void setIsOutlined(bool isOutlined)

Additional Inherited Members

Detailed Description

A KML polygon style object.

Controls how the fill of a KmlNode is displayed and whether the outline of a KmlNode is displayed. If the outline is displayed, the outline will use the current KmlLineStyle. Corresponds to a PolyStyle in a KML document.

Member Function Documentation

KmlPolygonStyle::KmlPolygonStyle(const QColor &fillColor, QObject *parent = nullptr)

Creates a polygon style with the specified fillColor.

  • fillColor - The color of the line.
  • parent - The parent object of polygon style.



bool KmlPolygonStyle::isFilled() const

Returns whether or not the polygon is filled.

See also setIsFilled().

bool KmlPolygonStyle::isOutlined() const

Returns whether or not the polygon is outlined.

See also setIsOutlined().

void KmlPolygonStyle::setIsFilled(bool isFilled)

Sets whether or not to fill the polygon.

isFilled New value for whether the polygon is to be filled.

See also isFilled().

void KmlPolygonStyle::setIsOutlined(bool isOutlined)

Sets whether to outline the polygon. Polygon outlines use the current KmlLineStyle.

  • isOutlined - If true, the polygon will be outlined.

See also isOutlined().

Feedback on this topic?