Class: Clean

cercalia.Control.Clean

This control let you clean all the elements painted on the map. This control doesn't clean other markers or features added with other controls, like cercalia.MapControls.Traffic, cercalia.MapControls.Meteo ...

new cercalia.Control.Clean()

Extends

Methods

Executes the control action. Cleans the map overlays

getClass(){string} inherited

Returns:
class

getElement(){HTMLElement} inherited

Obtain the control DOM element

Returns:
DOM Element

Returns the control name

Returns:
Control name

Hide the control

setTopBar(idTopBar)

Create the button in the tools topbar

Name Type Description
idTopBar string

Div element ID where the control will be embedded

Shows the control