Loading...
Searching...
No Matches
PolylineMapObject Class Referenceabstract

Represents a polyline object on the location view. More...

+ Inheritance diagram for PolylineMapObject:

Public Member Functions

bool setPolyLine (LocationPolyline polyline)
 Method is used to specify the source polyline of the object.
 
bool setWidth (double width)
 Method is used to specify the width of the polyline.
 
bool setColor (double red, double green, double blue, double alpha)
 Method is used to specify the fill color of the polyline.
 
bool setOrder (int order)
 Method is used to specify the rendering order of the polyline.
 
bool setCapType (CapType cap)
 Method is used to specify the cap style for the polyline ends.
 
bool setJoinType (JoinType join)
 Method is used to specify the join style for polyline segments.
 
bool setMiterLimit (double miterLimit)
 Method is used to specify the miter limit for miter joins.
 
bool setOutlineColor (double red, double green, double blue, double alpha)
 Method is used to specify the color of the polyline’s outline.
 
bool setOutlineWidth (double radius)
 Method is used to specify the width of the polyline’s outline.
 
bool setOutlineAlpha (double alpha)
 Method is used to specify the opacity of the polyline’s outline.
 
bool setOutlineCapType (CapType cap)
 Method is used to specify the cap style for the polyline’s outline ends.
 
bool setOutlineJoinType (JoinType join)
 Method is used to specify the join style for the polyline’s outline segments.
 
bool setOutlineMiterLimit (double miterLimit)
 Method is used to specify the miter limit for the polyline’s outline miter joins.
 
bool setOutlineOrder (int order)
 Method is used to specify the rendering order of the polyline’s outline.
 
int getId ()
 Gets the unique identifier of the map object.
 
MapObjectType getType ()
 Gets the type of the map object.
 
Uint8List getData ()
 Gets the user-defined data associated with the map object.
 
bool setVisible (bool visible)
 Method is used to specify the visibility of the map object.
 
bool setInteractive (bool interactive)
 Method is used to specify whether the map object can be interacted with.
 
void setData (Uint8List data)
 Method is used to set user-defined data for the map object.
 
bool setTitle (String title)
 Method is used to set the title of the map object.
 
bool setAlpha (double alpha)
 Method is used to set the opacity of the map object.
 

Detailed Description

Represents a polyline object on the location view.

Referenced from LocationWindow.

Definition at line 24 of file polyline_map_object.dart.

Member Function Documentation

◆ getData()

Uint8List MapObject.getData ( )
inherited

Gets the user-defined data associated with the map object.

Returns
The data stored in the map object.

◆ getId()

int MapObject.getId ( )
inherited

Gets the unique identifier of the map object.

Returns
The unique identifier of the map object.

◆ getType()

MapObjectType MapObject.getType ( )
inherited

Gets the type of the map object.

Returns
The type of the map object map_object_type.

◆ setAlpha()

bool MapObject.setAlpha ( double alpha)
inherited

Method is used to set the opacity of the map object.

Parameters
alphaOpacity 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.

◆ setCapType()

bool PolylineMapObject.setCapType ( CapType cap)

Method is used to specify the cap style for the polyline ends.

Parameters
capThe cap type cap_type. Default: BUTT.
Returns
true if the operation is successful, false otherwise.

◆ setColor()

bool PolylineMapObject.setColor ( double red,
double green,
double blue,
double alpha )

Method is used to specify the fill color of the polyline.

Parameters
redRed RGBA component (0 to 1).
greenGreen RGBA component (0 to 1).
blueBlue RGBA component (0 to 1).
alphaOpacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1.
Returns
true if the operation is successful, false otherwise.

◆ setData()

void MapObject.setData ( Uint8List data)
inherited

Method is used to set user-defined data for the map object.

Parameters
dataData to store in the map object.
Returns
true if the operation is successful, false otherwise.

◆ setInteractive()

bool MapObject.setInteractive ( bool interactive)
inherited

