]> mj.ucw.cz Git - leo.git/blob - map.cf
Inline styles can be specified in object tags
[leo.git] / map.cf
1 Map {
2         # Data sources
3         Source {
4                 # Input file
5                 File dump.osm
6
7                 # File format:
8                 #       osmxml          OpenStreetMap XML
9                 #       fixed           Fixed objects (no File used, see FixedObjects section below)
10                 #       shape           ESRI shape file (partial support only)
11                 Format osmxml
12
13                 # MapCSS stylesheet to apply (multiple style-sheets are allowed)
14                 StyleSheet poskole.css
15
16                 # Enable inline style properties (tags "style:<property>" or "style:<property>::<layer>")
17                 InlineStyles 1
18         }
19
20         Source {
21                 Format fixed
22                 StyleSheet poskole.css
23                 InlineStyles 1
24         }
25
26         # Projection of our map
27         Projection "+proj=utm +zone=33 +ellps=WGS84"
28
29         # Which part of the map should drawn (in projected coordinates)
30         MinX 464737
31         MaxX 471140
32         MinY 5552849
33         MaxY 5557376
34
35         # Draw on A3 paper
36         PageWidth 420
37         PageHeight 297
38
39         # Draw on A4 paper
40         # PageWidth 297
41         # PageHeight 210
42
43         # Clip output to the requested rectangle
44         Clip 1
45
46         # Rotate the map by 90 degrees
47         Rotate 0
48
49         # Draw blue border around the requested rectangle
50         DrawBorder 0
51
52         # Write SVG output here
53         SVGOutput output.svg
54 }
55
56 FixedObjects {
57         # Fixed objects may be placed at specific positions on the paper
58         # with specific tags. Remember to enable the "fixed" data source.
59         Object {
60                 X 374
61                 Y 25
62                 Tag style:icon-image '"icons/logo.svg"'
63                 Tag style:icon-width 36
64                 Tag style:z-index 99
65         }
66 }
67
68 Debug {
69         # Dump map data exactly as parsed
70         DumpSource 0
71
72         # Dump map data after projection to Map.Projection
73         DumpAfterProj 0
74
75         # Dump map data after conversion to on-paper coordinates
76         DumpAfterScaling 0
77
78         # Dump intermediate representations of multipolygons
79         DumpMultipolygons 0
80
81         # Dump stylesheet as parsed
82         DumpCSS 0
83
84         # Dump styling decisions
85         DumpStyling 0
86
87         # Dump planning and drawing of symbols
88         DumpSymbols 0
89 }