Class: ToolSwitcher

webgis4u/ol/control/HtmlTemplate/ToolSwitcher~ToolSwitcher()

Class to provide interaction with the tool switcher

Constructor

new ToolSwitcher()

Source:

Members

activeTool :string|null

Type:
  • string | null
Source:

closeButton :HTMLElement|null

Type:
  • HTMLElement | null
Source:

toolsSwitcherContent :HTMLElement|null

Type:
  • HTMLElement | null
Source:

toolsSwitcherSlider :HTMLElement|null

Type:
  • HTMLElement | null
Source:

Methods

closeMenu()

Closes the menu
Source:

init(mapTargetElement)

Initialize the tool switcher
Parameters:
Name Type Description
mapTargetElement HTMLElement The html element for the map
Source:

updateControlsVisibility(options)

Updates the controls visibility
Parameters:
Name Type Description
options object The options
Properties
Name Type Description
size Array.<number> The size of the map
Source: