new cercalia.Control.LayerSwitcher(options)
| Name | Type | Description | 
|---|---|---|
| options | cercaliax.Control.LayerSwitcherOptions | 
Extends
Methods
- 
    addBaseLayer(name, layer, projectionCode, logoUrl)
- 
    
    
    
    
    
    
        
Name Type Description namestring layercercalia.WMS | ol.layer.Layer projectionCodestring | undefined optional If you don't include a projection code, the API will use the default projection: EPSG:3857 logoUrlstring | 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 addBaseLayerfunction.Name Type Description namestring 
- 
    show() inherited
- 
    
    Shows the control 
