new MarkerCluster(options)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            object | 初始化选项 Properties
  | 
        
Methods
- 
    
        
static add()
 - 
    
    
将标记添加到群集。
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()
 - 
    
    
生成此标记群集实例的群集。
Example
Generate clusters
cluster_instance.clustering().then((clusters) => { // operation to the clusters result }) - 
    
        
static disable()
 - 
    
    
禁用标记聚类的可视化。
Example
Disable visualization
cluster_instance.disable() - 
    
        
static enable(enableOptions)
 - 
    
    
可视化标记聚类的结果。
Parameters:
Name Type Description enableOptionsobject Properties
Name Type Description adjustHeightbool 集群标签与高度
Example
Visualize clustering result
cluster_instance.clustering().then((clusters) => { cluster_instance.enable({}) }) - 
    
        
static remove()
 - 
    
    
从群集中删除标记。
Example
Remove marker from cluster
cluster_instance.remove(tag)