changeset 4969:555fa2774d3c

Map printing in landscape mode. Layout still buggy.
author Christian Lins <christian.lins@intevation.de>
date Thu, 07 Feb 2013 22:43:30 +0100
parents d76705b68e73
children 5a993c86cda0
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, 21 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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");
--- 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
 
 

http://dive4elements.wald.intevation.org