new cercalia.Control.LayerSwitcher(options)
Name | Type | Description |
---|---|---|
options |
cercaliax.Control.LayerSwitcherOptions |
Extends
Methods
-
addBaseLayer(name, layer, projectionCode, logoUrl)
-
Name Type Description name
string layer
cercalia.WMS | ol.layer.Layer projectionCode
string | undefined optional If you don't include a projection code, the API will use the default projection: EPSG:3857
logoUrl
string | undefined optional Map copyright image URL
-
getClass(){string} inherited
-
Returns:
class
-
getElement(){HTMLElement} inherited
-
Obtain the control DOM element
Returns:
DOM Element
-
getElementList(){HTMLElement}
-
Returns the menú (list) HTML element
-
getName(){string} inherited
-
Returns the control name
Returns:
Control name
-
hide() inherited
-
Hide the control
-
setBaseLayer(name)
-
Change base layer who has been added before in this control using
addBaseLayer
function.Name Type Description name
string -
show() inherited
-
Shows the control