Methods
refreshClusters(layers) → {L.MarkerClusterGroup}
Updates the icon of all clusters which are parents of the given marker(s).
In singleMarkerMode, also updates the given marker(s) icon.
Parameters:
Name | Type | Description |
---|---|---|
layers |
L.MarkerClusterGroup|L.LayerGroup|Array(L.Marker)|Map(L.Marker)| L.MarkerCluster|L.Marker (optional) list of markers (or single marker) whose parent clusters need to be updated. If not provided, retrieves all child markers of this. |
- Source:
Returns:
- Type
- L.MarkerClusterGroup
refreshIconOptions(options, directlyRefreshClusters) → {L.Marker}
Updates the given options in the marker's icon and refreshes the marker.
Parameters:
Name | Type | Description |
---|---|---|
options |
map object of icon options. | |
directlyRefreshClusters |
boolean (optional) true to trigger MCG.refreshClustersOf() right away with this single marker. |
- Source:
Returns:
- Type
- L.Marker