Other settings¶
attributeAlias¶
Key-value pairs to swap an attribute name for an alias. Used with the default featureinfo template.
Example attributeAlias¶
clusterOptions¶
Can also be set on layer or source level.
| Property | Type | Description |
|---|---|---|
clusterDistance |
number | The distance in pixels within which features will be clustered. Default is 60. |
clusterMaxZoom |
number | The zoom level where the features no longer will be clustered. Default is the last zoom level. |
Example clusterOptions¶
tileGridOptions¶
| Property | Type | Description |
|---|---|---|
alignBottomLeft |
boolean | Whether to align grid to top or bottom left corner. Default is true. |
extent |
array | Extent for the tilegrid. Used to calculate the tiles position. If omitted maps extent is used. |
minZoom |
number | Minimum zoom level. Defaults to 0. |
resolutions |
array | Resolutions for the tilegrid. If omitted maps resolutions are used. |
tileSize |
number or array | Size of tiles in the tileGrid. Default is [256,256] |
origin |
array | If origin is set it is used instead of top/bottom left coordinate of the extent. Optional |
Example tileGridOptions¶
layerParams¶
Set of parameters to add to a layer configuration. If a setting is present in both layerParam and the layer itself, the layer setting will win.
Example layerParams¶
"layerParams": {
"default": {
"group": "root",
"visible": true
}
},
"layers": [
{
"name": "origo-cities",
"title": "Origokommuner",
"source": "data/origo-cities-3857.geojson",
"style": "origo-logo",
"type": "GEOJSON",
"attributes": [
{
"name": "name"
}
],
"layerParam": "default"
}
palette¶
Array of colors used in the stylewindow when for instance styling features in the draw tool. Will replace the default colors.