Module: ol/control/FullScreen

ol/control/FullScreen


Classes

FullScreen

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
className string <optional>
'ol-full-screen'

CSS class name.

label string | Text | HTMLElement <optional>
'\u2922'

Text label to use for the button. Instead of text, also an element (e.g. a span element) can be used.

labelActive string | Text | HTMLElement <optional>
'\u00d7'

Text label to use for the button when full-screen is active. Instead of text, also an element (e.g. a span element) can be used.

activeClassName string <optional>
className + '-true'

CSS class name for the button when full-screen is active.

inactiveClassName string <optional>
className + '-false'

CSS class name for the button when full-screen is inactive.

tipLabel string <optional>
'Toggle full-screen'

Text label to use for the button tip.

keys boolean <optional>
false

Full keyboard access.

target HTMLElement | string <optional>

Specify a target if you want the control to be rendered outside of the map's viewport.

source HTMLElement | string <optional>

The element to be displayed fullscreen. When not provided, the element containing the map viewport will be displayed fullscreen.