You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/client/plugins/Print.jsx
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,7 @@ import Portal from '../components/misc/Portal';
119
119
* @prop {string[]} cfg.excludeLayersFromLegend list of layer names e.g. ["workspace:layerName"] to exclude from printed document
120
120
* @prop {object} cfg.mergeableParams object to pass to mapfish-print v2 to merge params, example here https://github.com/mapfish/mapfish-print-v2/blob/main/docs/protocol.rst#printpdf
121
121
* @prop {object[]} cfg.projectionOptions.projections array of available projections, e.g. [{"name": "EPSG:3857", "value": "EPSG:3857"}]
122
+
* @prop {string} cfg.projectionOptions.defaultProjection default projection when the print dialog opens; should be one of the values from projections list
122
123
* @prop {object} cfg.overlayLayersOptions options for overlay layers
123
124
* @prop {boolean} cfg.overlayLayersOptions.enabled if true a checkbox will be shown to exclude or include overlay layers to the print
124
125
*
@@ -191,7 +192,7 @@ import Portal from '../components/misc/Portal';
191
192
* }
192
193
*
193
194
* @example
194
-
* // enable custom projections for printing
195
+
* // enable custom projections for printing; defaultProjection must be one of the values from projections list
0 commit comments