Class: FMMarkerCluster

FMMarkerCluster

FMMarkerCluster 点聚合工具类,属于fengmap.map.min.js

new fengmap.FMMarkerCluster(options)

Name Type Description
options object

配置项

Name Type Description
map object

FMMap对象

gridSize number

网格像素大小,默认100

buildingID string

点所在建筑ID

level number

点所在楼层

points array

坐标点数组

points[].x number

x坐标

points[].y number

y坐标

maxZoom number

最大的聚合级别,大于该级别就不进行相应的聚合。默认值为20

render function

聚合内容发生变化的回调函数

Name Type Description
content[].isCluster boolean

是否为聚合点

content[].points Array

聚合点集合

content[].buildingID string

建筑ID

content[].level number

楼层

content[].x number

x 坐标

content[].y number

y 坐标

Methods

dispose()

释放FMMarkerCluster对象应用和内存占用