# Class: MarkerCluster
创建文本组件.
# Hierarchy
Evented
↳ MarkerCluster
# Table of contents
# Constructors
# Methods
# Constructors
# constructor
+ new MarkerCluster(options
: MarkerClusterOptions): MarkerCluster
构造函数
# Parameters
Name | Type |
---|---|
options | MarkerClusterOptions |
Returns: MarkerCluster
Overrides: Evented.constructor
# Methods
# addTo
▸ addTo(map
: Map): MarkerCluster
将 MarkerCluster
附加到 Map
对象。
# Parameters
Name | Type |
---|---|
map | Map |
Returns: MarkerCluster
# allowOverlap
▸ allowOverlap(bAllowOverlap
: boolean): void
# Parameters
Name | Type |
---|---|
bAllowOverlap | boolean |
Returns: void
# allowOverlapMaxZoom
▸ allowOverlapMaxZoom(zoom
: number): void
# Parameters
Name | Type |
---|---|
zoom | number |
Returns: void
# getData
▸ getData(): MarkerClusterData[]
获取数据。
Returns: MarkerClusterData[]
# hide
▸ hide(): void
隐藏
Returns: void
# remove
▸ remove(): void
从地图中删除。
Returns: void
# show
▸ show(): void
显示
Returns: void
# updateData
▸ updateData(data
: FeatureCollection<Geometry | GeometryCollection, Properties> | MarkerClusterData[]): void
更新数据。
# Parameters
Name | Type |
---|---|
data | FeatureCollection<Geometry | GeometryCollection, Properties> | MarkerClusterData[] |
Returns: void
# updateMarkers
▸ updateMarkers(): void
更新markers。
Returns: void