Represents an icon object on the location view. More...
Inheritance diagram for IconMapObject:Public Member Functions | |
| bool | setPosition (GlobalPoint point, int? sublocationId) |
| Method is used to specify the center of the icon. | |
| bool | setPositionAnimated (GlobalPoint point, int? sublocationId, double duration, AnimationType type) |
| Method is used to move the center of the icon with the specified animation. | |
| bool | setBitmap (ImageProvider bitmap) |
| Method is used to specify the decoded raster for the icon. | |
| bool | setSize (double width, double height) |
| Method is used to specify the size of the icon. | |
| bool | setCollisionEnabled (bool enabled) |
| Method is used to enable or disable collision detection for the icon. | |
| bool | setAngle (double angle) |
| Method is used to specify the rotation angle of the icon. | |
| bool | setAngleAnimated (double angle, double duration, AnimationType type) |
| Method is used to rotate the icon with the specified animation. | |
| bool | setBuffer (double width, double height) |
| Method is used to specify the buffer size around the icon for collision detection. | |
| bool | setOffset (double width, double height) |
| Method is used to specify an offset for the icon’s anchor on screen. | |
| bool | setPriority (double priority) |
| Method is used to specify the priority of the icon. | |
| bool | setFlat (bool flat) |
| Method is used to specify whether the icon is flat or billboarded. | |
| bool | isValid () |
| 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 | setTitleWithStyle (String title, TitleStyle style) |
| Method is used to set the title and its style for the map object. | |
| bool | setAlpha (double alpha) |
| Method is used to set the opacity of the map object. | |
Represents an icon object on the location view.
Referenced from LocationWindow.
Definition at line 33 of file icon_map_object.dart.
|
inherited |
Gets the user-defined data associated with the map object.
Dart code snippet:
|
inherited |
Gets the unique identifier of the map object.
Dart code snippet:
|
inherited |
Gets the type of the map object.
Dart code snippet:
| bool IconMapObject.isValid | ( | ) |
Reimplemented from MapObject.
|
inherited |
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:
| bool IconMapObject.setAngle | ( | double | angle | ) |
Method is used to specify the rotation angle of the icon.
| angle | Rotation angle in radians. Default: 0. |
Dart code snippet:
| bool IconMapObject.setAngleAnimated | ( | double | angle, |
| double | duration, | ||
| AnimationType | type ) |
Method is used to rotate the icon with the specified animation.
| angle | Rotation angle in radians. |
| duration | Animation duration in seconds. |
| type | Animation type AnimationType. |
Dart code snippet:
| bool IconMapObject.setBitmap | ( | ImageProvider | bitmap | ) |
Method is used to specify the decoded raster for the icon.
| bitmap | Image provider: Android com.navigine.image.ImageProvider; iOS UIImage via binding; Flutter navigine_sdk ImageProvider. |
Dart code snippet:
| bool IconMapObject.setBuffer | ( | double | width, |
| double | height ) |
Method is used to specify the buffer size around the icon for collision detection.
| width | Width of the buffer in pixels. Default: 0. |
| height | Height of the buffer in pixels. Default: 0. |
Dart code snippet:
| bool IconMapObject.setCollisionEnabled | ( | bool | enabled | ) |
Method is used to enable or disable collision detection for the icon.
| enabled | Specifies whether collision detection is enabled (true) or disabled (false). Default: false. |
Dart code snippet:
|
inherited |
Method is used to set user-defined data for the map object.
| data | Data to store in the map object. |
Dart code snippet:
| bool IconMapObject.setFlat | ( | bool | flat | ) |
Method is used to specify whether the icon is flat or billboarded.
| flat | If true, the icon aligns with the location view surface; if false, it maintains orientation to the screen surface. Default: false. |
Dart code snippet:
|
inherited |
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 IconMapObject.setOffset | ( | double | width, |
| double | height ) |
Method is used to specify an offset for the icon’s anchor on screen.
| width | Horizontal offset in pixels. |
| height | Vertical offset in pixels. |
Dart code snippet:
| bool IconMapObject.setPosition | ( | GlobalPoint | point, |
| int? | sublocationId ) |
Method is used to specify the center of the icon.
| point | WGS84 coordinates of the center GlobalPoint. |
| sublocationId | Floor this object is attached to, or null for the outdoor map. |
Dart code snippet:
| bool IconMapObject.setPositionAnimated | ( | GlobalPoint | point, |
| int? | sublocationId, | ||
| double | duration, | ||
| AnimationType | type ) |
Method is used to move the center of the icon with the specified animation.
| point | WGS84 coordinates of the center GlobalPoint. |
| sublocationId | Floor this object is attached to, or null for the outdoor map. |
| duration | Animation duration in seconds. |
| type | Animation type AnimationType. |
Dart code snippet:
| bool IconMapObject.setPriority | ( | double | priority | ) |
Method is used to specify the priority of the icon.
| priority | The priority value for rendering or interaction. Default: max. |
Dart code snippet:
| bool IconMapObject.setSize | ( | double | width, |
| double | height ) |
Method is used to specify the size of the icon.
| width | Width of the icon in pixels. |
| height | Height of the icon in pixels. |
Dart code snippet:
|
inherited |
Method is used to set the title of the map object.
| title | The title to display on the location view. |
Dart code snippet:
|
inherited |
Method is used to set the title and its style for the map object.
| title | The title to display on the location view. |
| style | Title style parameters TitleStyle. |
Dart code snippet:
|
inherited |
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: