Loading...
Searching...
No Matches
FlatIconMapObject Class Referenceabstract

represents icon object on location view. More...

+ Inheritance diagram for FlatIconMapObject:

Public Member Functions

bool setAngle (double angle)
 Method is used to specify rotation of object.
 
bool setAngleAnimated (double angle, double duration, AnimationType type)
 Method is used to rotate object with specified animation.
 
bool setPosition (LocationPoint point)
 Method is used to specify center of object.
 
bool setPositionAnimated (LocationPoint point, double duration, AnimationType type)
 Method is used to move center of object with specified animation LocationPoint.
 
bool setBitmap (ImageWrapper bitmap)
 Method is used to specify bitmap image to the object.
 
bool setSize (double width, double height)
 Method is used to specify size 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 icon object on location view.

Referenced from LocationWindow.

Note
FlatIconMapObject keep orientation to location view surface.

Definition at line 28 of file flat_icon_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.

◆ setAngle()

bool FlatIconMapObject.setAngle ( double angle)

Method is used to specify rotation of object.

Parameters
angleangle of rotation in degrees.
Returns
true if success, false otherwise.

◆ setAngleAnimated()

bool FlatIconMapObject.setAngleAnimated ( double angle,
double duration,
AnimationType type )

Method is used to rotate object with specified animation.

Parameters
angleangle of rotation in degrees.
durationanimation duration in seconds.
typeanimation type AnimationType.
Returns
true if success, false otherwise.

◆ setBitmap()

bool IconMapObject.setBitmap ( ImageWrapper bitmap)
inherited

Method is used to specify bitmap image to the object.

Parameters
bitmapplatfrom bitmap object.
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.

◆ setPosition()

bool IconMapObject.setPosition ( LocationPoint point)
inherited

Method is used to specify center of object.

Parameters
pointmetrics coordinate of center LocationPoint.
Returns
true if success, false otherwise.

◆ setPositionAnimated()

bool IconMapObject.setPositionAnimated ( LocationPoint point,
double duration,
AnimationType type )
inherited

Method is used to move center of object with specified animation LocationPoint.

Parameters
pointmetrics coordinate of center LocationPoint.
durationanimation duration in seconds.
typeanimation type AnimationType.
Returns
true if success, false otherwise.

◆ setSize()

bool IconMapObject.setSize ( double width,
double height )
inherited

Method is used to specify size of object.

Parameters
widthwidth of object in pixels.
heightwidth of object in pixels.
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.

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