Class: Status

ol.control. Status

A control to display status information on top of the map


new Status( [options])

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Properties
Name Type Description
className String

class of the control

status string

status, default none

position string

position of the status 'top', 'left', 'bottom' or 'right', default top

visible boolean

default true

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