1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <?xml-stylesheet type="text/xsl" href="osmarender.xsl"?>
|
---|
3 |
|
---|
4 | <!-- Render just captions for z7 -->
|
---|
5 |
|
---|
6 | <rules
|
---|
7 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
8 | xmlns:svg="http://www.w3.org/2000/svg"
|
---|
9 | data="data.osm"
|
---|
10 | svgBaseProfile="full"
|
---|
11 | scale="1"
|
---|
12 | symbolScale="1"
|
---|
13 | minimumMapWidth="0"
|
---|
14 | minimumMapHeight="0"
|
---|
15 | withOSMLayers="yes"
|
---|
16 | withUntaggedSegments="no"
|
---|
17 | showScale="no"
|
---|
18 | showGrid="no"
|
---|
19 | showBorder="no"
|
---|
20 | showLicense="no"
|
---|
21 | interactive="no">
|
---|
22 |
|
---|
23 |
|
---|
24 | <!-- Non-physical boundaries -->
|
---|
25 | <rule e="way" k="boundary" v="administrative">
|
---|
26 | <rule e="way" k="admin_level" v="2">
|
---|
27 | <line class="boundary boundary-level-2-casing no-bezier" />
|
---|
28 | <line class="boundary boundary-level-2-core no-bezier" />
|
---|
29 | </rule>
|
---|
30 | <rule e="way" k="admin_level" v="1">
|
---|
31 | <line class="boundary boundary-level-1-casing no-bezier" />
|
---|
32 | <line class="boundary boundary-level-1-core no-bezier" />
|
---|
33 | </rule>
|
---|
34 | </rule>
|
---|
35 |
|
---|
36 | <rule e="node" k="place" v="*">
|
---|
37 | <rule e="node" k="capital" v="~|no|false|False">
|
---|
38 | <rule e="node" k="place" v="city" horizontalProximity="0.1" verticalProximity="0.2" >
|
---|
39 | <text k="name" class='caption-casing city-caption-casing' />
|
---|
40 | <text k="name" class='caption-core city-caption' />
|
---|
41 | </rule>
|
---|
42 | </rule>
|
---|
43 | <else>
|
---|
44 | <text k="name" class='caption-casing capital-caption-casing' />
|
---|
45 | <text k="name" class='caption-core capital-caption' />
|
---|
46 | </else>
|
---|
47 | </rule> <!-- e="node" k="place" v="*" -->
|
---|
48 |
|
---|
49 | <!-- SVG Definitions - markers, symbols etc go here -->
|
---|
50 | <defs>
|
---|
51 |
|
---|
52 | <style id="styles" type="text/css" xmlns="http://www.w3.org/2000/svg">
|
---|
53 | /* DO NOT DELETE .untagged-segments - Used by osmarender.xsl */
|
---|
54 | .untagged-segments {
|
---|
55 | stroke-width: 0.5px;
|
---|
56 | stroke-linejoin: miter;
|
---|
57 | stroke-linecap: butt;
|
---|
58 | stroke: #e0e0e0;
|
---|
59 | stroke-dasharray: 0.5,0.5;
|
---|
60 | }
|
---|
61 |
|
---|
62 | .caption-casing {
|
---|
63 | fill: white;
|
---|
64 | stroke: white;
|
---|
65 | font-family: "DejaVu Sans";
|
---|
66 | font-weight: normal;
|
---|
67 | text-anchor: middle;
|
---|
68 | stroke-miterlimit: 1.5;
|
---|
69 | }
|
---|
70 |
|
---|
71 | .caption-core {
|
---|
72 | stroke: white;
|
---|
73 | stroke-width: 0px;
|
---|
74 | fill: black;
|
---|
75 | font-family: "DejaVu Sans";
|
---|
76 | font-weight: normal;
|
---|
77 | text-anchor: middle;
|
---|
78 | stroke-miterlimit: 1.5;
|
---|
79 | }
|
---|
80 |
|
---|
81 | .capital-caption-casing { font-size: 2000px; stroke-width: 300px; font-variant: small-caps; }
|
---|
82 | .capital-caption { font-size: 2000px; font-variant: small-caps; }
|
---|
83 |
|
---|
84 | .city-caption-casing { font-size: 1500px; stroke-width: 300px; }
|
---|
85 | .city-caption { font-size: 1500px; }
|
---|
86 |
|
---|
87 | /* Non-physical boundaries */
|
---|
88 | .boundary {
|
---|
89 | stroke-linecap: round;
|
---|
90 | stroke-linejoin: round;
|
---|
91 | fill: none;
|
---|
92 | }
|
---|
93 |
|
---|
94 | .boundary-level-1-casing {
|
---|
95 | stroke-width: 400px;
|
---|
96 | stroke: #ffff00;
|
---|
97 | opacity: 0.6;
|
---|
98 | }
|
---|
99 |
|
---|
100 | .boundary-level-1-core {
|
---|
101 | stroke-width: 300px;
|
---|
102 | stroke: #f9574b;
|
---|
103 | stroke-dasharray: 900, 300, 300, 300;
|
---|
104 | }
|
---|
105 |
|
---|
106 | .boundary-level-2-casing {
|
---|
107 | stroke-width: 350px;
|
---|
108 | stroke: #ffff00;
|
---|
109 | opacity: 0.6;
|
---|
110 | }
|
---|
111 |
|
---|
112 | .boundary-level-2-core {
|
---|
113 | stroke-width: 250px;
|
---|
114 | stroke: #f9574b;
|
---|
115 | stroke-dasharray: 600, 600;
|
---|
116 | }
|
---|
117 |
|
---|
118 |
|
---|
119 | /* Map decoration */
|
---|
120 | .map-grid-line {
|
---|
121 | fill: none;
|
---|
122 | stroke: #8080ff;
|
---|
123 | stroke-width: 0.1px;
|
---|
124 | stroke-opacity: 0.5;
|
---|
125 | }
|
---|
126 |
|
---|
127 | .map-border-casing {
|
---|
128 | fill: none;
|
---|
129 | stroke: #8080ff;
|
---|
130 | stroke-width: 3px;
|
---|
131 | stroke-miterlimit: 4;
|
---|
132 | stroke-dasharray: none;
|
---|
133 | stroke-opacity: 1;
|
---|
134 | stroke-linecap: round;
|
---|
135 | }
|
---|
136 |
|
---|
137 | .map-border-core {
|
---|
138 | fill: none;
|
---|
139 | fill-opacity: 1;
|
---|
140 | fill-rule: nonzero;
|
---|
141 | stroke: #ffffff;
|
---|
142 | stroke-width: 2px;
|
---|
143 | stroke-miterlimit: 0;
|
---|
144 | stroke-dashoffset: -0.5px;
|
---|
145 | stroke-opacity: 1;
|
---|
146 | }
|
---|
147 |
|
---|
148 | .map-scale-casing {
|
---|
149 | fill: none;
|
---|
150 | stroke: #8080ff;
|
---|
151 | stroke-width: 4px;
|
---|
152 | stroke-linecap: butt;
|
---|
153 | }
|
---|
154 |
|
---|
155 | .map-scale-core {
|
---|
156 | fill: none;
|
---|
157 | stroke: #ffffff;
|
---|
158 | stroke-width: 3px;
|
---|
159 | stroke-linecap: butt;
|
---|
160 | }
|
---|
161 |
|
---|
162 | .map-scale-bookend {
|
---|
163 | fill: none;
|
---|
164 | stroke: #8080ff;
|
---|
165 | stroke-width: 1px;
|
---|
166 | stroke-linecap: butt;
|
---|
167 | }
|
---|
168 |
|
---|
169 | .map-scale-caption {
|
---|
170 | font-family: "DejaVu Sans",sans-serif;
|
---|
171 | font-size: 10px;
|
---|
172 | fill: #8080ff;
|
---|
173 | }
|
---|
174 |
|
---|
175 | <!-- map background must be the same for all zooms or else empty tile detection will fail -->
|
---|
176 | .map-background {
|
---|
177 | fill: #f8f8f8;
|
---|
178 | stroke: none;
|
---|
179 | }
|
---|
180 |
|
---|
181 | .map-title {
|
---|
182 | font-family: "DejaVu Sans",sans-serif;
|
---|
183 | font-size: 20px;
|
---|
184 | text-anchor: middle;
|
---|
185 | fill: black;
|
---|
186 | }
|
---|
187 |
|
---|
188 | .map-title-background {
|
---|
189 | fill: white;
|
---|
190 | }
|
---|
191 |
|
---|
192 | .map-marginalia-background {
|
---|
193 | fill: white;
|
---|
194 | }
|
---|
195 | </style>
|
---|
196 |
|
---|
197 | </defs>
|
---|
198 |
|
---|
199 | </rules>
|
---|