new Status( [options])
Parameters:
Name | Type | Argument | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Control options. Properties
|
Extends
Methods
-
hide()
-
Hide the status
-
isShown()
-
Is status visible
-
setPosition(position)
-
Set status position
Parameters:
Name Type Description position
string position of the status 'top', 'left', 'bottom' or 'right', default top
-
setVisible(visible)
-
Set visiblitity
Parameters:
Name Type Description visible
boolean -
show(show)
-
Show the status
Parameters:
Name Type Description show
boolean show or hide the control, default true
-
status(html)
-
Show status on the map
Parameters:
Name Type Description html
string | Element status text or DOM element
-
toggle()
-
Toggle the status