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

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

readd files directly

File size: 4.5 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 z10 -->
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
24 <rule e="node|way" k="osmarender:render" v="~|yes">
25 <rule e="node|way" k="osmarender:renderName" v="~|yes">
26
27 <rule e="node" k="place" v="town|city" horizontalProximity="0.06" verticalProximity="0.015">
28 <rule e="node" k="place" v="town">
29 <text k="name" class='caption-casing town-caption-casing'/>
30 <text k="name" class='caption-core town-caption' />
31 </rule>
32 </rule>
33
34 <rule e="node" k="place" v="city">
35 <text k="name" class='caption-casing city-caption-casing' />
36 <text k="name" class='caption-core city-caption' />
37 </rule>
38
39 </rule> <!-- k="osmarender:renderName" v="~|yes" -->
40 </rule> <!-- k="osmarender:render" v="~|yes" -->
41
42
43 <!-- SVG Definitions - markers, symbols etc go here -->
44 <defs>
45
46 <style id="styles" type="text/css" xmlns="http://www.w3.org/2000/svg">
47 /* DO NOT DELETE .untagged-segments - Used by osmarender.xsl */
48 .untagged-segments {
49 stroke-width: 0.5px;
50 stroke-linejoin: miter;
51 stroke-linecap: butt;
52 stroke: #e0e0e0;
53 stroke-dasharray: 0.5,0.5;
54 }
55
56 /* Places - generic styles */
57 .caption-casing {
58 fill: white;
59 stroke: white;
60 font-family: "DejaVu Sans";
61 font-weight: normal;
62 text-anchor: middle;
63 stroke-miterlimit: 1.5;
64 }
65
66 .caption-core {
67 stroke: white;
68 stroke-width: 0px;
69 font-family: "DejaVu Sans";
70 font-weight: normal;
71 text-anchor: middle;
72 stroke-miterlimit: 1.5;
73 }
74
75 .city-caption-casing { font-size: 240px; stroke-width: 75px; }
76 .city-caption { font-size: 240px; }
77
78 .town-caption-casing { font-size: 160px; stroke-width: 50px; }
79 .town-caption { font-size: 160px; }
80
81
82
83 /* Map decoration */
84 .map-grid-line {
85 fill: none;
86 stroke: #8080ff;
87 stroke-width: 0.1px;
88 stroke-opacity: 0.5;
89 }
90
91 .map-border-casing {
92 fill: none;
93 stroke: #8080ff;
94 stroke-width: 3px;
95 stroke-miterlimit: 4;
96 stroke-dasharray: none;
97 stroke-opacity: 1;
98 stroke-linecap: round;
99 }
100
101 .map-border-core {
102 fill: none;
103 fill-opacity: 1;
104 fill-rule: nonzero;
105 stroke: #ffffff;
106 stroke-width: 2px;
107 stroke-miterlimit: 0;
108 stroke-dashoffset: -0.5px;
109 stroke-opacity: 1;
110 }
111
112 .map-scale-casing {
113 fill: none;
114 stroke: #8080ff;
115 stroke-width: 4px;
116 stroke-linecap: butt;
117 }
118
119 .map-scale-core {
120 fill: none;
121 stroke: #ffffff;
122 stroke-width: 3px;
123 stroke-linecap: butt;
124 }
125
126 .map-scale-bookend {
127 fill: none;
128 stroke: #8080ff;
129 stroke-width: 1px;
130 stroke-linecap: butt;
131 }
132
133 .map-scale-caption {
134 font-family: "DejaVu Sans",sans-serif;
135 font-size: 10px;
136 fill: #8080ff;
137 }
138
139 <!-- map background must be the same for all zooms or else empty tile detection will fail -->
140 .map-background {
141 fill: #f8f8f8;
142 stroke: none;
143 }
144
145 .map-title {
146 font-family: "DejaVu Sans",sans-serif;
147 font-size: 20px;
148 text-anchor: middle;
149 fill: black;
150 }
151
152 .map-title-background {
153 fill: white;
154 }
155
156 .map-marginalia-background {
157 fill: white;
158 }
159 </style>
160
161 </defs>
162
163</rules>
Note: See TracBrowser for help on using the repository browser.