PlacemarkMapObject class
A placemark to be displayed on YandexMap at a specific point
- Implemented types
Constructors
-
PlacemarkMapObject({required MapObjectId mapId, required Point point, double zIndex = 0.0, TapCallback<
PlacemarkMapObject> ? onTap, DragStartCallback<PlacemarkMapObject> ? onDragStart, DragCallback<PlacemarkMapObject> ? onDrag, DragEndCallback<PlacemarkMapObject> ? onDragEnd, bool consumeTapEvents = false, bool isVisible = true, bool isDraggable = false, PlacemarkIcon? icon, double opacity = 0.5, double direction = 0, PlacemarkText? text}) -
const
Properties
- consumeTapEvents → bool
-
True if the placemark consumes tap events.
If not, the map will propagate tap events to other map objects at the point of tap.
final
- direction → double
-
Angle between the direction of an object and the direction to north.
Measured in degrees.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → PlacemarkIcon?
-
Visual appearance of PlacemarkMapObject on the map.
final
- isDraggable → bool
-
Manages if map object can be dragged by the user.
final
- isVisible → bool
-
Manages visibility of the object on the map.
final
- mapId → MapObjectId
-
A unique identifier for this object in the scope of a single YandexMap
final
-
onDrag
→ DragCallback<
PlacemarkMapObject> ? -
Raised when the user is moving a finger and the map object follows it.
final
-
onDragEnd
→ DragEndCallback<
PlacemarkMapObject> ? -
Raised when the user released the tap.
final
-
onDragStart
→ DragStartCallback<
PlacemarkMapObject> ? -
Raised when dragging mode is active for the given map object.
final
-
onTap
→ TapCallback<
PlacemarkMapObject> ? -
Callback to call when this placemark receives a tap
final
- opacity → double
-
Opacity multiplicator for the placemark content.
Values below 0 will be set to 0.
final
- point → Point
-
The geometry of the map object.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - text → PlacemarkText?
-
Text to display with a PlacemarkMapObject
final
- zIndex → double
-
z-order
final
Methods
-
clone(
) → PlacemarkMapObject -
Returns a duplicate of this object.
override
-
copyWith(
{Point? point, double? zIndex, TapCallback< PlacemarkMapObject> ? onTap, DragStartCallback<PlacemarkMapObject> ? onDragStart, DragCallback<PlacemarkMapObject> ? onDrag, DragEndCallback<PlacemarkMapObject> ? onDragEnd, bool? consumeTapEvents, bool? isVisible, bool? isDraggable, PlacemarkIcon? icon, double? opacity, double? direction, PlacemarkText? text}) → PlacemarkMapObject -
dup(
MapObjectId mapId) → PlacemarkMapObject -
Creates a new copy of
T
with the same attributes as the original except its idoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to something serializable in JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited