source: osm/applications/editors/josm/oldplugins/osmarender/stylesheets/caption-z6.xml@ 36358

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

readd files directly

File size: 5.8 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 z6 -->
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.8" verticalProximity="0.6">
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 .city-caption-casing { font-size: 2800px; stroke-width: 600px; }
82 .city-caption { font-size: 2800px; }
83
84 .capital-caption-casing { font-size: 3700px; stroke-width: 500px; font-variant: small-caps; }
85 .capital-caption { font-size: 3700px; font-variant: small-caps; }
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: 800px;
96 stroke: #ffff00;
97 opacity: 0.5;
98 }
99
100 .boundary-level-1-core {
101 stroke-width: 350px;
102 stroke: #f9574b;
103 stroke-dasharray: 900, 300, 300, 300;
104 }
105
106 .boundary-level-2-casing {
107 stroke-width: 650px;
108 stroke: #ffff00;
109 opacity: 0.5;
110 }
111
112 .boundary-level-2-core {
113 stroke-width: 300px;
114 stroke: #f9574b;
115 stroke-dasharray: 800, 800;
116 }
117
118
119
120 /* Map decoration */
121 .map-grid-line {
122 fill: none;
123 stroke: #8080ff;
124 stroke-width: 0.1px;
125 stroke-opacity: 0.5;
126 }
127
128 .map-border-casing {
129 fill: none;
130 stroke: #8080ff;
131 stroke-width: 3px;
132 stroke-miterlimit: 4;
133 stroke-dasharray: none;
134 stroke-opacity: 1;
135 stroke-linecap: round;
136 }
137
138 .map-border-core {
139 fill: none;
140 fill-opacity: 1;
141 fill-rule: nonzero;
142 stroke: #ffffff;
143 stroke-width: 2px;
144 stroke-miterlimit: 0;
145 stroke-dashoffset: -0.5px;
146 stroke-opacity: 1;
147 }
148
149 .map-scale-casing {
150 fill: none;
151 stroke: #8080ff;
152 stroke-width: 4px;
153 stroke-linecap: butt;
154 }
155
156 .map-scale-core {
157 fill: none;
158 stroke: #ffffff;
159 stroke-width: 3px;
160 stroke-linecap: butt;
161 }
162
163 .map-scale-bookend {
164 fill: none;
165 stroke: #8080ff;
166 stroke-width: 1px;
167 stroke-linecap: butt;
168 }
169
170 .map-scale-caption {
171 font-family: "DejaVu Sans",sans-serif;
172 font-size: 10px;
173 fill: #8080ff;
174 }
175
176 <!-- map background must be the same for all zooms or else empty tile detection will fail -->
177 .map-background {
178 fill: #f8f8f8;
179 stroke: none;
180 }
181
182 .map-title {
183 font-family: "DejaVu Sans",sans-serif;
184 font-size: 20px;
185 text-anchor: middle;
186 fill: black;
187 }
188
189 .map-title-background {
190 fill: white;
191 }
192
193 .map-marginalia-background {
194 fill: white;
195 }
196 </style>
197
198 </defs>
199
200</rules>
Note: See TracBrowser for help on using the repository browser.