Represents an icon object on the location view. More...
Inheritance diagram for com.navigine.idl.java.IconMapObject:Public Member Functions | |
| abstract boolean | setPosition (LocationPoint point) |
| Method is used to specify the center of the icon. | |
| abstract boolean | setPositionAnimated (LocationPoint point, float duration, AnimationType type) |
| Method is used to move the center of the icon with the specified animation. | |
| abstract boolean | setBitmap (com.navigine.image.ImageProvider bitmap) |
| Method is used to specify the decoded raster for the icon. | |
| abstract boolean | setSize (float width, float height) |
| Method is used to specify the size of the icon. | |
| abstract boolean | setCollisionEnabled (boolean enabled) |
| Method is used to enable or disable collision detection for the icon. | |
| abstract boolean | setAngle (float angle) |
| Method is used to specify the rotation angle of the icon. | |
| abstract boolean | setAngleAnimated (float angle, float duration, AnimationType type) |
| Method is used to rotate the icon with the specified animation. | |
| abstract boolean | setBuffer (float width, float height) |
| Method is used to specify the buffer size around the icon for collision detection. | |
| abstract boolean | setOffset (float width, float height) |
| Method is used to specify an offset for the icon’s anchor on screen. | |
| abstract boolean | setPriority (float priority) |
| Method is used to specify the priority of the icon. | |
| abstract boolean | setFlat (boolean flat) |
| Method is used to specify whether the icon is flat or billboarded. | |
| abstract boolean | isValid () |
| abstract int | getId () |
| Gets the unique identifier of the map object. | |
| abstract MapObjectType | getType () |
| Gets the type of the map object. | |
| abstract byte[] | getData () |
| Gets the user-defined data associated with the map object. | |
| abstract boolean | setVisible (boolean visible) |
| Method is used to specify the visibility of the map object. | |
| abstract boolean | setInteractive (boolean interactive) |
| Method is used to specify whether the map object can be interacted with. | |
| abstract void | setData (byte[] data) |
| Method is used to set user-defined data for the map object. | |
| abstract boolean | setTitle (String title) |
| Method is used to set the title of the map object. | |
| abstract boolean | setAlpha (float 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 18 of file IconMapObject.java.
|
abstractinherited |
Gets the user-defined data associated with the map object.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.
|
abstractinherited |
Gets the unique identifier of the map object.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.
|
abstractinherited |
Gets the type of the map object.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.
|
abstract |
Tells if this IconMapObject is valid or not. Any other method (except for this one) called on an invalid IconMapObject will throw java.lang.RuntimeException.
Reimplemented from com.navigine.idl.java.MapObject.
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstractinherited |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.
|
abstract |
Method is used to specify the rotation angle of the icon.
| angle | Rotation angle in degrees. Default: 0. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstractinherited |
Method is used to set user-defined data for the map object.
| data | Data to store in the map object. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstractinherited |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.
|
abstract |
Method is used to specify an offset for the icon’s anchor on screen.
| width | Horizontal offset in pixels. |
| height | Vertical offset in pixels. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
Method is used to specify the center of the icon.
| point | Metrics coordinates of the center LocationPoint. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
Method is used to specify the priority of the icon.
| priority | The priority value for rendering or interaction. Default: max. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstract |
Method is used to specify the size of the icon.
| width | Width of the icon in pixels. |
| height | Height of the icon in pixels. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.IconMapObjectBinding.
|
abstractinherited |
Method is used to set the title of the map object.
| title | The title to display on the location view. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.
|
abstractinherited |
Method is used to specify the visibility of the map object.
| visible | Specifies whether the object is visible (true) or hidden (false). Default: true. |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.CircleMapObjectBinding, com.navigine.idl.java.internal.ClusterMapObjectBinding, com.navigine.idl.java.internal.DottedPolylineMapObjectBinding, com.navigine.idl.java.internal.IconMapObjectBinding, com.navigine.idl.java.internal.MapObjectBinding, com.navigine.idl.java.internal.ModelMapObjectBinding, com.navigine.idl.java.internal.PolygonMapObjectBinding, and com.navigine.idl.java.internal.PolylineMapObjectBinding.