[Dive4elements-commits] [PATCH] Map printing in landscape mode. Layout still buggy
Wald Commits
scm-commit at wald.intevation.org
Thu Feb 7 22:43:36 CET 2013
# HG changeset patch
# User Christian Lins <christian.lins at intevation.de>
# Date 1360273410 -3600
# Node ID 555fa2774d3c444691e96e304cf7e4b464ea9185
# Parent d76705b68e73e40ea6e27a79258e330c0b224318
Map printing in landscape mode. Layout still buggy.
diff -r d76705b68e73 -r 555fa2774d3c flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java
--- a/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java Wed Feb 06 09:57:27 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java Thu Feb 07 22:43:30 2013 +0100
@@ -128,7 +128,7 @@
Map<String, Object> pageSpecs
) {
Map<String, Object> spec = new LinkedHashMap<String, Object>();
- spec.put("layout", "A4 portrait");
+ spec.put("layout", "A4 landscape");
spec.put("pageSize", "A4");
spec.put("landscape", "false");
spec.put("title", "FLYS Druck");
diff -r d76705b68e73 -r 555fa2774d3c flys-client/src/main/webapp/WEB-INF/config.yaml
--- a/flys-client/src/main/webapp/WEB-INF/config.yaml Wed Feb 06 09:57:27 2013 +0100
+++ b/flys-client/src/main/webapp/WEB-INF/config.yaml Thu Feb 07 22:43:30 2013 +0100
@@ -1,7 +1,7 @@
#===========================================================================
# allowed DPIs
#===========================================================================
-dpis: [254, 190, 127, 56]
+dpis: [254, 190, 127, 72, 56]
#===========================================================================
# allowed Formats
@@ -42,6 +42,9 @@
- !dnsMatch
host: www.pegelonline.wsv.de
port: 80
+ - !dnsMatch
+ host: geo4.service24.rlp.de
+ port: 80
# Catch all
#- !dnsMatch
# host: #regex that catches host plus path
@@ -64,7 +67,7 @@
#-------------------------------------------------------------------------
mainPage:
pageSize: A4
- rotation: true
+ landscape: false
header:
height: 50
items:
@@ -118,7 +121,7 @@
#-------------------------------------------------------------------------
mainPage:
pageSize: A4
- rotation: false
+ landscape: true
header:
height: 50
items:
@@ -135,9 +138,12 @@
text: '${mapTitle}'
spacingAfter: 30
- !map
- spacingAfter: 30
- width: 440
- height: 483
+ absoluteX: 45
+ absoluteY: 510
+ #spacingAfter: 30
+ width: 540
+ height: 480
+ align: left
- !scalebar
type: bar
maxSize: 100
@@ -153,9 +159,16 @@
align: right
text: '1:${scale} ${now MM.dd.yyyy}'
- !legends
- align: left
+ align: right
maxIconWidth: 32
maxIconHeight: 32
+# - !columns
+# widths: [500, 200]
+# items:
+# - !map
+# width: 500
+# height: 500
+# - !legends
footer: *commonFooter
More information about the Dive4elements-commits
mailing list