PlacemarkIconStyle class
Visual icon of an icon to be used to visually show a PlacemarkMapObject
Constructors
- PlacemarkIconStyle.new({required BitmapDescriptor image, Offset anchor = const Offset(0.5, 0.5), RotationType rotationType = RotationType.noRotation, double zIndex = 0, bool isFlat = false, bool isVisible = true, double scale = 1, MapRect? tappableArea})
-
Creates an icon to be used to represent a PlacemarkMapObject on the map.
const
Properties
- anchor → Offset
-
An anchor is used to alter image placement.
Normalized: (0.0f, 0.0f) denotes the top left image corner; (1.0f, 1.0f) denotes bottom right.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → BitmapDescriptor
-
Asset name to use as Placemark icon
final
- isFlat → bool
-
If true, the icon is displayed on the map surface.
If false, the icon is displayed on the screen surface.
final
- isVisible → bool
-
Manages visibility of the object on the map.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- rotationType → RotationType
-
Icon rotation type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
Scale of the icon.
final
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - tappableArea → MapRect?
-
Tappable area on the icon.
Coordinates are measured the same way as anchor coordinates.
If rect is empty or invalid, the icon will not process taps.
By default, icons process all taps.
final
- zIndex → double
-
Z-index of the icon, relative to the placemark's z-index.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited