Base interface for handling objects on the location view. More...
Inheritance diagram for MapObject:Public Member Functions | |
| 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. | |
Base interface for handling objects on the location view.
Used to manage objects in LocationWindow. Can be handled in the pickMapObjectAt method LocationWindow.
Referenced from CircleMapObject, IconMapObject, PolylineMapObject, PolygonMapObject, DottedPolylineMapObject.
Definition at line 25 of file map_object.dart.
| Uint8List MapObject.getData | ( | ) |
Gets the user-defined data associated with the map object.
Dart code snippet:
| int MapObject.getId | ( | ) |
Gets the unique identifier of the map object.
Dart code snippet:
| MapObjectType MapObject.getType | ( | ) |
Gets the type of the map object.
Dart code snippet:
| bool MapObject.setAlpha | ( | double | alpha | ) |
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. |
Dart code snippet:
| void MapObject.setData | ( | Uint8List | data | ) |
Method is used to set user-defined data for the map object.
| data | Data to store in the map object. |
Dart code snippet:
| bool MapObject.setInteractive | ( | bool | interactive | ) |
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. |
Dart code snippet:
| bool MapObject.setTitle | ( | String | title | ) |
Method is used to set the title of the map object.
| title | The title to display on the location view. |
Dart code snippet:
| bool MapObject.setVisible | ( | bool | visible | ) |
Method is used to specify the visibility of the map object.
| visible | Specifies whether the object is visible (true) or hidden (false). Default: true. |
Dart code snippet: