Runtime snapshot of a visible icon cluster on the location view. More...
Inheritance diagram for ClusterMapObject:Public Member Functions | |
| bool | setBitmap (ImageProvider bitmap) |
| Method is used to specify the decoded raster for the cluster marker. | |
| void | addListener (ClusterMapObjectListener listener) |
| Adds a listener for cluster state updates ClusterMapObjectListener. | |
| void | removeListener (ClusterMapObjectListener listener) |
| Removes a previously added listener. | |
| 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. | |
Public Attributes | |
| LocationPoint get | position |
| Cluster center in metrics coordinates. | |
| int get | count |
| Number of icon map objects in the cluster (at least 2 while the cluster is visible). | |
| List< IconMapObject > get | iconMapObjects |
| Icon map objects currently grouped into this cluster. | |
Runtime snapshot of a visible icon cluster on the location view.
Created and updated by ClusterMapObjectController. Member IconMapObject instances are hidden while grouped; the cluster marker is shown instead.
onClusterChanged) to refresh a custom cluster bitmap when the member count changes. Definition at line 31 of file cluster_map_object.dart.
| void ClusterMapObject.addListener | ( | ClusterMapObjectListener | listener | ) |
Adds a listener for cluster state updates ClusterMapObjectListener.
| listener | Listener instance. |
Dart code snippet:
|
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:
| void ClusterMapObject.removeListener | ( | ClusterMapObjectListener | listener | ) |
Removes a previously added listener.
| listener | Listener instance to remove. |
Dart code snippet:
|
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 ClusterMapObject.setBitmap | ( | ImageProvider | bitmap | ) |
Method is used to specify the decoded raster for the cluster marker.
| bitmap | Image provider: Android com.navigine.image.ImageProvider; iOS UIImage via binding; Flutter navigine_sdk ImageProvider. |
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:
|
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:
|
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 specify the visibility of the map object.
| visible | Specifies whether the object is visible (true) or hidden (false). Default: true. |
Dart code snippet:
| int get ClusterMapObject.count |
Number of icon map objects in the cluster (at least 2 while the cluster is visible).
Definition at line 82 of file cluster_map_object.dart.
| List<IconMapObject> get ClusterMapObject.iconMapObjects |
Icon map objects currently grouped into this cluster.
Definition at line 87 of file cluster_map_object.dart.
| LocationPoint get ClusterMapObject.position |
Cluster center in metrics coordinates.
Definition at line 77 of file cluster_map_object.dart.