Class: CustomControl

cercalia.Control.CustomControl

new cercalia.Control.CustomControl(option)

Name Type Description
option

This class let you create a custom control in the tools topbar. You can add several controls. It's necessary specify a name for obtaining the control reference using the getControlsByName function of the cercalia.Map class.

Name Type Description
name string

Control name. Use it for obtaining this control using the function getControlsByName, cercalia.Map class

icon string | undefined optional

CSS class to define the icon.

click function

Function to execute on click the control.

tooltipText string | undefined optional

Tooltip. Default ''.

Extends

Methods

Returns:
class

Obtain the control DOM element

Returns:
DOM Element

Returns the control name

Returns:
Control name

Hide the control

Shows the control