new MarkerClustererOptions()
- Source:
Properties:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
gridSize |
number |
<optional> |
60 | The grid size of a cluster in pixels. The grid is a square. |
maxZoom |
number |
<optional> |
null | The maximum zoom level at which clustering is enabled or |
zoomOnClick |
boolean |
<optional> |
true | Whether to zoom the map when a cluster marker is |
averageCenter |
boolean |
<optional> |
false | Whether the position of a cluster marker should be |
minimumClusterSize |
number |
<optional> |
2 | The minimum number of markers needed in a cluster |
ignoreHidden |
boolean |
<optional> |
false | Whether to ignore hidden markers in clusters. You |
title |
string |
<optional> |
"" | The tooltip to display when the mouse moves over a cluster |
calculator |
function |
<optional> |
MarkerClusterer.CALCULATOR | The function used to determine |
clusterClass |
string |
<optional> |
"cluster" | The name of the CSS class defining general styles |
styles |
Array |
<optional> |
An array of ClusterIconStyle elements defining the styles |
|
enableRetinaIcons |
boolean |
<optional> |
false | Whether to allow the use of cluster icons that |
batchSize |
number |
<optional> |
MarkerClusterer.BATCH_SIZE | Set this property to the |
batchSizeIE |
number |
<optional> |
MarkerClusterer.BATCH_SIZE_IE | When Internet Explorer is |
imagePath |
string |
<optional> |
MarkerClusterer.IMAGE_PATH | The full URL of the root name of the group of image files to use for cluster icons. |
imageExtension |
string |
<optional> |
MarkerClusterer.IMAGE_EXTENSION | The extension name for the cluster icon image files (e.g., |
imageSizes |
Array |
<optional> |
MarkerClusterer.IMAGE_SIZES | An array of numbers containing the widths of the group of |