Class: FullScreen

cercaliagl.control/FullScreen


Javascript ES5

const control = new cercaliagl.control.FullScreem();
map.addControl(control);

Class cercaliagl.control.FullScreen is used for internal purposes, but can be accessed throught methods.

Usage getting full screen control from map:

const map = new cercaliagl.Map({ target: 'map' });
const fullScreen = map.getControlByName(cercaliagl.control.MapControls.FULLSCREEN);
fullScreen.isEnable()

new FullScreen()

Extends

Methods

Returns cercalia Map object

Returns:
Cercalia map.

getClass(){string} inherited

Get class name.

Returns:
Class name.

getElement(){Element} inherited

Get control HTML Element

Returns:
HTML Element

Get control id.

Returns:
Id.

getMap(){module:maplibre-gl~Map} inherited

Returns mapboxgl Map object

getName(){string|null} inherited

Get control name. Null if control has not defined name.

Returns:
Class name.

Hide control.

isEnabled(){boolean}

Returns:
Is fullscreen enabled

Show control.

Toggle fullscreen