SimpleMarkerSymbol QML Type

  • Esri.ArcGISRuntime
  • SimpleMarkerSymbol
  • A marker symbol based on simple shapes. More...

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

    MarkerSymbol

    Properties

    Signals

    Methods

    Detailed Description

    Symbols describe how graphics and features look on a map. Different symbols are used with different geometry types. Instances of this type represent simple marker symbols. Marker symbols are used to display those graphics and features which are based on point or multipoint geometry. Simple marker symbols display simple, predefined markers such as circle, cross, and so on. In addition, the markers can have an optional outline, which is defined by a line symbol.

    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
    SimpleLineSymboloutline

    Example:

    Create a SimpleMarkerSymbol and set its style, color, size, and outline:

    SimpleMarkerSymbol {
        id: simpleMarkerSymbol
        color: "grey"
        size: 34.0
        style: Enums.SimpleMarkerSymbolStyleCircle
    
        // declare the symbol's outline
        SimpleLineSymbol {
            width: 1
            color: "black"
        }
    }

    See also Symbol.

    Property Documentation

    color : color

    The color of the symbol.


    [default] outline : SimpleLineSymbol

    The outline of the symbol.


    size : real

    The size of the symbol in device independent pixels (DIPs).


    style : Enums.SimpleMarkerSymbolStyle

    The marker symbol's style.

    See also Enums.SimpleMarkerSymbolStyle.


    Signal Documentation

    colorChanged()

    Emitted when the color property changes.

    Note: The corresponding handler is onColorChanged.


    outlineChanged()

    Emitted when the outline property changes.

    Note: The corresponding handler is onOutlineChanged.


    sizeChanged()

    Emitted when the size property changes.

    Note: The corresponding handler is onSizeChanged.


    styleChanged()

    Emitted when the style property changes.

    Note: The corresponding handler is onStyleChanged.


    Method Documentation

    [since Esri.ArcGISRuntime 200.1] bool equals(SimpleMarkerSymbol other)

    Compares two SimpleMarkerSymbols for equality.

    Returns whether this instance and other are equivalent.

    This method was introduced in Esri.ArcGISRuntime 200.1.


    [since Esri::ArcGISRuntime 100.5] MultilayerPointSymbol toMultilayerSymbol()

    Converts a SimpleMarkerSymbol to a MultilayerPointSymbol.

    This method allows you to create complex and custom symbols with multiple layers of different type of symbology. Simple marker symbol provides a factory of shapes such as square, diamond, and cross. This method generates a MultilayerPointSymbol that contains a VectorMarkerSymbolLayer that has a VectorMarkerSymbolElement with a polygon representation of the simple marker symbol geometry.

    This method was introduced in Esri::ArcGISRuntime 100.5.


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