Class: GoFullScreen

GoFullScreen

Represents a fullscreen control for the map.

This class allows for the addition of a fullscreen control to the map, enabling users to toggle fullscreen mode. It integrates with the OpenLayers library and provides methods to handle fullscreen events.

new GoFullScreen(idMap, map)

Interactions/Views/interact/FullScreen/index.ts, line 10

Creates an instance of the GoFullScreen control.

Name Type Description
idMap string

The ID of the map to which the fullscreen control will be added.

map GoMap

The GoMap instance to which the fullscreen control is applied.

Methods

destroy(){void}

Interactions/Views/interact/FullScreen/index.ts, line 61

Removes the fullscreen control from the map.

Returns:
Type Description
void

getElement(){HTMLElement}

Interactions/Views/interact/FullScreen/index.ts, line 88

Returns the HTML element of the fullscreen control.

Returns:
Type Description
HTMLElement The HTML element of the fullscreen button.

onEnter(callBack)

Interactions/Views/interact/FullScreen/index.ts, line 70

Registers a callback function to be called when entering fullscreen mode.

Name Type Description
callBack function

The function to call when the fullscreen mode is entered.

onExit(callBack)

Interactions/Views/interact/FullScreen/index.ts, line 79

Registers a callback function to be called when exiting fullscreen mode.

Name Type Description
callBack function

The function to call when the fullscreen mode is exited.