~ubuntu-branches/ubuntu/saucy/merkaartor/saucy

« back to all changes in this revision

Viewing changes to Render/osmarender/stylesheets/caption-z6.xml

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2009-09-13 00:52:12 UTC
  • mto: (1.2.7 upstream) (0.1.3 upstream) (3.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090913005212-pjecal8zxm07x0fj
ImportĀ upstreamĀ versionĀ 0.14+svnfixes~20090912

Show diffs side-by-side

added added

removed removed

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