Constructor
new IndexCluster(options)
Example
renderCluter: (context) => {
context.index: 索引名称
context.name: 索引对应值
context.count: 聚合个数
context.data: 聚合点数据
context.position: 聚合坐标
context.addOverlay: 添加覆盖物
context.addPopup: 添加popup
}
Parameters:
Name |
Type |
Description |
options |
*
|
Properties
Name |
Type |
Attributes |
Default |
Description |
coordsField |
String
|
<optional>
|
'lnglat'
|
数据中坐标字段名称 |
data |
Array
|
<optional>
|
[{lnglat: [lng, lat]},]
|
数据 |
indexSet |
Number
|
<optional>
|
{key: {minZoom,maxZoom},}
|
网格大小 |
renderCluter |
function
|
<optional>
|
|
渲染函数 |
|