- borderPadding (integer) specifies, in pixels, the extra padding outside the map's current viewport monitored by ClusterMarker. Markers that fall within this padding are added to the map, even if they are not fully visible.
Copied from Google Maps API Reference for the API GMarkerManager as this property is identical to the GMarkerManager option of the same name.
This property is 256 pixels by default.
myCluster.borderPadding=512;
- clusteringEnabled (boolean) accepts a boolean true or false value and enables or disables clustering. After changing this property you will likely want to call the refresh() method to see the change in effect.
This property is enabled (true) by default.
myCluster.clusteringEnabled=true;
- clusterMarkerClick A custom function that will be executed when a cluster marker is clicked instead of the default built in function.
The custom function will be passed a single argument - an object literal with two properties: - clusterMarker A reference to the cluster marker that has been clicked.
- clusteredMarkers An array of references to all the markers contained in the cluster.
myCluster.clusterMarkerClick=function(args) { args.clusterMarker.openInfoWindowHtml( args.clusteredMarkers.length + ' markers clustered here.');
- clusterMarkerTitle specifies a string to display as the tooltip that appears when the mouse hovers over a cluster marker. You can use the token %count to represent the number of markers in a cluster.
The default cluster marker title is equivalent to passing a string "Click to zoom in and see %count markers".
myCluster.clusterMarkerTitle='This is a cluster of %count locations';
- fitMapMaxZoom (integer) specifies the maximum zoom level to use if fitMapToMarkers is executed.
By default, ClusterMarker will zoom in to a level at which all markers and cluster markers are visible on the map.
If this default fitMapToMarkers action zooms your map in too much then specify a fitMapMaxZoom that you find more suitable.
The default value of fitMapMaxZoom is the maximum zoom level for the current map type.
myCluster.fitMapMaxZoom=12;
- intersectPadding (integer) specifies a number of pixels (negative or positive) that surround each marker's icon to determine if it intersects with any nearby markers.
This property is zero pixels by default.
myCluster.intersectPadding=-1;