new GoFullScreen(idMap, map)
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 callBackfunction 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 callBackfunction The function to call when the fullscreen mode is exited.
