OpenLayers. Control. LayerSwitcher

The LayerSwitcher control displays a table of contents for the map.  This allows the user interface to switch between BaseLasyers and to show or hide Overlays.  By default the switcher is shown minimized on the right edge of the map, the user may expand it by clicking on the handle.

To create the LayerSwitcher outside of the map, pass the Id of a html div as the first argument to the constructor.

Inherits from

Summary
OpenLayers. Control. LayerSwitcherThe LayerSwitcher control displays a table of contents for the map.
Properties
ascending{Boolean}
Constructor
OpenLayers. Control. LayerSwitcher
Functions
destroy

Properties

ascending

{Boolean}

Constructor

OpenLayers. Control. LayerSwitcher

Parameters

options{Object}

Functions

destroy

destroy: function()
destroy: function()
Controls affect the display or behavior of the map.
Close