Class: Control

cercaliagl.control/Control


Cercalia Control base class.

new Control(options)

Name Type Description
options Object

Options

Subclasses

Methods

Returns cercalia Map object

Returns:
Cercalia map.

getClass(){string}

Get class name.

Returns:
Class name.

getElement(){Element}

Get control HTML Element

Returns:
HTML Element

getId(){string}

Get control id.

Returns:
Id.

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

Returns mapboxgl Map object

getName(){string|null}

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

Returns:
Class name.

Hide control.

Show control.