ClusterMapObjectController class abstract
Groups IconMapObject instances into clusters depending on zoom and proximity.
Referenced from LocationWindow.
Register icons with addIconMapObject, then optionally customize cluster appearance in
ClusterMapObjectControllerListener (onClusterCreated) and
ClusterMapObjectListener (onClusterChanged).
- Implemented types
- Implementers
Constructors
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
-
addIconMapObject(
IconMapObject iconMapObject) → bool -
Adds an icon map object to the cluster controller.
iconMapObjectIcon to cluster IconMapObject. Must be added to the same LocationWindow viaaddIconMapObject. Returns true if the icon was added, false otherwise. -
addListener(
ClusterMapObjectControllerListener listener) → void -
Adds a listener for cluster lifecycle events ClusterMapObjectControllerListener.
listenerListener instance. -
clear(
) → void - Removes all icon map objects from the controller and destroys visible cluster markers.
-
getClusters(
) → List< ClusterMapObject> - Returns a snapshot of currently visible clusters.
-
getRadius(
) → double - Returns cluster radius in density-independent pixels.
-
isEnabled(
) → bool - Returns whether clustering is enabled.
-
isValid(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeIconMapObject(
IconMapObject iconMapObject) → bool -
Removes an icon map object from the cluster controller.
iconMapObjectIcon to remove. Returns true if the icon was removed, false otherwise. -
removeListener(
ClusterMapObjectControllerListener listener) → void -
Removes a previously added listener.
listenerListener instance to remove. -
setClusterSize(
double width, double height) → bool - Specifies the size of the default cluster icon in pixels. Returns true if the operation is successful, false otherwise.
-
setEnabled(
bool enabled) → void - Enables or disables clustering. Default: true.
-
setInteractive(
bool interactive) → bool - Specifies whether cluster markers can be picked. Default: true. Returns true if the operation is successful, false otherwise.
-
setRadius(
double radius) → void - Cluster radius in density-independent pixels. Default: 40.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited