Constructor
new LayerSwitcher(opt_options)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt_options |
Object | Control options, extends Properties
|
LayerSwitcher control. Lists all overlay layers with optional legend images together with base maps. Extends ol-layerswitcher~LayerSwitcher adding legend images.
If tipLabel or collapseTipLabel options are unset, the iShare server
version is >= v6.0.9, your langauge file contains
oli.layerSwitcher.showButtonTitle or oli.layerSwitcher.showButtonTitle
and the lang UI text lookup is available when this control is created then
the entries from the language file will be used. Otherwise the default
English values will be used. The lang lookup is automatically loaded when
creating a LiteMap and is populated once the load event is dispatched.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt_options |
Object | Control options, extends Properties
|