Skip To Content ArcGIS for Developers Sign In Dashboard

MultilayerSymbol QML Type

Base type for multi-layer symbols. More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.2
Inherits:

Symbol

Inherited By:

MultilayerPointSymbol, MultilayerPolygonSymbol, and MultilayerPolylineSymbol

Properties

Signals

Detailed Description

Multilayer symbols define how a symbol can be composed of multiple layers of different symbol types. The final symbol will be rendered with the type of geometry type and actual symbol type.

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": "CIMPointSymbol" }

// this is the solid fill symbol layer, the reverse order from the json representation
var symbolLayerIndexZero = multilayerSymbol.symboLayers.get(0); // red fill in the image below

// this is the solid stroke symbol layer, the reverse order from the json representation
var symbolLayerIndexOne = multilayerSymbol.symboLayers.get(1); // black outline in the image below

"MultilayerPoint symbol"

Multilayer symbol consisting of two layers.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

The following default properties are supported when creating any of the creatable multi-layer symbol subclasses.

TypeDefault Property
SymbolLayersymbolLayers (appends to model, since Esri.ArcGISRuntime 100.5)

Note: You cannot declare or create a component of this type in QML code.

Property Documentation

color : Color

Returns the color of the MultilayerSymbol.

The default color is transparent black, RGBA(0, 0, 0, 0)


symbolLayers : SymbolLayerListModel

Returns the symbol layers included in this multi-layer symbol as a list model.

This QML property was introduced in Esri.ArcGISRuntime 100.5.


Signal Documentation

colorChanged()

Emitted when the color property changes.



Feedback on this topic?