diff flys-client/src/main/webapp/WEB-INF/config.yaml @ 4965:8af500d62098

Editing Map print config.
author Christian Lins <christian.lins@intevation.de>
date Tue, 05 Feb 2013 13:57:08 +0100
parents 95e23bcf6a50
children 555fa2774d3c
line wrap: on
line diff
--- a/flys-client/src/main/webapp/WEB-INF/config.yaml	Tue Feb 05 12:24:57 2013 +0100
+++ b/flys-client/src/main/webapp/WEB-INF/config.yaml	Tue Feb 05 13:57:08 2013 +0100
@@ -42,8 +42,12 @@
   - !dnsMatch
     host: www.pegelonline.wsv.de
     port: 80
+  # Catch all
+  #- !dnsMatch
+  #  host: #regex that catches host plus path
+  #  port: 80
   - !dnsMatch
-    host: osm.wheregroup.com
+    host: osm.intevation.de
     port: 80
 
 layouts:
@@ -52,63 +56,10 @@
   #===========================================================================
     metaData:
       title: '${title}'
-      author: 'MapFish print module'
-      subject: 'Simple layout'
+      author: 'Flys'
+      subject: 'Kartendruck A4 Portrait'
       keywords: 'map,print'
-      creator: 'MapFish'
-
-#    titlePage:
-#      pageSize: A4
-#      items:
-#        - !text
-#          spacingAfter: 150
-#        - !text
-#          font: Helvetica
-#          fontSize: 40
-#          spacingAfter: 100
-#          align: center
-#          text: '${title}'
-#        - !image
-#          maxWidth: 160
-#          maxHeight: 160
-#          spacingAfter: 100
-#          align: center
-#          url: http://trac.mapfish.org/trac/mapfish/attachment/ticket/3/logo_v8_sphere.svg?format=raw
-#        - !image
-#          maxWidth: 160
-#          maxHeight: 160
-#          spacingAfter: 100
-#          align: center
-#          url: 'file://${configDir}/../images/flys_logo.gif'
-#        - !text
-#          font: Helvetica
-#          fontSize: 14
-#          align: left
-#          text: |
-#            Two layers are asked by the client:
-#            - a base layer from Metacarta
-#            - a transparent layer from Camptocamp.org (routes)
-#            .
-#            Some text is added over the map, just to demonstrate the absolute positionning.
-#      footer: &commonFooter
-#        height: 30
-#        items:
-#          - !columns
-#            config:
-#              cells:
-#                - paddingBottom: 5
-#            items:
-#              - !image
-#                maxWidth: 40
-#                backgroundColor: #FF0000
-#                align: left
-#                url: '${configDir}/../images/properties.gif'
-#              - !text
-#                backgroundColor: #FF0000
-#                text: ©Camptocamp SA
-#              - !text
-#                align: right
-#                text: 'Page ${pageNum}'
+      creator: 'd4e-river'
 
     #-------------------------------------------------------------------------
     mainPage:
@@ -121,7 +72,6 @@
             align: left
             maxWidth: 60
             maxHeight: 60
-            # Fixme: Replace with local file or self-hosted link...
             url: '${configDir}/../images/FLYS_Logo.png'
       items:
         - !text
@@ -153,6 +103,61 @@
           maxIconWidth: 32
           maxIconHeight: 32
       footer: *commonFooter
+      
+
+  #===========================================================================
+  A4 landscape:
+  #===========================================================================
+    metaData:
+      title: '${title}'
+      author: 'Flys'
+      subject: 'Kartendruck A4 Quer'
+      keywords: 'map,print'
+      creator: 'd4e-river'
+
+    #-------------------------------------------------------------------------
+    mainPage:
+      pageSize: A4
+      rotation: false
+      header:
+        height: 50
+        items:
+          - !image
+            align: left
+            maxWidth: 60
+            maxHeight: 60
+            url: '${configDir}/../images/FLYS_Logo.png'
+      items:
+        - !text
+            font: Helvetica
+            fontSize: 30
+            align: right
+            text: '${mapTitle}'
+            spacingAfter: 30
+        - !map
+          spacingAfter: 30
+          width: 440
+          height: 483
+        - !scalebar
+          type: bar
+          maxSize: 100
+          barBgColor: white
+          fontSize: 8
+          align: right
+        - !text
+          text: '${comment}'
+          spacingAfter: 30
+        - !text
+          font: Helvetica
+          fontSize: 9
+          align: right
+          text: '1:${scale} ${now MM.dd.yyyy}'
+        - !legends
+          align: left
+          maxIconWidth: 32
+          maxIconHeight: 32
+      footer: *commonFooter
+
 
   #===========================================================================
   A0 portrait:

http://dive4elements.wald.intevation.org