IconMapObject class abstract

Represents an icon object on the location view. Referenced from LocationWindow. Note: IconMapObject maintains orientation to the screen surface by default.

Implemented types
Implementers

Constructors

IconMapObject()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getData() Uint8List
Gets the user-defined data associated with the map object. Returns The data stored in the map object.
inherited
getId() int
Gets the unique identifier of the map object. Returns The unique identifier of the map object.
inherited
getType() MapObjectType
Gets the type of the map object. Returns The type of the map object MapObjectType.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAlpha(double alpha) bool
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. Returns true if the operation is successful, false otherwise.
inherited
setAngle(double angle) bool
Method is used to specify the rotation angle of the icon. angle Rotation angle in degrees. Default: 0. Returns true if the operation is successful, false otherwise.
setAngleAnimated(double angle, double duration, AnimationType type) bool
Method is used to rotate the icon with the specified animation. angle Rotation angle in degrees. duration Animation duration in seconds. type Animation type AnimationType. Returns true if the operation is successful, false otherwise.
setBitmap(ImageProvider bitmap) bool
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. Returns true if the operation is successful, false otherwise.
setBuffer(double width, double height) bool
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. Returns true if the operation is successful, false otherwise.
setCollisionEnabled(bool enabled) bool
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. Returns true if the operation is successful, false otherwise.
setData(Uint8List data) → void
Method is used to set user-defined data for the map object. data Data to store in the map object.
inherited
setFlat(bool flat) bool
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. Returns true if the operation is successful, false otherwise.
setInteractive(bool interactive) bool
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. Returns true if the operation is successful, false otherwise.
inherited
setOffset(double width, double height) bool
Method is used to specify an offset for the icon’s anchor on screen. width Horizontal offset in pixels. height Vertical offset in pixels. Returns true if the operation is successful, false otherwise.
setPosition(LocationPoint point) bool
Method is used to specify the center of the icon. point Metrics coordinates of the center LocationPoint. Returns true if the operation is successful, false otherwise.
setPositionAnimated(LocationPoint point, double duration, AnimationType type) bool
Method is used to move the center of the icon with the specified animation. point Metrics coordinates of the center LocationPoint. duration Animation duration in seconds. type Animation type AnimationType. Returns true if the operation is successful, false otherwise.
setPriority(double priority) bool
Method is used to specify the priority of the icon. priority The priority value for rendering or interaction. Default: max. Returns true if the operation is successful, false otherwise.
setSize(double width, double height) bool
Method is used to specify the size of the icon. width Width of the icon in pixels. height Height of the icon in pixels. Returns true if the operation is successful, false otherwise.
setTitle(String title) bool
Method is used to set the title of the map object. title The title to display on the location view. Returns true if the operation is successful, false otherwise.
inherited
setVisible(bool visible) bool
Method is used to specify the visibility of the map object. visible Specifies whether the object is visible (true) or hidden (false). Default: true. Returns true if the operation is successful, false otherwise.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited