Mercurial > dive4elements > river
changeset 4525:f8ed8114f415
Fix MapFish print config and add FLYS logo to print output (DIN A4 only).
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 23:48:49 +0100 |
parents | be9e28cff0c4 |
children | 1f38fa929986 4c2c1d4cf777 |
files | flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java flys-client/src/main/webapp/WEB-INF/config.yaml |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java Wed Nov 14 17:24:55 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java Wed Nov 14 23:48:49 2012 +0100 @@ -128,6 +128,7 @@ Map<String, Object> pageSpecs ) { Map<String, Object> spec = new LinkedHashMap<String, Object>(); + spec.put("layout", "A4 portrait"); spec.put("pageSize", "A4"); spec.put("landscape", "false"); spec.put("title", "FLYS Druck");
--- a/flys-client/src/main/webapp/WEB-INF/config.yaml Wed Nov 14 17:24:55 2012 +0100 +++ b/flys-client/src/main/webapp/WEB-INF/config.yaml Wed Nov 14 23:48:49 2012 +0100 @@ -119,14 +119,17 @@ items: - !image align: left + maxWidth: 60 + maxHeight: 60 # Fixme: Replace with local file or self-hosted link... url: http://ubuntuone.com/7hTz3YznHfMciAUj6FSle4 - - !text + items: + - !text font: Helvetica fontSize: 30 align: right text: '${mapTitle}' - items: + spacingAfter: 30 - !map spacingAfter: 30 width: 440