Skip To Content ArcGIS for Developers Sign In Dashboard

MultilayerPolygonSymbol Class

class Esri::ArcGISRuntime::MultilayerPolygonSymbol

A multi-layer polygon symbol. More...

Header: #include <MultilayerPolygonSymbol>
Since: Esri::ArcGISRuntime 100.2
Inherits: Esri::ArcGISRuntime::MultilayerSymbol

This class was introduced in Esri::ArcGISRuntime 100.2.

Public Functions

MultilayerPolygonSymbol(const QList<Esri::ArcGISRuntime::SymbolLayer *> &symbolLayers, QObject *parent = nullptr)
virtual ~MultilayerPolygonSymbol() override

Detailed Description

This is a polygon symbol with multiple layers. Each layer has its own properties like width, height, and offset, that can be combined to create polygon symbols with special effects (a polygon with a marker in the center, for example). These symbols are rendered with polygon geometry.

Note: Symbol layers in a multilayer symbol are in reverse order of how they appear in the JSON representation.

// in this multilayer symbol pseudocode json, the 'symbolLayers' ordered list of symbol
// layers contains a solid stroke symbol layer followed by a solid fill symbol layer.
{ "symbolLayers": [{"type": "CIMSolidStroke", "color": "black"},{"type": "CIMSolidFill", "color": "red"}],"type": "CIMPolygonSymbol" }

// this is the solid fill symbol layer, the reverse order from the json representation
auto* symbolLayerIndexZero = multilayerSymbol->symboLayers()->at(0); // red fill in the image below

// this is the solid stroke symbol layer, the reverse order from the json representation
auto* symbolLayerIndexOne = multilayerSymbol->symboLayers()->at(1); // black outline in the image below

"MultilayerPolygon symbol"

Multilayer symbol consisting of two layers.

Member Function Documentation

MultilayerPolygonSymbol::MultilayerPolygonSymbol(const QList<Esri::ArcGISRuntime::SymbolLayer *> &symbolLayers, QObject *parent = nullptr)

Constructor that takes a list of symbolLayers and an optional parent.

This function was introduced in Esri::ArcGISRuntime 100.5.

[override virtual] MultilayerPolygonSymbol::~MultilayerPolygonSymbol()


Feedback on this topic?