# Interface: MarkerClusterOptions

# Table of contents

# Properties

# Properties

# allowOverlap

Optional allowOverlap: boolean

是否允许重叠,默认false.


# allowOverlapMaxZoom

Optional allowOverlapMaxZoom: number

允许重叠的最大缩放级别,小于或等于此级别才会处理重叠,超过此级时会全部显示当前所有的(如果不允许重叠时有效).默认4级


# createMarker

createMarker: (curMarkerData: MarkerClusterData, clusterMarkersData: MarkerClusterData[]) => Text | Marker

# Type declaration

▸ (curMarkerData: MarkerClusterData, clusterMarkersData: MarkerClusterData[]): Text | Marker

# Parameters
Name Type
curMarkerData MarkerClusterData
clusterMarkersData MarkerClusterData[]

Returns: Text | Marker


# data

data: FeatureCollection<Geometry | GeometryCollection, Properties> | MarkerClusterData[]

数据内容.(传入坐标为CAD地理坐标)


# markerHeight

Optional markerHeight: number

marker div的像素高,用于计算重叠时需要,默认40. 如果在data的properties设置了属性markerHeight,则以data设置的为准


# markerWidth

Optional markerWidth: number

marker div的像素宽,用于计算重叠时需要,默认40. 如果在data的properties设置了属性markerWidth,则以data设置的为准


# updateMarker

Optional updateMarker: (curMarkerData: MarkerClusterData, clusterMarkersData: MarkerClusterData[], marker: Marker) => undefined | Text | Marker

# Type declaration

▸ (curMarkerData: MarkerClusterData, clusterMarkersData: MarkerClusterData[], marker: Marker): undefined | Text | Marker

# Parameters
Name Type
curMarkerData MarkerClusterData
clusterMarkersData MarkerClusterData[]
marker Marker

Returns: undefined | Text | Marker

vjmap / Exports / Math2D / UvBox