Methods
(static) getPrintLayersParameters(mapId, selectedBaseLayer, rootMapGroup) → {object}
Build the WMS parameters describing the layers currently displayed in the map: the selected base layer and the visible layers in their drawing order, with their styles, opacities, filter and selection tokens and legend options. They let QGIS Server print what the user sees instead of the project default.
Parameters:
| Name | Type | Description |
|---|---|---|
mapId |
string | Id of the layout map the layers parameters are for |
selectedBaseLayer |
BaseLayerState | The selected base layer state |
rootMapGroup |
MapRootState | The root map group state |
- Source:
Returns:
The WMS parameters
- Type
- object
(static) getPrintMainMapId(template) → {string}
Get the id of the main map of a print template, as used to prefix map parameters in WMS GetPrint and GetPrintAtlas requests (map0, map1…). Only one main map with an optional overview map is supported.
Parameters:
| Name | Type | Description |
|---|---|---|
template |
object | Print template from the project configuration |
- Source:
Returns:
The main map id
- Type
- string