Method is used to specify whether the map object can be interacted with.

Parameters
interactiveSpecifies 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.

◆ setJoinType()

bool PolylineMapObject.setJoinType ( JoinType join)

Method is used to specify the join style for polyline segments.

Parameters
joinThe join type join_type. Default: MITER.
Returns
true if the operation is successful, false otherwise.

◆ setMiterLimit()

bool PolylineMapObject.setMiterLimit ( double miterLimit)

Method is used to specify the miter limit for miter joins.

Parameters
miterLimitThe miter limit value for miter joins. Default: 3.
Returns
true if the operation is successful, false otherwise.

◆ setOrder()

bool PolylineMapObject.setOrder ( int order)

Method is used to specify the rendering order of the polyline.

Parameters
orderThe rendering order value. Default: 0.
Returns
true if the operation is successful, false otherwise.

◆ setOutlineAlpha()

bool PolylineMapObject.setOutlineAlpha ( double alpha)

Method is used to specify the opacity of the polyline’s outline.

Parameters
alphaOpacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1.
Returns
true if the operation is successful, false otherwise.

◆ setOutlineCapType()

bool PolylineMapObject.setOutlineCapType ( CapType cap)

Method is used to specify the cap style for the polyline’s outline ends.

Parameters
capThe cap type cap_type. Default: BUTT.
Returns
true if the operation is successful, false otherwise.

◆ setOutlineColor()

bool PolylineMapObject.setOutlineColor ( double red,
double green,
double blue,
double alpha )

Method is used to specify the color of the polyline’s outline.

Parameters
redRed RGBA component (0 to 1).
greenGreen RGBA component (0 to 1).
blueBlue RGBA component (0 to 1).
alphaOpacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1.
Returns
true if the operation is successful, false otherwise.

◆ setOutlineJoinType()

bool PolylineMapObject.setOutlineJoinType ( JoinType join)

Method is used to specify the join style for the polyline’s outline segments.

Parameters
joinThe join type join_type. Default: MITER.
Returns
true if the operation is successful, false otherwise.

◆ setOutlineMiterLimit()

bool PolylineMapObject.setOutlineMiterLimit ( double miterLimit)

Method is used to specify the miter limit for the polyline’s outline miter joins.

Parameters
miterLimitThe miter limit value for outline miter joins. Default: 3.
Returns
true if the operation is successful, false otherwise.

◆ setOutlineOrder()

bool PolylineMapObject.setOutlineOrder ( int order)

Method is used to specify the rendering order of the polyline’s outline.

Parameters
orderThe rendering order value for the outline. Default: 0.
Returns
true if the operation is successful, false otherwise.

◆ setOutlineWidth()

bool PolylineMapObject.setOutlineWidth ( double radius)

Method is used to specify the width of the polyline’s outline.

Parameters
radiusWidth of the outline in pixels.
Returns
true if the operation is successful, false otherwise.

◆ setPolyLine()

bool PolylineMapObject.setPolyLine ( LocationPolyline polyline)

Method is used to specify the source polyline of the object.

Parameters
polylineMetrics coordinates of the polyline LocationPolyline.
Returns
true if the operation is successful, false otherwise.

◆ setTitle()

bool MapObject.setTitle ( String title)
inherited

Method is used to set the title of the map object.

Parameters
titleThe title to display on the location view.
Returns
true if the operation is successful, false otherwise.

◆ setVisible()

bool MapObject.setVisible ( bool visible)
inherited

Method is used to specify the visibility of the map object.

Parameters
visibleSpecifies whether the object is visible (true) or hidden (false). Default: true.
Returns
true if the operation is successful, false otherwise.

◆ setWidth()

bool PolylineMapObject.setWidth ( double width)

Method is used to specify the width of the polyline.

Parameters
widthWidth of the polyline in pixels.
Returns
true if the operation is successful, false otherwise.

The documentation for this class was generated from the following file: