PolylineMapObject class abstract

Represents a polyline object on the location view. Referenced from LocationWindow.

Implemented types
Implementers

Constructors

PolylineMapObject()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getData() Uint8List
Gets the user-defined data associated with the map object. Returns The data stored in the map object.
inherited
getId() int
Gets the unique identifier of the map object. Returns The unique identifier of the map object.
inherited
getType() MapObjectType
Gets the type of the map object. Returns The type of the map object MapObjectType.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAlpha(double alpha) bool
Method is used to set the opacity of the map object. alpha Opacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1. Returns true if the operation is successful, false otherwise.
inherited
setCapType(CapType cap) bool
Method is used to specify the cap style for the polyline ends. cap The cap type CapType. Default: BUTT. Returns true if the operation is successful, false otherwise.
setColor(double red, double green, double blue, double alpha) bool
Method is used to specify the fill color of the polyline. red Red RGBA component (0 to 1). green Green RGBA component (0 to 1). blue Blue RGBA component (0 to 1). alpha Opacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1. Returns true if the operation is successful, false otherwise.
setData(Uint8List data) → void
Method is used to set user-defined data for the map object. data Data to store in the map object.
inherited
setInteractive(bool interactive) bool
Method is used to specify whether the map object can be interacted with. interactive Specifies whether the object can be picked in the pickMapObjectAt method (true) or not (false). Default: false. Returns true if the operation is successful, false otherwise.
inherited
setJoinType(JoinType join) bool
Method is used to specify the join style for polyline segments. join The join type JoinType. Default: MITER. Returns true if the operation is successful, false otherwise.
setMiterLimit(double miterLimit) bool
Method is used to specify the miter limit for miter joins. miterLimit The miter limit value for miter joins. Default: 3. Returns true if the operation is successful, false otherwise.
setOrder(int order) bool
Method is used to specify the rendering order of the polyline. order The rendering order value. Default: 0. Returns true if the operation is successful, false otherwise.
setOutlineAlpha(double alpha) bool
Method is used to specify the opacity of the polyline’s outline. alpha Opacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1. Returns true if the operation is successful, false otherwise.
setOutlineCapType(CapType cap) bool
Method is used to specify the cap style for the polyline’s outline ends. cap The cap type CapType. Default: BUTT. Returns true if the operation is successful, false otherwise.
setOutlineColor(double red, double green, double blue, double alpha) bool
Method is used to specify the color of the polyline’s outline. red Red RGBA component (0 to 1). green Green RGBA component (0 to 1). blue Blue RGBA component (0 to 1). alpha Opacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1. Returns true if the operation is successful, false otherwise.
setOutlineJoinType(JoinType join) bool
Method is used to specify the join style for the polyline’s outline segments. join The join type JoinType. Default: MITER. Returns true if the operation is successful, false otherwise.
setOutlineMiterLimit(double miterLimit) bool
Method is used to specify the miter limit for the polyline’s outline miter joins. miterLimit The miter limit value for outline miter joins. Default: 3. Returns true if the operation is successful, false otherwise.
setOutlineOrder(int order) bool
Method is used to specify the rendering order of the polyline’s outline. order The rendering order value for the outline. Default: 0. Returns true if the operation is successful, false otherwise.
setOutlineWidth(double radius) bool
Method is used to specify the width of the polyline’s outline. radius Width of the outline in pixels. Returns true if the operation is successful, false otherwise.
setPolyLine(LocationPolyline polyline) bool
Method is used to specify the source polyline of the object. polyline Metrics coordinates of the polyline LocationPolyline. Returns true if the operation is successful, false otherwise.
setTitle(String title) bool
Method is used to set the title of the map object. title The title to display on the location view. Returns true if the operation is successful, false otherwise.
inherited
setVisible(bool visible) bool
Method is used to specify the visibility of the map object. visible Specifies whether the object is visible (true) or hidden (false). Default: true. Returns true if the operation is successful, false otherwise.
inherited
setWidth(double width) bool
Method is used to specify the width of the polyline. width Width of the polyline in pixels. Returns true if the operation is successful, false otherwise.
toString() String
A string representation of this object.
inherited

Operators

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