-
Name Type Description options
XYZ options
Name Type Description layerId
string Layer id.
label
string Layer label. If not specified it uses
layerId
value. This value is visible inmodule:cercaliagl/control/LayerSwitcher~LayerSwitcher
.attribution
string Attribution HTML for this layer. This value is visible in
module:cercaliagl/control/Logo~Logo
.url
string | Array.<string> URL or an array of urls templates. Must include
{x}
,{y}
and{z}
.tilesize
number Tile size in pixels. Default
256
.minzoom
number Minimum zoom level. Default
0
.maxzoom
number Maximum zoom level. Default
20
.
Methods
-
Get attributon
Returns:
Attribution
-
Map label used in layer switcher.
Returns:
Name
-
Get layer id
Returns:
Layer id