Class MarkerSymbolLayer

    • Method Detail

      • getHeading

        public double getHeading()
        Gets the heading of this MarkerSymbolLayer, the angle of rotation about the anchor point, in degrees.
        Returns:
        the heading in degrees
        Since:
        100.5.0
        See Also:
        setHeading(double)
      • setHeading

        public void setHeading​(double heading)
        Sets the heading of this MarkerSymbolLayer. The value can be any real number, the default is 0. Positive values represent counterclockwise rotation. In 2D, the rotation applies around the getAnchor() anchor of the 2D marker. For 3D markers, the rotation applies around the z-axis.

        Angle for multilayer point symbols and marker symbol layers is measured in degrees counterclockwise from the east, from 0 to 360. The angle for a multilayer point symbol defaults to 0. Marker symbol layers can have their own angle value defined (which is also 0 by default). Setting an angle for a marker symbol layer does not affect the angle of the point symbol. When an angle value is set for the point symbol, however, that value is applied cumulatively to all the marker symbol layers it contains.

        Parameters:
        heading - the heading in degrees
        Since:
        100.5.0
      • getOffsetX

        public double getOffsetX()
        Gets the X component of the offset. The x-offset is a delta applied to the marker in the direction corresponding to the given value. For example, a positive x-offset moves the marker in the positive-x direction. The default value is 0.
        Returns:
        the X component of the offset in density-independent pixels (dp)
        Since:
        100.5.0
      • setOffsetX

        public void setOffsetX​(double offsetX)
        Sets the X component of the offset. The x-offset is a delta applied to the marker in the direction corresponding to the given value. For example, a positive x-offset moves the marker in the positive-x direction. The value can be any real number.
        Parameters:
        offsetX - the X component of the offset in density-independent pixels (dp)
        Since:
        100.5.0
      • getOffsetY

        public double getOffsetY()
        Gets the Y component of the offset. The y-offset is a delta applied to the marker in the direction corresponding to the given value. For example, a positive y-offset moves the marker in the positive-y direction. The default value is 0.
        Returns:
        the Y component of the offset in density-independent pixels (dp)
        Since:
        100.5.0
      • setOffsetY

        public void setOffsetY​(double offsetY)
        Sets the Y component of the offset. The y-offset is a delta applied to the marker in the direction corresponding to the given value. For example, a positive y-offset moves the marker in the positive-y direction. The input value can be any real number.
        Parameters:
        offsetY - the Y component of the offset in density-independent pixels (dp)
        Since:
        100.5.0
      • getSize

        public double getSize()
        Gets the size of this MarkerSymbolLayer. The default value is 13.333 density-independent pixels (dp).
        Returns:
        the size in dp
        Since:
        100.5.0
        See Also:
        setSize(double)
      • setSize

        public void setSize​(double size)
        Sets the size of this MarkerSymbolLayer. The input value can be any positive number. A larger size means a larger marker.

        When getting the size from a multilayer point symbol, the value reported is the largest size of all the symbol layers it contains. The symbol size is updated when its symbol layer sizes change (if there is a new largest layer size). When setting a new size at the point symbol level, the size 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 size without affecting the other layers.

        Parameters:
        size - the size in density-independent pixels (dp)
        Throws:
        ArcGISRuntimeException - if size is negative or zero
        Since:
        100.5.0
      • getAnchor

        public SymbolAnchor getAnchor()
        Gets the anchor for this MarkerSymbolLayer. The SymbolAnchor specifies the marker's anchor point and anchor placement mode. The symbol anchor is immutable. To modify the anchor, create a new instance with the desired values and set it with setAnchor(SymbolAnchor). In the event that the symbol layer is modified and the anchor values change internally, this method will need to be called to retrieve a new instance containing the new anchor values, they are not updated automatically.
        Returns:
        the symbol anchor
        Since:
        100.5.0
      • setAnchor

        public void setAnchor​(SymbolAnchor symbolAnchor)
        Sets the anchor for this MarkerSymbolLayer. The SymbolAnchor specifies the marker's anchor point and anchor placement mode.
        Parameters:
        symbolAnchor - the symbol anchor, cannot be null
        Throws:
        IllegalArgumentException - if symbolAnchor is null
        Since:
        100.5.0
        See Also:
        getAnchor()