packages/markerclusterer/src/lib/directives/marker-cluster.ts
AgmMarkerCluster clusters map marker if they are near together
OnDestroy
OnChanges
OnInit
MarkerClustererOptions
Providers |
ClusterManager
{ provide: MarkerManager, useExisting: ClusterManager }
InfoWindowManager
|
Selector | agm-marker-cluster |
Properties |
|
Methods |
Inputs |
Outputs |
constructor(_clusterManager: ClusterManager)
|
||||||
Parameters :
|
averageCenter | |
Type : boolean
|
|
Whether the center of each cluster should be the average of all markers in the cluster. |
calculator | |
Type : Calculator
|
|
A function that calculates the cluster style and text based on the markers in the cluster. |
clusterClass | |
Type : string
|
|
The name of the CSS class defining general styles for the cluster markers.
Use this class to define CSS styles that are not set up by the code that
processes the |
enableRetinaIcons | |
Type : boolean
|
|
Whether to allow the use of cluster icons that have sizes that are some
multiple (typically double) of their actual display size. Icons such as
these look better when viewed on high-resolution monitors such as Apple's
Retina displays. Note: if this property is |
gridSize | |
Type : number
|
|
The grid size of a cluster in pixels |
ignoreHidden | |
Type : boolean
|
|
Whether to ignore hidden markers in clusters. You may want to set this to
|
imageExtension | |
Type : string
|
|
imagePath | |
Type : string
|
|
imageSizes | |
Type : number[]
|
|
An array of numbers containing the widths of the group of
|
maxZoom | |
Type : number
|
|
The maximum zoom level that a marker can be part of a cluster. |
minimumClusterSize | |
Type : number
|
|
The minimum number of markers to be in a cluster before the markers are hidden and a count is shown. |
styles | |
Type : ClusterIconStyle[]
|
|
An object that has style properties. |
title | |
Type : string
|
|
The tooltip to display when the mouse moves over a cluster marker.
(Alternatively, you can use a custom |
zoomOnClick | |
Type : boolean
|
|
Whether the default behaviour of clicking on a cluster is to zoom into it. |
clusterClick | |
Type : EventEmitter<void>
|
|
Private _addEventListeners |
_addEventListeners()
|
Returns :
void
|
ngOnChanges | ||||||
ngOnChanges(changes: literal type)
|
||||||
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
Private _observableSubscriptions |
Type : Subscription[]
|
Default value : []
|