Tobias Sauerwein
Camptocamp
MapFish Print
Web API / Security / Widgets
templates:
A4 Portrait: !template
reportTemplate: report.jrxml
attributes:
...
processors:
...
templates:
A4 Portrait: !template
reportTemplate: report.jrxml
attributes:
title: !string {}
map: !map
width: 555
height: 730
maxDpi: 600
scalebar: !scalebar
width: 230
height: 40
processors:
...
templates:
A4 Portrait: !template
reportTemplate: report.jrxml
attributes:
...
processors:
- !reportBuilder
directory: '.'
- !createMap
inputMapper: {map: map}
outputMapper: {mapSubReport: mapSubReport}
- !createScalebar {}
{
"layout": "A4 Portrait",
"outputFormat": "pdf",
"attributes": {
"title": "Sample Print",
"map": {
"projection": "EPSG:3857",
"dpi": 72,
"center": [957352.8034848921, 5936844.140278816],
"scale": 25000,
"layers": [
{ "type": "osm", "baseURL": "http://tile.abc.com"}
]
}
}
}
"[INTERSECTS(geometry, buffer(POLYGON (...), 2000))]": {
"symbolizers": [
{
"strokeColor": "green",
"strokeWidth": 2,
"type": "line"
}
]
},
CGXP Plugin: cgxp.plugins.Print
MapFish Print on GitHub:
github.com/mapfish/mapfish-print
This presentation on GitHub:
github.com/tsauerwein/talks_fossgis2015