Module: ol/control/FullScreen

ol/control/FullScreen


Classes

FullScreen

Type Definitions

Options{Object}

Properties:
Name Type Description
className string
(defaults to 'ol-full-screen')

CSS class name.

label string | Text | HTMLElement
(defaults to '\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
(defaults to '\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
(defaults to className + '-true')

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

inactiveClassName string
(defaults to className + '-false')

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

tipLabel string
(defaults to 'Toggle full-screen')

Text label to use for the button tip.

keys boolean
(defaults to false)

Full keyboard access.

target HTMLElement | string | undefined

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

source HTMLElement | string | undefined

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