MarkerOptions class

Class to configure marker properties. Please refer docs for more details.

Constructors

MarkerOptions({required LatLng? position, WoosPoint? anchorPoint, bool? clickable, bool? draggable, dynamic icon, dynamic label, double? opacity, String? title, bool? visible})
Default constructor. Creates MarkerOptions object.
MarkerOptions.fromJson(Map<String, dynamic> json)
Create object from the given JSON object.

Properties

anchorPoint WoosPoint?
The offset from the marker’s position to the tip of an InfoWindow that has been opened with the marker as anchor. (Anchor object Specification)https://developers.woosmap.com/products/map-api/reference/1.4/#woosmap.map.MarkerOptions__anchorPoint
getter/setter pair
clickable bool?
If true the marker receive the click events. Default value is true.
getter/setter pair
draggable bool?
If the marker is draggable or not
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon ↔ dynamic
The icon to display. When icon is a string it is treated as Icon with the string as url property. A string or a WoosIcon object (WoosIcon object Specification)https://pub.dev/documentation/woosmap_flutter/latest/woosmap_flutter/WoosIcon-class.html
getter/setter pair
label ↔ dynamic
Adds a letter or number label inside a marker. A string or a WoosmMarkerLabelOptions object (MarkerLabelOptions object Specification)https://pub.dev/documentation/woosmap_flutter/latest/woosmap_flutter/MarkerLabelOptions-class.html
getter/setter pair
opacity double?
The marker’s opacity (min: 0, max: 1)
getter/setter pair
position LatLng?
The markers’s position. (LatLng object Specification)https://pub.dev/documentation/woosmap_flutter/latest/woosmap_flutter/LatLng/LatLng.html
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Title of the marker
getter/setter pair
visible bool?
If true the marker will be visible. Default value is true
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns JSON representation of the object.
toString() String
A string representation of this object.
inherited
woosmapObject() String

Operators

operator ==(Object other) bool
The equality operator.
inherited