MarkerProperties class
Represents properties for a marker on a map.
The MarkerProperties class defines various properties that can be associated
with a marker on a map, such as width, height, anchor position, rotation, and
layer-specific properties.
Example usage:
MarkerProperties markerProps = MarkerProperties(
width: 40.0,
height: 40.0,
anchorPos: AnchorPos(bottom: 0.0, left: 0.0),
rotate: true,
layerProperties: {
LayerMarkerIndexes.width: 'custom_width',
LayerMarkerIndexes.height: 'custom_height',
LayerMarkerIndexes.rotate: 'custom_rotate',
},
);
Constructors
-
MarkerProperties({Map<
LayerMarkerIndexes, String> ? layerProperties, Key? key, double width = 30.0, double height = 30.0, bool? rotate, Alignment? rotateAlignment}) -
Creates a
MarkerPropertiesobject with the specified properties.const -
MarkerProperties.fromMap(Map<
String, dynamic> ? properties, MarkerProperties markerLayerProperties) -
Creates a
MarkerPropertiesobject by extracting properties from a map of properties and merging them with the providedmarkerLayerProperties.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the marker.
final
- key → Key?
-
An optional key that can be used to uniquely identify the marker.
final
-
layerProperties
→ Map<
LayerMarkerIndexes, String> ? -
A map of layer-specific properties associated with the marker.
final
- rotate → bool?
-
The anchor position of the marker, specifying its relative position within
the marker's bounding box.
A flag indicating whether the marker should rotate.
final
- rotateAlignment → Alignment?
-
The alignment for the marker's rotation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
The width of the marker.
final
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