VectorMarkerSymbolElement QML Type

VectorMarkerSymbolLayer."> VectorMarkerSymbolElement QML Type | ArcGISQtQml
  • Esri.ArcGISRuntime
  • VectorMarkerSymbolElement
  • Vector marker symbol element comprises the pieces of a VectorMarkerSymbolLayer. More...

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

    Object

    Properties

    Signals

    Detailed Description

    Vector marker symbol element is a combination of a symbol and a geometry.

    The symbol held by the VectorMarkerSymbolElement is itself a MultilayerSymbol. The geometry of the VectorMarkerSymbolElement does not pertain to the geography of the Map or Scene. Rather, the geometry property describes the shape of the Multilayer_symbol held by the VectorMarkerSymbolElement. The coordinate values defining the geometry are in points. This behavior facilitates creating a custom VectorMarkerSymbolElement of custom shape and symbol, then combining it with zero or more other elements to form a vector marker.

    To create a red square, for example, construct a VectorMarkerSymbolElement with a MultilayerPolygonSymbol that contains a red SolidFillSymbolLayer and a square geometry. When combined in a VectorMarkerSymbolElement and placed in a VectorMarkerSymbolLayer a red square displays.

    For example,

    MultilayerPolygonSymbol {
        VectorMarkerSymbolLayer {
            VectorMarkerSymbolElement {
                Polygon {
                    json: {
                        "rings":[[[17,17],[17, 0],[0,0],[0,17]]]
                    }
                }
    
                MultilayerPolygonSymbol {
                    SimpleFillSymbol {
                        color: "red"
                        style: Enums.SimpleFillSymbolStyleSolid
                    }
                }
            }
        }
    }

    The symbol and geometry properties must create a meaningful combination to have a visual effect. For example, a MultilayerPolygonSymbol does not draw anything if the corresponding geometry is a point, but does draw if the geometry is a polygon.

    When rendering, the symbol draws according to the shape of the geometry, which is defined relative to other elements in the layer. (The coordinates used to define element geometry are not in real units.)

    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.

    Property Documentation

    geometry : Geometry

    Returns the geometry associated with the vector marker symbol element.

    The default value is null. When rendering, the symbol draws according to the shape of the geometry. The coordinate values defining the geometry are in points.

    The geometry can be a point, polyline, or polygon. When rendering, the symbol draws according to the shape of the geometry. When setting a geometry, make sure that the corresponding symbol is appropriate for the desired drawing effect. For instance, a polygon geometry would pair best with a MultilayerPolygonSymbol, drawing the symbol with the polygon geometry. The coordinate values defining the geometry are in points.


    symbol : MultilayerSymbol

    Returns the multilayer symbol associated with the vector marker symbol element.

    The default value is null. When rendering, the symbol draws according to the shape of the geometry.

    The symbol, a MultilayerSymbol, can be any arbitrary multilayer symbol. When rendering, the symbol draws according to the shape of the geometry. When setting a symbol, make sure that the corresponding geometry is appropriate for the desired drawing effect. For instance, a MultilayerPolygonSymbol would pair best with a polygon geometry, drawing the symbol with the polygon geometry.


    Signal Documentation

    geometryChanged()

    Emitted when the geometry property changes.

    Note: The corresponding handler is onGeometryChanged.


    symbolChanged()

    Emitted when the symbol property changes.

    Note: The corresponding handler is onSymbolChanged.


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