comparison flys-client/src/main/webapp/WEB-INF/config.yaml @ 5678:57803a199856

Update Layout and add basic UTF-8 support that is still broken for data values in the attributes table
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 12 Apr 2013 13:01:58 +0200
parents b28a6d05e969
children 37e4073dc0bb
comparison
equal deleted inserted replaced
5677:413798463dfe 5678:57803a199856
92 port: 80 92 port: 80
93 - !dnsMatch 93 - !dnsMatch
94 host: geoportal.bafg.de 94 host: geoportal.bafg.de
95 port: 80 95 port: 80
96 96
97 # We need a font with unicode support the defaults only
98 # have latin1
99 fonts:
100 - /usr/share/fonts/truetype/freefont/FreeSans.ttf
101
97 layouts: 102 layouts:
98 #=========================================================================== 103 #===========================================================================
99 A4 landscape: 104 A4 landscape:
100 #=========================================================================== 105 #===========================================================================
101 metaData: 106 metaData:
122 width: 592 127 width: 592
123 height: 555 128 height: 555
124 spacingAfter: 0 129 spacingAfter: 0
125 #Flys and BFG Logo 130 #Flys and BFG Logo
126 - !columns 131 - !columns
127 absoluteX: 747 132 absoluteX: 750
128 absoluteY: 100 133 absoluteY: 110
129 width: 60 134 width: 60
130 items: 135 items:
131 - !image 136 - !image
132 maxWidth: 60 137 maxWidth: 60
133 maxHeight: 60 138 maxHeight: 60
134 url: '${configDir}/../images/FLYS_Logo.png' 139 url: '${configDir}/../images/FLYS_Logo.png'
135 - !columns 140 - !columns
136 absoluteX: 732 141 absoluteX: 630
137 absoluteY: 160 142 absoluteY: 110
138 width: 90 143 width: 90
139 items: 144 items:
140 - !image 145 - !image
141 maxWidth: 90 146 maxWidth: 90
142 maxHeight: 60 147 maxHeight: 60
143 url: '${configDir}/../images/bfg_logo.gif' 148 url: '${configDir}/../images/bfg_logo.gif'
144 # Legend header, a bit hackish with the border 149 # Legend header, a bit hackish with the border
145 # but I don't know how to put two rows in a column and I don't want to 150 # but I don't know how to put two rows in a column and I don't want to
146 # use tables 151 # use tables
152 # - !columns
153 # absoluteX: 612
154 # absoluteY: 575
155 # width: 200
156 # items:
157 # - !text
158 # text: "Legende:"
159 # align: center
160 # config:
161 # borderWidthLeft: 1
162 # borderWidthRight: 1
163 # borderWidthTop: 1
164 # borderWidthBottom: 0
165 # Scalebar
166 - !columns
167 absoluteX: 620
168 absoluteY: 35
169 width: 200
170 items:
171 - !scalebar
172 type: bar
173 maxSize: 200
174 barSize: 5
175 barBgColor: white
176 fontSize: 8
177
178 # The legend
147 - !columns 179 - !columns
148 absoluteX: 612 180 absoluteX: 612
149 absoluteY: 575 181 absoluteY: 575
150 width: 200 182 width: 200
151 items: 183 items:
152 - !text
153 text: "Legende:"
154 align: center
155 config:
156 borderWidthLeft: 1
157 borderWidthRight: 1
158 borderWidthTop: 1
159 borderWidthBottom: 0
160 # The legend
161 - !columns
162 absoluteX: 612
163 absoluteY: 564
164 width: 200
165 items:
166 - !legends 184 - !legends
167 maxHeight: 400 185 maxHeight: 305
168 maxWidth: 0 186 maxWidth: 0
169 maxIconHeight: 0 187 maxIconHeight: 0
170 inline: false 188 inline: false
171 classIndentation: 10 189 classIndentation: 10
172 layerSpace: 5 190 layerSpace: 5
173 classSpace: 2 191 classSpace: 2
174 layerFont: Helvetica
175 layerFontSize: 0 192 layerFontSize: 0
176 classFont: Helvetica
177 classFontSize: 0 193 classFontSize: 0
178 fontEncoding: Cp1252 194 fontEncoding: Identity-H
195 classFont: FreeSans
196 layerFont: FreeSans
179 columnMargin: 2 197 columnMargin: 2
180 defaultScale: 0.7 198 defaultScale: 0.7
181 config: 199 config:
182 borderWidthLeft: 1 200 borderWidthLeft: 1
183 borderWidthRight: 1 201 borderWidthRight: 1
184 borderWidthTop: 0 202 borderWidthTop: 1
185 borderWidthBottom: 1 203 borderWidthBottom: 1
186 # The Stamp 204 # The Stamp
187 - !columns 205 - !columns
188 absoluteX: 612 206 absoluteX: 612
189 absoluteY: 200 207 absoluteY: 270
190 width: 200 208 width: 200
191 config: 209 config:
192 borderWidthLeft: 1 210 borderWidthLeft: 1
193 borderWidthRight: 1 211 borderWidthRight: 1
194 borderWidthTop: 1 212 borderWidthTop: 1
195 borderWidthBottom: 1 213 borderWidthBottom: 1
196 items: 214 items:
197 - !attributes 215 - !attributes
198 source: data 216 source: data
199 spacingAfter: 30 217 spacingAfter: 0
200 columnDefs: 218 columnDefs:
201 info: 219 info:
202 columnWeight: 2 220 columnWeight: 7
203 header: !text 221 header: !text
204 text: Info 222 text: info
205 backgroundColor: #A0A0A0 223 fontSize: 0
206 cell: !text
207 text: '${info}'
208 value:
209 columnWeight: 5
210 header: !text
211 text: value
212 backgroundColor: #A0A0A0
213 cell: !columns 224 cell: !columns
214 config: 225 config:
215 cells: 226 cells:
216 - borderWidth: 1 227 - borderWidth: 1
228 padding: 5
229 items:
230 - !text
231 text: '${info}'
232 fontSize: 10
233 backgroundColor: #FFFFFF
234 value:
235 columnWeight: 15
236 header: !text
237 text: value
238 fontSize: 0
239 cell: !columns
240 config:
241 cells:
242 - borderWidth: 1
243 padding: 5
217 items: 244 items:
218 - !text 245 - !text
219 text: '${value}' 246 text: '${value}'
220 247 fontEncoding: Identity-H
248 font: FreeSans
249 fontSize: 10
250 backgroundColor: #FFFFFF
251 # The scale text
252 - !columns
253 absoluteX: 617
254 absoluteY: 55
255 width: 200
256 items:
257 - !text
258 fontSize: 10
259 text: 'Maßstab: 1:${scale}'
260 fontEncoding: Identity-H
261 font: FreeSans
262 config:
263 cells:
264 - padding: 5

http://dive4elements.wald.intevation.org