comparison flys-client/src/main/webapp/WEB-INF/config.yaml @ 2504:425bc486a40f

Generate map print spec dynamically from artifact flys-client/trunk@4349 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 04 May 2012 18:31:03 +0000
parents 328aa273ef3b
children 4aa70825bde1
comparison
equal deleted inserted replaced
2503:e3bd1f412421 2504:425bc486a40f
19 - 500000 19 - 500000
20 - 1000000 20 - 1000000
21 - 2000000 21 - 2000000
22 - 4000000 22 - 4000000
23 23
24 outputFilename: 'pigma-${date}.pdf' 24 outputFilename: 'flys-${date}.pdf'
25 25
26 #=========================================================================== 26 #===========================================================================
27 # the list of allowed hosts 27 # the list of allowed hosts
28 #=========================================================================== 28 #===========================================================================
29 hosts: 29 hosts:
30 - !localMatch 30 - !localMatch
31 dummy: true 31 dummy: true
32 - !ipMatch
33 ip: www.camptocamp.org
34 - !dnsMatch 32 - !dnsMatch
35 host: labs.metacarta.com 33 host: wsvmapserv.wsv.bund.de
36 port: 80
37 - !dnsMatch
38 host: terraservice.net
39 port: 80 34 port: 80
40 - !dnsMatch 35 - !dnsMatch
41 host: tile.openstreetmap.org 36 host: tile.openstreetmap.org
42 port: 80 37 port: 80
43
44 security:
45 - !basicAuth
46 matcher: !dnsMatch
47 host: c2cpc61.camptocamp.com
48 port:80
49 username: xyz
50 password: yxz
51 preemptive: true
52
53 38
54 layouts: 39 layouts:
55 #=========================================================================== 40 #===========================================================================
56 A4 portrait: 41 A4 portrait:
57 #=========================================================================== 42 #===========================================================================
60 author: 'MapFish print module' 45 author: 'MapFish print module'
61 subject: 'Simple layout' 46 subject: 'Simple layout'
62 keywords: 'map,print' 47 keywords: 'map,print'
63 creator: 'MapFish' 48 creator: 'MapFish'
64 49
65 titlePage: 50 # titlePage:
66 pageSize: A4 51 # pageSize: A4
67 items: 52 # items:
68 - !text 53 # - !text
69 spacingAfter: 150 54 # spacingAfter: 150
70 - !text 55 # - !text
71 font: Helvetica 56 # font: Helvetica
72 fontSize: 40 57 # fontSize: 40
73 spacingAfter: 100 58 # spacingAfter: 100
74 align: center 59 # align: center
75 text: '${title}' 60 # text: '${title}'
76 - !image 61 # - !image
77 maxWidth: 160 62 # maxWidth: 160
78 maxHeight: 160 63 # maxHeight: 160
79 spacingAfter: 100 64 # spacingAfter: 100
80 align: center 65 # align: center
81 url: http://trac.mapfish.org/trac/mapfish/attachment/ticket/3/logo_v8_sphere.svg?format=raw 66 # url: http://trac.mapfish.org/trac/mapfish/attachment/ticket/3/logo_v8_sphere.svg?format=raw
82 - !image 67 # - !image
83 maxWidth: 160 68 # maxWidth: 160
84 maxHeight: 160 69 # maxHeight: 160
85 spacingAfter: 100 70 # spacingAfter: 100
86 align: center 71 # align: center
87 url: 'file://${configDir}/../images/flys_logo.gif' 72 # url: 'file://${configDir}/../images/flys_logo.gif'
88 - !text 73 # - !text
89 font: Helvetica 74 # font: Helvetica
90 fontSize: 14 75 # fontSize: 14
91 align: left 76 # align: left
92 text: | 77 # text: |
93 Two layers are asked by the client: 78 # Two layers are asked by the client:
94 - a base layer from Metacarta 79 # - a base layer from Metacarta
95 - a transparent layer from Camptocamp.org (routes) 80 # - a transparent layer from Camptocamp.org (routes)
96 . 81 # .
97 Some text is added over the map, just to demonstrate the absolute positionning. 82 # Some text is added over the map, just to demonstrate the absolute positionning.
98 footer: &commonFooter 83 # footer: &commonFooter
99 height: 30 84 # height: 30
100 items: 85 # items:
101 - !columns 86 # - !columns
102 config: 87 # config:
103 cells: 88 # cells:
104 - paddingBottom: 5 89 # - paddingBottom: 5
105 items: 90 # items:
106 - !image 91 # - !image
107 maxWidth: 40 92 # maxWidth: 40
108 backgroundColor: #FF0000 93 # backgroundColor: #FF0000
109 align: left 94 # align: left
110 url: '${configDir}/../images/properties.gif' 95 # url: '${configDir}/../images/properties.gif'
111 - !text 96 # - !text
112 backgroundColor: #FF0000 97 # backgroundColor: #FF0000
113 text: ©Camptocamp SA 98 # text: ©Camptocamp SA
114 - !text 99 # - !text
115 align: right 100 # align: right
116 text: 'Page ${pageNum}' 101 # text: 'Page ${pageNum}'
117 102
118 #------------------------------------------------------------------------- 103 #-------------------------------------------------------------------------
119 mainPage: 104 mainPage:
120 pageSize: A4 105 pageSize: A4
121 rotation: true 106 rotation: true

http://dive4elements.wald.intevation.org