SymbolAnchor class final
Implements the anchor of a symbol layer, including placement mode and x, y, z anchor values.
SymbolAnchor contains the properties necessary to define the anchor for a symbol layer. These anchor properties define both the anchor values (x, y, z) and the placement mode. This object can be passed to MarkerSymbolLayer objects to control marker anchor properties.
- Implemented types
Constructors
- SymbolAnchor({required double x, required double y, double z = 0, SymbolAnchorPlacementMode placementMode = SymbolAnchorPlacementMode.relative})
-
Creates a symbol anchor and sets up the properties.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- placementMode → SymbolAnchorPlacementMode
-
The anchor placement mode of the symbol anchor object.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → double
-
The x-component of the symbol anchor object.
no setter
- y → double
-
The y-component of the symbol anchor object.
no setter
- z → double
-
The z-component of the symbol anchor object.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited