new MarkerCluster(options)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | options for initialization Properties
|
Methods
-
static add()
-
Add marker to the cluster.
Example
Add marker to cluster
let tag = new altizure.TagMarker({ sandbox: sandbox, position: position_of_marker, imgUrl: the_url_of_the_image_used_by_tag, scale: 1 }) cluster_instance.add(tag) -
static clustering()
-
Generate the clusters of this markercluster instance.
Example
Generate clusters
cluster_instance.clustering().then((clusters) => { // operation to the clusters result }) -
static disable()
-
Disable the visualization of marker clustering.
Example
Disable visualization
cluster_instance.disable() -
static enable(enableOptions)
-
Visualize the result of marker clustering.
Parameters:
Name Type Description enableOptionsobject Properties
Name Type Description adjustHeightbool cluster label with height
Example
Visualize clustering result
cluster_instance.clustering().then((clusters) => { cluster_instance.enable({}) }) -
static remove()
-
Remove marker from the cluster.
Example
Remove marker from cluster
cluster_instance.remove(tag)