I ended up using only one report, with 2 createmap processors
config.yaml
templates:
report: !template
reportTemplate: report.jrxml
outputFilename: report-${yyyyMMdd_hhmmss}
attributes:
...
map: !map
maxDpi: 400
width: 499
height: 657
...
datasource: !datasource
attributes:
...
map2: !map
maxDpi: 254
width: 220
height: 332
...
scalebar: !scalebar
width: 126
height: 47
northArrow: !northArrow
size: 50
default:
graphic: "images/north.svg"
processors:
- !reportBuilder # compile all reports in current directory
directory: '.'
- !createMap {}
- !createScalebar {}
- !createNorthArrow {}
- !createDataSource
processors:
- !createMap
inputMapper:
map2: map
tableData: jrDataSource
In report.jrxml
...
<parameter name="mapSubReport" class="java.lang.String"/>
<field name="mapSubReport" class="java.lang.String"/>
...