ClusterMapObject class abstract

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. Note: Position and membership are managed by the controller and cannot be changed through this interface. Use ClusterMapObjectListener (onClusterChanged) to refresh a custom cluster bitmap when the member count changes.

Implemented types
Implementers

Constructors

ClusterMapObject()

Properties

count int
Number of icon map objects in the cluster (at least 2 while the cluster is visible).
no setter
hashCode int
The hash code for this object.
no setterinherited
iconMapObjects List<IconMapObject>
Icon map objects currently grouped into this cluster.
no setter
position LocationPoint
Cluster center in metrics coordinates.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(ClusterMapObjectListener listener) → void
Adds a listener for cluster state updates ClusterMapObjectListener. listener Listener instance.
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
isValid() bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(ClusterMapObjectListener listener) → void
Removes a previously added listener. listener Listener instance to remove.
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
setBitmap(ImageProvider bitmap) bool
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. 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
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
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