# Interface: MarkerClusterOptions

# Table of contents

# Properties

# Properties

# allowOverlap

Optional allowOverlap: boolean

是否允许重叠,默认false.


# allowOverlapMaxZoom

Optional allowOverlapMaxZoom: number

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


# cameraNearFront

Optional cameraNearFront: boolean

离相机最近的在显示在前面,默认false.


# createMarker

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

# Type declaration

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

# Parameters
Name Type
curMarkerData MarkerClusterData
clusterMarkersData MarkerClusterData[]

Returns: Marker | Text


# 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 | Marker | Text

# Type declaration

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

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

Returns: undefined | Marker | Text

vjmap / Exports / markerOptions