Constructor
new BaseMap(itownsView, baseMapLayersConfigs, appExtent)
Manages multiple WMS sources used as Itowns ColoLayer for background
Parameters:
Name | Type | Description |
---|---|---|
itownsView | itowns. | An ItownsView. |
baseMapLayersConfigs | Array.<object> | The baseMapLayersConfigs config |
appExtent | itowns. | The extent used to set up the layers |
Classes
Members
baseMapLayersConfigs :object
Type:
- object
domElement :HTMLElement
Type:
- HTMLElement
itownsView :itowns.View
Type:
- itowns.
View
Methods
changeVisibleLayer(layerID)
It makes the layer with the given ID visible and hides all the other layers
Parameters:
Name | Type | Description |
---|---|---|
layerID | string | the id of the layer to be displayed |
createLayers(appExtent)
Create a WMSSource and an Itowns ColorLayer from each baseMapLayer. The first added is visible.
Parameters:
Name | Type | Description |
---|---|---|
appExtent | itowns. | application extent |
displayLayersImage()
Display in the widget an image of the Layer, referenced in the field layer.id. It can either be an external URL or an image in the asset folder