-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoftcolors.mrules
251 lines (207 loc) · 5.75 KB
/
softcolors.mrules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
// Maperitive rendering ruleset resembling Google Maps (as of February 2011)
// http://maperitive.net
// Created by Igor Brejc
// Released under the Creative Commons Attribution-ShareAlike 3.0 License (http://creativecommons.org/licenses/by-sa/3.0/)
// Updates by Michael <quelbs_at_gmail.com>
// Icons used: Map icons CC-0 from SJJB Management (http://www.sjjb.co.uk/mapicons)
// History:
// --------
// 2011-07-26: Updated by Michael <quelbs_at_gmail.com>
// - added icons for parks, parking, restaurants and railway
// - added names for parks, restaurants
// - added rendering of playground, sport, living_street and steps
// - added path (thin solid line) and motorway (thicker orange line) rendering adjusted
// - added special rendering for tunnels
// use-ruleset location="C:\Users\rcxsm\Documents\Maperitive-latest\Maperitive\Rules/softcolors.mrules"
features
points
place city : place=city
place town : place=town
place village : place=village
place hamlet : place=hamlet
place suburb : place=suburb
restaurant : @isOneOf(amenity,pub,fast_food,restaurant,bar)
points, areas
parking : amenity=parking
railway station : railway=station
park : leisure=park OR leisure=playground
lines
boundary country : boundary=administrative AND (admin_level=2 OR admin_level=4) AND NOT natural=coastline
aeroway line runway : aeroway=runway
aeroway line taxiway : aeroway=taxiway
railway : railway=rail AND @isFalse(disused) AND NOT service=yard AND @isFalse(noexit)
motorway : highway=motorway
motorway link : highway=motorway_link
major road : @isOneOf(highway, trunk, trunk_link, primary, primary_link, secondary, tertiary)
minor road : @isOneOf(highway, unclassified, residential, service, living_street) OR (highway=track AND (@isOneOf(tracktype, grade1, grade2, grade3) OR NOT tracktype))
path : @isOneOf(highway, path, footway, pedestrian, steps) OR (highway=track AND @isOneOf(tracktype, grade4, grade5))
water line : waterway=stream OR waterway=river
areas
water : natural=water OR natural=wetland OR waterway=riverbank OR waterway=stream OR landuse=reservoir OR landuse=basin
aeroway area : aeroway
industrial : landuse=industrial
residential area : landuse=residential
hospital : amenity=hospital
sport : sport
forest : landuse=forest OR natural=wood
cemetery : landuse=cemetery
properties
map-background-color : #f7f7f7
map-background-opacity : 1
map-sea-color : #79addc
//font-weight : bold
font-family : Arial
//font-size : 14:6;16:10
text-max-width : 7
text-halo-width : 35%
text-halo-opacity : 0.75
text-align-horizontal : center
text-align-vertical : center
font-stretch : 0.9
map.rendering.lflp.min-buffer-space : 5
map.rendering.lflp.max-allowed-corner-angle : 40
rules
// icons
// texts
// lines
target : boundary*
define
line-color : #818181
line-width : 2
border-style : solid
border-color : #818181
border-width : 110%
border-opacity : 0.4
draw : line
target : railway
define
min-zoom : 13
line-color : #a1a1a1
line-width : 2
draw : line
define
min-zoom : 13
line-style : dashlong
line-color : white
line-width : 1
border-style : solid
border-color : #a1a1a1
border-width : 25%
draw : line
define
min-zoom : 6
max-zoom : 13
line-style : solid
border-style : none
line-color : #a1a1a1
line-width : 1
draw : line
target : motorway
define
line-width : 7:1;13:3;15:10
min-zoom : 7
line-color : #ffc09f
//border-style : solid
border-style : none
border-color : #FFC345 black 20%
border-width : 20%
for : tunnel=yes
define
//border-style : dot
draw : line
target : motorway link
define
line-width : 7:1;13:2;15:3
min-zoom : 10
line-color : #ffc09f
border-style : none
//border-style : solid
border-color : #ffe068 black 20%
border-width : 50%
for : tunnel=yes
define
//border-style : dot
draw : line
target : major road
define
min-zoom : 10
line-color : #ffc09f
//line-width : 10:1;13:2;14:3;15:4;18:12
line-width : 13:2;14:4;15:8;16:12
border-style : none
//border-style : solid
border-color : #fffd8b black 20%
border-width : 1
for : highway=tertiary
define
min-zoom : 11
for : tunnel=yes
define
//border-style : dot
draw : line
define
text:@up(name)
min-zoom : 13
font-size : 13:9.5
font-weight : normal
//text-halo-color : #fffd8b
draw : text
target : minor road
define
min-zoom : 10.5
max-zoom : 20
border-style : none
line-color : #ffee93
line-width : 14:1;15:1;15.5:4
border-style : none
border-width : 15%
border-color : #D4CCB8
draw : line
target : path
define
min-zoom : 14.5
max-zoom : 20
line-color : #ffee93
border-style : none
border-width : 0
border-color : #D4CCB8
line-width : 14:1;15:1;15.5:4
draw : line
target : water line
define
min-zoom : 10
line-color : #79addc
// (= lighter)
//line-color : #2796D3
line-width : 14:1;16:5;20:10
//draw : line
// landuse
target : $featuretype(area)
define
line-style : none
line-width : 1
if : water
define
fill-color : #79addc
elseif : aeroway area
define
fill-color : #d1d0cd
elseif : industrial
define
fill-color : #EBF5DE
elseif : residential area
define
fill-color : #fcf6c7
elseif : park
define
fill-color : #adf7b6
elseif : sport
define
fill-color : #ffc09f
elseif : forest
define
min-zoom : 9
fill-color : #adf7b6
else
stop
draw : fill