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

represents polyline object on location view. More...

+ Inheritance diagram for PolylineMapObject:

Public Member Functions

bool setPolyLine (LocationPolyline polyline)
 Method is used to specify source polyline of object.
 
bool setWidth (double width)
 Method is used to specify width of a line.
 
bool setColor (double red, double green, double blue, double alpha)
 Method is used to specify color of object.
 
int getId ()
 Unique identifier of map object.
 
MapObjectType getType ()
 Map object type MapObjectType. Map object could be casted to the specified type.
 
Uint8List getData ()
 Any kind of user's data.
 
bool setVisible (bool visible)
 Method is used to change visibility of map object.
 
bool setInteractive (bool interactive)
 Method is used to interactive property If True - map object could be handled in pickMapObjectAt method.
 
bool setStyle (String style)
 Method is used to apply custom styling to map object.
 
void setData (Uint8List data)
 Method is used to set any kind of user's data.
 
bool setTitle (String title)
 Method is used to set object title. Title will shown on location view.
 

Detailed Description

represents polyline object on location view.

Referenced from LocationWindow.

Definition at line 24 of file polyline_map_object.dart.

Member Function Documentation

◆ getData()

Uint8List MapObject.getData ( )
inherited

Any kind of user's data.

Returns
Data stored in map object MapObjectType.

◆ getId()

int MapObject.getId ( )
inherited

Unique identifier of map object.

Returns
Unique identifier of current map objcet MapObjectType

◆ getType()

MapObjectType MapObject.getType ( )
inherited

Map object type MapObjectType. Map object could be casted to the specified type.

Returns
Type of current map objcet MapObjectType.

◆ setColor()

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

Method is used to specify color of object.

Parameters
redred RGBA component.
greengreen RGBA component.
blueblue RGBA component.
alphaOpacity multiplicator. Values below 0 will be set to 0. Default: 1.
Returns
true if success, false otherwise.

◆ setData()

void MapObject.setData ( Uint8List data)
inherited

Method is used to set any kind of user's data.

Parameters
dataData to store in map object

◆ setInteractive()

bool MapObject.setInteractive ( bool interactive)
inherited

Method is used to interactive property If True - map object could be handled in pickMapObjectAt method.

Parameters
interactivecontrol interactivity of the object.
Returns
true if success, false otherwise.

◆ setPolyLine()

bool PolylineMapObject.setPolyLine ( LocationPolyline polyline)

Method is used to specify source polyline of object.

Parameters
polylinemetrics coordinate of polyline LocationPolyline.
Returns
true if success, false otherwise.

◆ setStyle()

bool MapObject.setStyle ( String style)
inherited

Method is used to apply custom styling to map object.

Parameters
stylestyling string (Style parameters).
Returns
true if success, false otherwise.

◆ setTitle()

bool MapObject.setTitle ( String title)
inherited

Method is used to set object title. Title will shown on location view.

Parameters
titleof map object.
Returns
true if success, false otherwise.

◆ setVisible()

bool MapObject.setVisible ( bool visible)
inherited

Method is used to change visibility of map object.

Parameters
visiblecontrol visibility of the object.
Returns
true if success, false otherwise.

◆ setWidth()

bool PolylineMapObject.setWidth ( double width)

Method is used to specify width of a line.

Parameters
widthwidth of a line in pixels.
Returns
true if success, false otherwise.

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