source: osm/applications/editors/josm/oldplugins/osmarender/stylesheets/caption-z8.xml

Last change on this file was 35743, checked in by stoecker, 4 years ago

readd files directly

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