Class: Status

ol.control. Status


new Status( [options])

A control with scroll-driven navigation to create narrative maps

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

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


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