TimePeriodControl
Extends:
L.Control → ButtonGroupControl → TimePeriodControl
A button group control for switching between different time periods, currently Historic, Seasonal Forecasts, and Climate Projections.
Template: TimePeriodControlTemplate
Constructor Summary
Public Constructor | ||
public |
|
Inherited Summary
From class ButtonGroupControl | ||
public |
The name of the currently active button. |
|
public |
Adds the control to the given map. |
|
public |
onAdd(): HTMLElement Creates the HTMLElement of the control, registers listeners, and returns it. |
Public Constructors
public constructor source
Override:
ButtonGroupControl#constructorParams:
Name | Type | Attribute | Description |
options.position | string |
|
The position of the control (one of the map corners). Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'. |
options.initialActive | string |
|
If set, the name of the button that is initially active,
one of |