annotate flys-client/src/main/webapp/WEB-INF/config.yaml @ 2511:1aa6aec70b97

map print: Simplified config. flys-client/trunk@4366 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 May 2012 16:32:49 +0000
parents 4861ab2c28d2
children 532c590beb3e
rev   line source
2496
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 # allowed DPIs
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
4 dpis: [254, 190, 127, 56]
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
5
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
6 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
7 # allowed Formats
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
8 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
9 formats: ['*']
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
12 # the allowed scales
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
13 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
14 scales:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
15 - 25000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
16 - 50000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
17 - 100000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
18 - 200000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
19 - 500000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
20 - 1000000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
21 - 2000000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
22 - 4000000
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
23
2504
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
24 outputFilename: 'flys-${date}.pdf'
2496
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
25
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
26 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
27 # the list of allowed hosts
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
28 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
29 hosts:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
30 - !localMatch
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
31 dummy: true
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
32 - !dnsMatch
2504
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
33 host: wsvmapserv.wsv.bund.de
2496
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
34 port: 80
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
35 - !dnsMatch
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
36 host: tile.openstreetmap.org
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
37 port: 80
2508
4aa70825bde1 map print: generate valid url to access service.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2504
diff changeset
38 - !dnsMatch
4aa70825bde1 map print: generate valid url to access service.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2504
diff changeset
39 host: www.pegelonline.wsv.de
4aa70825bde1 map print: generate valid url to access service.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2504
diff changeset
40 port: 80
2496
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
41
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
42 layouts:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
43 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
44 A4 portrait:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
45 #===========================================================================
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
46 metaData:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
47 title: '${title}'
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
48 author: 'MapFish print module'
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
49 subject: 'Simple layout'
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
50 keywords: 'map,print'
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
51 creator: 'MapFish'
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
52
2504
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
53 # titlePage:
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
54 # pageSize: A4
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
55 # items:
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
56 # - !text
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
57 # spacingAfter: 150
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
58 # - !text
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
59 # font: Helvetica
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
60 # fontSize: 40
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
61 # spacingAfter: 100
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
62 # align: center
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
63 # text: '${title}'
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
64 # - !image
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
65 # maxWidth: 160
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
66 # maxHeight: 160
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
67 # spacingAfter: 100
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
68 # align: center
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
69 # url: http://trac.mapfish.org/trac/mapfish/attachment/ticket/3/logo_v8_sphere.svg?format=raw
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
70 # - !image
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
71 # maxWidth: 160
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
72 # maxHeight: 160
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
73 # spacingAfter: 100
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
74 # align: center
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
75 # url: 'file://${configDir}/../images/flys_logo.gif'
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
76 # - !text
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
77 # font: Helvetica
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
78 # fontSize: 14
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
79 # align: left
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
80 # text: |
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
81 # Two layers are asked by the client:
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
82 # - a base layer from Metacarta
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
83 # - a transparent layer from Camptocamp.org (routes)
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
84 # .
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
85 # Some text is added over the map, just to demonstrate the absolute positionning.
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
86 # footer: &commonFooter
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
87 # height: 30
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
88 # items:
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
89 # - !columns
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
90 # config:
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
91 # cells:
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
92 # - paddingBottom: 5
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
93 # items:
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
94 # - !image
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
95 # maxWidth: 40
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
96 # backgroundColor: #FF0000
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
97 # align: left
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
98 # url: '${configDir}/../images/properties.gif'
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
99 # - !text
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
100 # backgroundColor: #FF0000
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
101 # text: ©Camptocamp SA
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
102 # - !text
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
103 # align: right
425bc486a40f Generate map print spec dynamically from artifact
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2502
diff changeset
104 # text: 'Page ${pageNum}'
2496
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
105
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
106 #-------------------------------------------------------------------------
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
107 mainPage:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
108 pageSize: A4
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
109 rotation: true
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
110 header:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
111 height: 50
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
112 items:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
113 - !text
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
114 font: Helvetica
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
115 fontSize: 30
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
116 align: right
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
117 text: '${mapTitle}'
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
118 items:
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
119 - !map
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
120 spacingAfter: 30
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
121 width: 440
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
122 height: 483
2511
1aa6aec70b97 map print: Simplified config.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2510
diff changeset
123 - !scalebar
1aa6aec70b97 map print: Simplified config.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2510
diff changeset
124 type: bar
1aa6aec70b97 map print: Simplified config.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2510
diff changeset
125 maxSize: 100
1aa6aec70b97 map print: Simplified config.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2510
diff changeset
126 barBgColor: white
1aa6aec70b97 map print: Simplified config.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2510
diff changeset
127 fontSize: 8
1aa6aec70b97 map print: Simplified config.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2510
diff changeset
128 align: right
2496
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
129 - !text
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
130 text: '${comment}'
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
131 spacingAfter: 30
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
132 - !text
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
133 font: Helvetica
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
134 fontSize: 9
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
135 align: right
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
136 text: '1:${scale} ${now MM.dd.yyyy}'
2510
4861ab2c28d2 map print: add legend
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2508
diff changeset
137 - !legends
4861ab2c28d2 map print: add legend
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2508
diff changeset
138 align: left
4861ab2c28d2 map print: add legend
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2508
diff changeset
139 maxIconWidth: 32
4861ab2c28d2 map print: add legend
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2508
diff changeset
140 maxIconHeight: 32
2496
7e077899e259 Added dependency to MapFish Print
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
141 footer: *commonFooter

http://dive4elements.wald.intevation.org