ClusterModeControl
Mixin Extends:
A single button that switches its text between 'Hide Clusters' and 'Show Clusters' when clicked. The initial button state is 'Show Clusters'.
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
onAdd(): HTMLElement Creates the HTMLElement of the control, registers listeners, and returns it. |
Public Constructors
public constructor source
Params:
Name | Type | Attribute | Description |
options.clusters | boolean |
|
The initial button state, True = 'Hide Clusters'. |
options.position | string |
|
The position of the control (one of the map corners). Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'. |
Public Methods
public onAdd(): HTMLElement source
Creates the HTMLElement of the control, registers listeners, and returns it. This method is called directly by Leaflet, use L.Control#addTo instead.