control.Button

The "Button" control.
The standard button layout changes its appearance depending on the size of the map.
If the map is wide enough, the "image + text" version of the button is shown.
If the map is medium in size, the "text" version of the button is shown.
If the map is small, only the icon is shown in the button layout.
If a button has no icon, then only text will be displayed in all states, and vice versa.

The side to which you want to align the control.
Can take three values: "left", "right" or "none". If set to "left" or "right", the controls are
arranged one by one, starting from the left or right edge of the map, respectively. If set to "none", the controls are
positioned according to the values of the left, right, bottom and top options, relative to the boundaries of the map.
See also the description of the position option.

The layout's outward appearance changes based on the control's data, state and options.
The control, in turn, reacts to layout interface events and changes
the values of fields for control.Button.state depending on the commands received.

The maximum width of the button in different states.
If a number is specified, it is assumed that the button has the same maximum dimensions in all states.
If an array is specified, it will be interpreted as the maximum width of the button in different states,
from the lesser to the greater.
The number of states is set in the instance of the class control.Manager, which is usually a
field of Map.controls, via the "states" option.
By default, the controls have three states ['small', 'medium', 'large'].

The side to which you want to align the control.
Can take three values: "left", "right" or "none". If set to "left" or "right", the controls are
arranged one by one, starting from the left or right edge of the map, respectively. If set to "none", the controls are
positioned according to the values of the left, right, bottom and top options, relative to the boundaries of the map.
See also the description of the position option.

The layout's outward appearance changes based on the control's data, state and options.
The control, in turn, reacts to layout interface events and changes
the values of fields for control.Button.state depending on the commands received.

The maximum width of the button in different states.
If a number is specified, it is assumed that the button has the same maximum dimensions in all states.
If an array is specified, it will be interpreted as the maximum width of the button in different states,
from the lesser to the greater.
The number of states is set in the instance of the class control.Manager, which is usually a
field of Map.controls, via the "states" option.
By default, the controls have three states ['small', 'medium', 'large'].