basic.mapcss 4.86 KB
Newer Older
1
2
3
@import url('default.mapcss');

meta {
4
5
	title: 'Points of interest';
	icon-image: url('icon_cuisine.png');
6
7
8
9
10
11
12
13
14
15
16
}


/****************************************************************************
 * Labels
 */

*[name][amenity] {
	text-color: #3E3E3E;
}

François de Metz's avatar
François de Metz committed
17
*[name][shop], *[name][craft] {
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	text-color: #AC39AC;
}

*[name][tourism] {
	text-color: #0099E4;
}


/****************************************************************************
 * Public transport objects
 */

*[highway=bus_stop] {
	icon-image: url('highway_bus_stop.png');
Adrien Pavie's avatar
Adrien Pavie committed
32
33
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
34
35
36
37
38
39
40
41
42
43
44
45
46
	icon-opacity: 1;
}


/****************************************************************************
 * Amenities
 */

*[amenity=~/bar|biergarten|cafe|fast_food|food_court|ice_cream|pub|restaurant|college|kindergarten|library|school|music_school|driving_school|language_school|university|car_rental|parking|taxi|atm|bank|bureau_de_change|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary|arts_centre|brothel|casino|cinema|community_centre|gambling|nightclub|planetarium|social_centre|stripclub|studio|swingerclub|animal_boarding|animal_shelter|courthouse|coworking_space|crematorium|crypt|dojo|embassy|fire_station|gym|internet_cafe|photo_booth|place_of_worship|police|post_box|post_office|sauna|shower|telephone|toilets|piano|parking_space/] {
	fill-color: #FFDAAD;
	opacity: 1;
	fill-opacity: 1;
	icon-image: url('amenity_$[amenity].png');
Adrien Pavie's avatar
Adrien Pavie committed
47
48
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
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
	icon-opacity: 1;
	text: name;
}

/** Comfort amenities **/
*[amenity=toilets],
*[public_transport=waiting_area],
*[room=waiting],
*[area=waiting] {
	fill-color: #E3C8E3;
}

/** Small amenities **/
*[amenity=~/atm|photo_booth|post_box|piano|telephone|parking_space/] {
	color: #FFBA66;
}

/** Large, landuse-like, amenities **/
area[amenity=~/school|college|university|hospital|parking/] {
	z-index: -9;
}

/** Independant amenities **/
*[amenity=~/parking|parking_space|taxi|bus_station|shelter/] {
	color: #E0BF96;
	width: 1;
}

/** Parking for disabled people **/
*[amenity=parking_space][wheelchair=yes],
*[amenity=parking_space][capacity:disabled] {
	icon-image: url('parking_disabled.png');
}

/** Toilets **/
*[amenity=toilets][female=~/yes|only|designated/][!male],
*[amenity=toilets][female=~/yes|only|designated/][male=no] {
	icon-image: url('amenity_toilets_women.png');
}

*[amenity=toilets][male=~/yes|only|designated/][!female],
*[amenity=toilets][male=~/yes|only|designated/][female=no] {
	icon-image: url('amenity_toilets_men.png');
}

*[amenity=toilets][wheelchair=~/yes|only|designated/] {
	icon-image: url('amenity_toilets_disabled.png');
}


/****************************************************************************
 * Shops
 */

*[shop] {
	icon-image: url('shopping_$[shop].png');
Adrien Pavie's avatar
Adrien Pavie committed
105
106
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
107
108
109
110
111
112
113
114
115
	icon-opacity: 1;
	opacity: 1;
	text: name;
}

*[shop][!name][brand] {
	text: brand;
}

François de Metz's avatar
François de Metz committed
116
area[shop], area[craft] {
Adrien Pavie's avatar
Adrien Pavie committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
	fill-color: #FFDAAD;
	fill-opacity: 1;
}

/** Store departements **/
*[department] {
	fill-color: #FFCFCC;
	color: #D29494;
	fill-opacity: 1;
	z-index: -4;
	opacity: 1;
	width: 0.5;
}

*[department=store_section][vending] {
	icon-image: url('vending_$[vending].png');
133
	icon-image-aliases: '"news_papers": "newspapers", "drinks": "drink", "vegetables": "vegetable"';
Adrien Pavie's avatar
Adrien Pavie committed
134
135
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
136
	icon-opacity: 1;
137
138
139
140
141
142
143
}


/****************************************************************************
 * Tourism-related objects
 */

Adrien Pavie's avatar
Adrien Pavie committed
144
145
146
*[tourism=~/aquarium|artwork|attraction|gallery|hostel|hotel|motel|museum/],
*[information=~/office|map/] {
	icon-image: url('tourism_$[tourism].png');
Adrien Pavie's avatar
Adrien Pavie committed
147
148
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
149
150
151
152
153
154
155
156
	icon-opacity: 1;
	color: #BF9962;
	fill-color: #FFF6AD;
	opacity: 1;
	fill-opacity: 1;
	text: name;
}

157
158
159
160
161
162
/** Glass cabinet **/
*[indoor=glass_cabinet] {
	color: #A2CCC8;
	fill-color: #E3F3F5;
	opacity: 1;
	fill-opacity: 1;
Adrien Pavie's avatar
Adrien Pavie committed
163
	width: 2;
164
165
	z-index: -1;
}
Adrien Pavie's avatar
Adrien Pavie committed
166

Adrien Pavie's avatar
Adrien Pavie committed
167
168
169
170
171
172
173
174
175
176
/** Showcase **/
*[amenity=showcase] {
	color: #A2CCC8;
	fill-color: #A2CCC8;
	opacity: 1;
	fill-opacity: 1;
	width: 2;
	z-index: -1;
}

Adrien Pavie's avatar
Adrien Pavie committed
177
178
179
180
181
/** Information office **/
*[information=office] {
	color: #7583D9;
	opacity: 1;
	icon-image: url('information_office.png');
Adrien Pavie's avatar
Adrien Pavie committed
182
183
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
184
185
186
187
188
189
	icon-opacity: 1;
	text: name;
}

/** Historic elements **/
*[historic] {
190
191
192
193
194
	text: name;
}

way[historic],
relation[type=multipolygon][historic] {
Adrien Pavie's avatar
Adrien Pavie committed
195
196
197
198
199
200
201
202
203
	color: #C0B0A2;
	opacity: 0.5;
	width: 0.5;
	fill-color: #C0B0A2;
	z-index: -1;
}

*[historic=tomb] {
	icon-image: url('historic_tomb.png');
Adrien Pavie's avatar
Adrien Pavie committed
204
205
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
206
207
208
	icon-opacity: 1;
}

209
210
211
212
213
214
215
*[historic=artifact] {
	icon-image: url('tourism_archaeological.png');
	icon-width: 16;
	icon-height: 16;
	icon-opacity: 1;
}

Adrien Pavie's avatar
Adrien Pavie committed
216
217
218
219
220
221
222
223
224
225
226
227
228
/** Grass **/
area[landuse=grass],
relation[type=multipolygon][landuse=grass] {
	opacity: 0;
	width: 0;
	fill-color: #CFECA8;
	fill-opacity: 1;
	z-index: -1;
}

/** Charging bike **/
*[generator:type=bicycle] {
	icon-image: url('generator_type_bicycle.png');
Adrien Pavie's avatar
Adrien Pavie committed
229
230
	icon-width: 16;
	icon-height: 16;
Adrien Pavie's avatar
Adrien Pavie committed
231
232
	icon-opacity: 1;
}