diff flys-client/src/main/webapp/WEB-INF/config.yaml @ 5622:b28a6d05e969

Add a new mechanism in mapfish print call to add arbitary data maps Data properties are identified by starting with mapfish-data and they are then split in info value pairs where info can be the description of the information and value the value of the information to be transported in the data map.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 09 Apr 2013 19:04:32 +0200
parents bbc85c8f330a
children 57803a199856
line wrap: on
line diff
--- a/flys-client/src/main/webapp/WEB-INF/config.yaml	Tue Apr 09 19:01:23 2013 +0200
+++ b/flys-client/src/main/webapp/WEB-INF/config.yaml	Tue Apr 09 19:04:32 2013 +0200
@@ -99,9 +99,9 @@
   A4 landscape:
   #===========================================================================
     metaData:
-      title: '${title}'
+      title: '${mapTitle}'
       author: 'Flusshydrologische Software'
-      subject: 'Kartendruck A4 Quer'
+      subject: 'Kartendruck'
       keywords: 'map,print'
       creator: 'd4e-river'
 
@@ -164,7 +164,7 @@
           width: 200
           items:
             - !legends
-              maxHeight: 0
+              maxHeight: 400
               maxWidth: 0
               maxIconHeight: 0
               inline: false
@@ -183,3 +183,38 @@
             borderWidthRight: 1
             borderWidthTop: 0
             borderWidthBottom: 1
+        # The Stamp
+        - !columns
+          absoluteX: 612
+          absoluteY: 200
+          width: 200
+          config:
+            borderWidthLeft: 1
+            borderWidthRight: 1
+            borderWidthTop: 1
+            borderWidthBottom: 1
+          items:
+            - !attributes
+              source: data
+              spacingAfter: 30
+              columnDefs:
+                info:
+                  columnWeight: 2
+                  header: !text
+                    text: Info
+                    backgroundColor: #A0A0A0
+                  cell: !text
+                    text: '${info}'
+                value:
+                  columnWeight: 5
+                  header: !text
+                    text: value
+                    backgroundColor: #A0A0A0
+                  cell: !columns
+                    config:
+                      cells:
+                        - borderWidth: 1
+                    items:
+                      - !text
+                        text: '${value}'
+

http://dive4elements.wald.intevation.org