SolidStrokeSymbolLayer QML Type

  • Esri.ArcGISRuntime
  • SolidStrokeSymbolLayer
  • A class for stroke symbol layers with customized geometric effects. Currently it supports only dash effects. More...

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

    StrokeSymbolLayer

    Properties

    Signals

    Detailed Description

    Commonly used in line symbols to describe the appearance of the line, or in polygon symbols as an outline. A SolidStrokeSymbolLayer represents a polyline geometry symbolized with a solid color.

    This symbol layer, in a MultilayerPolylineSymbol, colors the geometry of the line with the specified solid color. The class also allows setting a collection of geometric effects, which modify the stroke in various ways (see documentation for geometric effects).

    The SolidStrokeSymbolLayer is used to represent the Web Scene specification's LineSymbol3DLayer and PathSymbol3DLayer. LineSymbol3DLayer maps to the 'strip' 3D line style of SolidStrokeSymbolLayer, and PathSymbol3DLayer maps to the 'tube' 3D line style.

    The SolidStrokeSymbolLayer provides a similar user experience to the SimpleLineSymbol, but, since it is a symbol layer, can be used in a MultilayerSymbol. The simple line styles of the SimpleLineSymbol are represented here by the DashGeometricEffect, but all dash patterns are custom. A solid stroke symbol layer in a multilayer polygon symbol will act as the outline of the fill.

    Note: The units used for width is DIPs, except when lineStyle3D is Enums.StrokeSymbolLayerLineStyle3DTube which uses meters.

    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.

    TypeDefault Property
    GeometricEffectgeometricEffects (appends to model)

    See also DashGeometricEffect.

    Property Documentation

    color : color

    Returns the color of the solid stroke symbol layer.

    The solid color of the SolidStrokeSymbolLayer.

    The stroke will render with the specified color. When getting the color from a symbol, the consensus value (for all layers) is reported. If there is no consensus (one or more layers have different colors), a null value is reported for the color. Likewise, setting a value for color on a symbol will apply that color to all layers the symbol contains.

    If you don't want changes to the symbol color to propagate to some of the symbol layers it contains, you can lock the color for those layers. If a symbol layer is color-locked, changes to the parent symbol will not affect the symbol layer. This also means that the layer will not be considered when determining a consensus color for the symbol as a whole.

    The default color is opaque black, RGBA(0, 0, 0, 255).

    Note: this property can only be modified if the symbol layer is not color locked.

    See also SymbolLayer::colorLocked.


    [read-only] geometricEffects : GeometricEffectListModel

    The collection of geometric effects held by a solid stroke symbol layer.

    The collection of geometric effects held by a SolidStrokeSymbolLayer. Setting the geometric effects will apply the collection of geometric effects to the stroke when rendering. See the documentation for geometric effects to understand how they apply.

    See also DashGeometricEffect.


    Signal Documentation

    colorChanged()

    Emitted when the color property changes.

    Note: The corresponding handler is onColorChanged.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.