comparison flys-client/src/main/webapp/WEB-INF/config.yaml @ 2496:7e077899e259

Added dependency to MapFish Print flys-client/trunk@4309 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 26 Apr 2012 11:32:57 +0000
parents
children 328aa273ef3b
comparison
equal deleted inserted replaced
2495:d0066abb025c 2496:7e077899e259
1 #===========================================================================
2 # allowed DPIs
3 #===========================================================================
4 dpis: [254, 190, 127, 56]
5
6 #===========================================================================
7 # allowed Formats
8 #===========================================================================
9 formats: ['*']
10
11 #===========================================================================
12 # the allowed scales
13 #===========================================================================
14 scales:
15 - 25000
16 - 50000
17 - 100000
18 - 200000
19 - 500000
20 - 1000000
21 - 2000000
22 - 4000000
23
24 outputFilename: 'pigma-${date}.pdf'
25
26 #===========================================================================
27 # the list of allowed hosts
28 #===========================================================================
29 hosts:
30 - !localMatch
31 dummy: true
32 - !ipMatch
33 ip: www.camptocamp.org
34 - !dnsMatch
35 host: labs.metacarta.com
36 port: 80
37 - !dnsMatch
38 host: terraservice.net
39 port: 80
40 - !dnsMatch
41 host: tile.openstreetmap.org
42 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
54 layouts:
55 #===========================================================================
56 A4 portrait:
57 #===========================================================================
58 metaData:
59 title: '${title}'
60 author: 'MapFish print module'
61 subject: 'Simple layout'
62 keywords: 'map,print'
63 creator: 'MapFish'
64
65 titlePage:
66 pageSize: A4
67 items:
68 - !text
69 spacingAfter: 150
70 - !text
71 font: Helvetica
72 fontSize: 40
73 spacingAfter: 100
74 align: center
75 text: '${title}'
76 - !image
77 maxWidth: 160
78 maxHeight: 160
79 spacingAfter: 100
80 align: center
81 url: http://trac.mapfish.org/trac/mapfish/attachment/ticket/3/logo_v8_sphere.svg?format=raw
82 - !image
83 maxWidth: 160
84 maxHeight: 160
85 spacingAfter: 100
86 align: center
87 url: 'file://${configDir}/logo-camptocamp-transparent.png'
88 - !text
89 font: Helvetica
90 fontSize: 14
91 align: left
92 text: |
93 Two layers are asked by the client:
94 - a base layer from Metacarta
95 - a transparent layer from Camptocamp.org (routes)
96 .
97 Some text is added over the map, just to demonstrate the absolute positionning.
98 footer: &commonFooter
99 height: 30
100 items:
101 - !columns
102 config:
103 cells:
104 - paddingBottom: 5
105 items:
106 - !image
107 maxWidth: 40
108 backgroundColor: #FF0000
109 align: left
110 url: '${configDir}/small-logo-camptocamp.png'
111 - !text
112 backgroundColor: #FF0000
113 text: ©Camptocamp SA
114 - !text
115 align: right
116 text: 'Page ${pageNum}'
117
118 #-------------------------------------------------------------------------
119 mainPage:
120 pageSize: A4
121 rotation: true
122 header:
123 height: 50
124 items:
125 - !text
126 font: Helvetica
127 fontSize: 30
128 align: right
129 text: '${mapTitle}'
130 items:
131 - !map
132 spacingAfter: 30
133 width: 440
134 height: 483
135 - !columns
136 # columns can have an absolute position. In that case, they need the 3 following fields:
137 absoluteX: 410
138 absoluteY: 310
139 width: 100
140 items:
141 - !scalebar
142 type: bar
143 maxSize: 100
144 barBgColor: white
145 fontSize: 8
146 align: right
147 - !text
148 text: '${comment}'
149 spacingAfter: 30
150 - !attributes
151 source: data
152 spacingAfter: 30
153 columnDefs:
154 id:
155 columnWeight: 2
156 header: !text
157 text: ID
158 backgroundColor: #A0A0A0
159 cell: !text
160 text: '${id}'
161 name:
162 columnWeight: 5
163 header: !text
164 text: Name
165 backgroundColor: #A0A0A0
166 cell: !columns
167 config:
168 cells:
169 - backgroundColor: '${nameBackgroundColor}'
170 borderWidth: 1
171 borderColor: '${nameBorderColor}'
172 items:
173 - !text
174 text: '${name}'
175 icon:
176 columnWeight: 2
177 header: !text
178 text: Symbol
179 backgroundColor: #A0A0A0
180 cell: !image
181 align: center
182 maxWidth: 15
183 maxHeight: 15
184 url: 'http://www.mapfish.org/svn/mapfish/framework/client/trunk/mfbase/mapfish/img/${icon}.png'
185 - !text
186 font: Helvetica
187 fontSize: 9
188 align: right
189 text: '1:${scale} ${now MM.dd.yyyy}'
190 footer: *commonFooter

http://dive4elements.wald.intevation.org