MarkerSymbol QML Type

  • Esri.ArcGISRuntime
  • MarkerSymbol
  • Base type for marker symbols. More...

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

    Symbol

    Inherited By:

    PictureMarkerSymbol, SimpleMarkerSymbol, and TextSymbol

    Properties

    Signals

    Methods

    • bool equals(MarkerSymbol other)

    Detailed Description

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

    Symbols describe how graphics and features look on a map. Different symbols are used with different geometry types. Marker symbols are used to display those graphics and features that are based on point or multipoint geometries. Subtypes of this type represent specific types of marker symbols.

    There are two types of offsets that may be specified.

    • The offset of the visible symbol from the symbol's point geometry.
    • The offset of a callout's leader line from the symbol's point geometry.

    For each offset, you can specify an x-offset and a y-offset in device independent pixels (DIPs) using a Cartesian coordinate system for example, specifying an callout x-offset of -5.0 will offset the callout's leader left along the x-axis by five points.

    Consider a PictureMarkerSymbol using the image of a pushpin. By default, the center of the image will be used as the anchor to center the image at the map location. However, if you wanted the needle of the pushpin to end at the map location, you would need to offset the image appropriately to make the needle's end coincide with the map location.

    See also JsonSerializable.

    Property Documentation

    angle : real

    The rotation angle (in degrees) of the symbol.

    A positive rotation will turn the symbol in a counter-clockwise direction

    Note: If the angle was set via JSON, it will be inverted (e.g. an angle of 20 will become -20).


    angleAlignment : Enums.SymbolAngleAlignment

    Whether the symbol should rotate with the map or stay at the same angle with regards to the screen.

    Default is Enums.SymbolAngleAlignmentMap. Only supported for GraphicsOverlay using Enums.GraphicsRenderingModeDynamic.

    See also Enums.SymbolAngleAlignment and Enums.GraphicsRenderingMode.


    leaderOffsetX : real

    The x-offset position for a callout's leader in relation to the symbol in device independent pixels (DIPs).


    leaderOffsetY : real

    The y-offset position for a callout's leader in relation to the symbol in device independent pixels (DIPs).


    offsetX : real

    The x-offset position for the symbol in relation to the graphic or feature's point geometry in device independent pixels (DIPs).


    offsetY : real

    The y-offset position for the symbol in relation to the graphic or feature's point geometry in device independent pixels (DIPs).


    Signal Documentation

    angleAlignmentChanged()

    Emitted when the angleAlignment property changes.

    Note: The corresponding handler is onAngleAlignmentChanged.


    angleChanged()

    Emitted when the angle property changes.

    Note: The corresponding handler is onAngleChanged.


    angleChanged()

    Emitted when the angle property changes.

    Note: The corresponding handler is onAngleChanged.


    leaderOffsetXChanged()

    Emitted when the leaderOffsetX property changes.

    Note: The corresponding handler is onLeaderOffsetXChanged.


    leaderOffsetYChanged()

    Emitted when the leaderOffsetY property changes.

    Note: The corresponding handler is onLeaderOffsetYChanged.


    offsetXChanged()

    Emitted when the offsetX property changes.

    Note: The corresponding handler is onOffsetXChanged.


    offsetYChanged()

    Emitted when the offsetY property changes.

    Note: The corresponding handler is onOffsetYChanged.


    Method Documentation

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

    Compares two MarkerSymbols for equality.

    Returns whether this instance and other are equivalent.

    This method was introduced in Esri.ArcGISRuntime 200.1.


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