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 ''. |
|