source: osm/applications/editors/josm/oldplugins/osmarender/stylesheets/caption-z5.xml@ 36106

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

readd files directly

File size: 4.9 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 z5 -->
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 <rule e="node|way" k="osmarender:render" v="~|yes">
25
26 <rule e="node" k="place" v="*" layer="5">
27 <rule e="node" k="capital" v="~|no|false|False" layer="5">
28 <rule e="node" k="place" v="city" horizontalProximity="1.0" verticalProximity="0.9" layer="5">
29 <text k="name" class='caption-casing city-caption-casing' />
30 <text k="name" class='caption-core city-caption' />
31 </rule>
32 </rule>
33 <else>
34 <text k="name" class='caption-casing capital-caption-casing' />
35 <text k="name" class='caption-core capital-caption' />
36 </else>
37
38 <rule e="node" k="place" v="country" horizontalProximity="0.8" verticalProximity="0.8">
39 <text k="name" class='caption-casing country-caption-casing' />
40 <text k="name" class='caption-core country-caption' />
41 </rule>
42 </rule> <!-- e="node" k="place" v="*" -->
43
44
45
46 </rule> <!-- k="osmarender:render" v="~|yes" -->
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: normal;
66 text-anchor: middle;
67 stroke-miterlimit: 1.5;
68 }
69
70 .caption-core {
71 stroke: white;
72 stroke-width: 0px;
73 fill: black;
74 font-family: "DejaVu Sans";
75 font-weight: normal;
76 text-anchor: middle;
77 stroke-miterlimit: 1.5;
78 }
79
80 .country-caption-casing { font-size: 6000px; stroke-width: 1000px; }
81 .country-caption { font-size: 6000px; }
82
83 .capital-caption-casing { font-size: 4300px; stroke-width: 1500px; }
84 .capital-caption { font-size: 4300px; }
85
86 .city-caption-casing { font-size: 4000px; stroke-width: 500px; }
87 .city-caption { font-size: 4000px; }
88
89
90 /* Map decoration */
91 .map-grid-line {
92 fill: none;
93 stroke: #8080ff;
94 stroke-width: 0.1px;
95 stroke-opacity: 0.5;
96 }
97
98 .map-border-casing {
99 fill: none;
100 stroke: #8080ff;
101 stroke-width: 3px;
102 stroke-miterlimit: 4;
103 stroke-dasharray: none;
104 stroke-opacity: 1;
105 stroke-linecap: round;
106 }
107
108 .map-border-core {
109 fill: none;
110 fill-opacity: 1;
111 fill-rule: nonzero;
112 stroke: #ffffff;
113 stroke-width: 2px;
114 stroke-miterlimit: 0;
115 stroke-dashoffset: -0.5px;
116 stroke-opacity: 1;
117 }
118
119 .map-scale-casing {
120 fill: none;
121 stroke: #8080ff;
122 stroke-width: 4px;
123 stroke-linecap: butt;
124 }
125
126 .map-scale-core {
127 fill: none;
128 stroke: #ffffff;
129 stroke-width: 3px;
130 stroke-linecap: butt;
131 }
132
133 .map-scale-bookend {
134 fill: none;
135 stroke: #8080ff;
136 stroke-width: 1px;
137 stroke-linecap: butt;
138 }
139
140 .map-scale-caption {
141 font-family: "DejaVu Sans",sans-serif;
142 font-size: 10px;
143 fill: #8080ff;
144 }
145
146 <!-- map background must be the same for all zooms or else empty tile detection will fail -->
147 .map-background {
148 fill: #f8f8f8;
149 stroke: none;
150 }
151
152 .map-title {
153 font-family: "DejaVu Sans",sans-serif;
154 font-size: 20px;
155 text-anchor: middle;
156 fill: black;
157 }
158
159 .map-title-background {
160 fill: white;
161 }
162
163 .map-marginalia-background {
164 fill: white;
165 }
166 </style>
167
168 </defs>
169
170</rules>
Note: See TracBrowser for help on using the repository browser.