# 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

- OpenLayers.Control

Summary

OpenLayers.Control.LayerSwitcher | The LayerSwitcher control displays a table of contents for the map.
Properties |
roundedCorner | {Boolean} If true the Rico library is used for rounding the corners of the layer switcher div, defaults to false.
roundedCornerColor | {String} The color of the rounded corners, only applies if roundedCorner is true, defaults to “darkblue”.
ascending | {Boolean}
Constructor |
OpenLayers.Control.LayerSwitcher |
Functions |
destroy |

### Properties

### roundedCorner

{Boolean} If true the Rico library is used for rounding the corners of the layer switcher div, defaults to false. Deprecated. Use CSS3’s border-radius instead. If this option is set to true the Rico/Corner.js script must be loaded in the page, and therefore listed in the build profile.

### roundedCornerColor

{String} The color of the rounded corners, only applies if roundedCorner is true, defaults to “darkblue”.

### 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