Skip To Content ArcGIS for Developers Sign In Dashboard

StrokeSymbolLayer QML Type

A StrokeSymbolLayer represents a symbol layer that, when applied to a polyline geometry, draws a stroke along that geometry. The StrokeSymbolLayer can also control drawing the outline of a polygon geometry. More...

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

SymbolLayer

Inherited By:

SolidStrokeSymbolLayer

Properties

Signals

Detailed Description

Applied to a polyline geometry, the StrokeSymbolLayer will draw a segment of stroke adhering to the selected visual properties for each line segment. Similarly, as the outline of a polygon geometry, the StrokeSymbolLayer draws a stroke segment for each line segment of the polygon outline.

This symbol layer controls many common operations vital for working with strokes. Cap style and line style 3D are controllable on the StrokeSymbolLayer. These properties provide the ability to pick between various options for rendering strokes. Line style 3D applies only in 3D, but cap style and width have effects in both 2D and 3D.

Property Documentation

capStyle : Enums.StrokeSymbolLayerCapStyle

The cap style of the stroke symbol layer.

The default cap style is 'round,' meaning that the ends of the stroke are rounded off. Cap styles affect strokes in Map Views, as well as the 'strip' and 'tube' line styles in Scene Views.

See also Enums.StrokeSymbolLayerCapStyle.


lineStyle3D : Enums.StrokeSymbolLayerLineStyle3D

The 3D line style of the stroke symbol layer.

The default 3D line style is 'strip,' meaning that the 3D stroke is flat. 3D line style has no effect on strokes in Map Views, but does affect strokes in Scene Views.

See also Enums.StrokeSymbolLayerLineStyle3D.


width : double

The width of the stroke symbol layer, in DIPs.

The return value may be any non-negative number (default is 0). A larger width means a larger stroke.

When getting the width from a multilayer polyline symbol, the value reported is the largest width of all the symbol layers it contains. The symbol width is updated when its symbol layer widths change (if there is a new largest layer width). When setting a new width at the polyline symbol level, the width of the largest symbol layer is given the provided value, and all the smaller layers are sized proportionately. An individual symbol layer can be given a specific width without affecting the other layers.


Signal Documentation

capStyleChanged()

Emitted when the capStyle property changes.


lineStyle3DChanged()

Emitted when the lineStyle3D property changes.


widthChanged()

Emitted when the width property changes.



Feedback on this topic?