Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description classNamestring
(defaults to 'ol-full-screen')CSS class name.
labelstring | Text | HTMLElement
(defaults to '\u2922')Text label to use for the button. Instead of text, also an element (e.g. a
spanelement) can be used.labelActivestring | 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
spanelement) can be used.activeClassNamestring
(defaults to className + '-true')CSS class name for the button when full-screen is active.
inactiveClassNamestring
(defaults to className + '-false')CSS class name for the button when full-screen is inactive.
tipLabelstring
(defaults to 'Toggle full-screen')Text label to use for the button tip.
keysboolean
(defaults to false)Full keyboard access.
targetHTMLElement | string | undefined Specify a target if you want the control to be rendered outside of the map's viewport.
sourceHTMLElement | string | undefined The element to be displayed fullscreen. When not provided, the element containing the map viewport will be displayed fullscreen.