BaseMap

It manages multiple WMS sources used as Itowns ColoLayer for background.

Constructor

new BaseMap(itownsView, baseMapLayersConfigs, appExtent)

Manages multiple WMS sources used as Itowns ColoLayer for background

Parameters:
NameTypeDescription
itownsViewitowns.View

An ItownsView.

baseMapLayersConfigsArray.<object>

The baseMapLayersConfigs config

appExtentitowns.Extent

The extent used to set up the layers

Classes

BaseMap

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:
NameTypeDescription
layerIDstring

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:
NameTypeDescription
appExtentitowns.Extent

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