PrintClient is still under construction. For now WGS84 is not supported.
Also see Button for inherited configuration options.
target: map # id of a "map" element (if yml configuration - string 'map', if database configuration - id of a "map" element)
autoOpen: false # true/false open when application is started, default: false
print_directly: true # true/false must be true for now
templates:
a4portrait: # template name, template file name without file extension (Mapbender is looking for file a4portrait.odg an a4portrait.pdf), Template files are located at app/Resources/MapbenderPrintBundle
label: "A4 Portrait" # template label at dialog
format: a4 # format (a4,a3,...) has to be defined
a4landscape: # template name, tamplate file name without file extension
label: "A4 Landscape" # template label at dialog
format: a4 # format
scales: [5000, 10000, 25000] # define scales to choose from selectbox or if empty free scale can be defined in a textfield
quality_levels: # define quality levels in dpi
72: draft # 72 - dpi value, draft - label
288: high quality # 288 - dpi value, draft - label
rotatable: true # true/false use true for rotation
optional_fields: # define optional fields (example title-field)
title: # name of the optional fields
label: Title # Label of the optional field
type: text # type of the optional field
options: #
required: true # true or false
None.
northarrow The North arrow image is located at images/. you can replace the north arrow image an use a different image as northarrow.
print templates You find the print templates at app/Resources/MapbenderPrintBundle/templates/. Create your own print template to provide an individual output for your application.
To create an individual print template use an existing print template odg-file or create a new Libre Office Draw file. Your template can have fixed objects like your logo, copyright or print information. In addition you have to create a layer for the dynamic elements like map, northarrow, scale, date and optional fields. The dynamic layer is an additional non printable layer in your Libre Office Draw file. Add this layer with Menu -> Add -> Layer -> define a name for the layer and choose the option not printable.
Define areas for the map, northarrow, scale, date and optional fields. The objects have to have names like map, scale, date, title (definition through the context menu).
Export the template to pdf under the same name as the odg file. Use the name without extension in your print yml-definition.
The print script will read the information (position, size, font size, alignment) from the odg file and will also use the pdf with the fixed objects to generate the new pdf.