-
Name Type Description options
Options
Name Type Description layerId
string Layer id
attribution
string Attribution HTML for this layer. This value is visible in
module:cercaliagl/control/Logo~Logo
.map
module:cercaliagl/Map~Map Map.
url
string | Array.<string> URL or arary of URLS of WMS Service.
tileSize
number Tile size in pixels
params
module:cercaliagl/layer/WMS~WMSParameters
Methods
-
Get attribution string HTML
-
Map label used in layer switcher.
Returns:
Name
-
Get Layer id.
-
Get layer params
-
Refresh WMS
-
Update WMS parameters and refresh WMS images loaded.
Name Type Description params
Params
Name Type Description service
string Service. Default
WMS
.version
string WMS Version. Default
1.1.1
.request
string Request. Default
GetMap
format
string Format. Default
image/png
.projection
string Projection. Default
EPSG:3857
.srs
string SRS. Default:
EPSG:3857
.transparent
string Transparent. Default
true
.layers
string Layers. Default
default
.width
string Width in pixels. Default:
1024
.height
string Height in pixels. Default `1024'
startParamsCharacter
string Start params character. Default
&
.