-
Notifications
You must be signed in to change notification settings - Fork 5
/
pois.mss
76 lines (69 loc) · 1.92 KB
/
pois.mss
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
// ---------------------------------------------------------------------
// Points of interest
@buildings: gray;
@drinkingwater: #3da2f2;
@fire: #b74c4c;
@labels: lime;
@hospital: #d2ade6;
#nepal[amenity!='public_building'] {
::icon {
// uncomment next 3 lins to show data not filtered in this layer
//marker-fill: black;
//marker-height:10;
//marker-allow-overlap: true;
[office='government'][building='yes'],
[amenity='prison'],
[office!=''], [building='hospital'],
[emergency!=''] {
// filter custom data to show no icon
marker-opacity: 0;
}
// filter custom data to show amenity specific icons
[amenity='drinking_water'] {
marker-fill: @drinkingwater;
marker-height:8;
marker-file: url('icon/water-12.svg');
//marker-allow-overlap: true;
[zoom>=17] { marker-height:12; }
}
[amenity='fire_station'] {
marker-fill: @fire;
marker-height:12;
marker-file: url('icon/fire-station-12.svg');
//marker-allow-overlap: true;
}
[amenity='hospital'] {
marker-fill: @hospital;
marker-height: 12;
marker-file: url('icon/hospital-12.svg');
//marker-allow-overlap: true;
}
}
::label[zoom>=18][amenity!='public_building'][building!='yes'] {
// show labels for custom data not tagged as buildings
text-name: @name;
text-face-name: @sans_bd;
text-size: 10;
text-margin:1;
text-fill: darken(@buildings,30);
text-halo-fill: fadeout(#fff, 50%);
text-halo-radius: 1;
text-halo-rasterizer: fast;
text-wrap-width: 35;
text-line-spacing:-4;
[amenity='fire_station'] {
text-fill: @fire;
text-dy:6;
text-size: 10;
}
[amenity='drinking_water'] {
text-fill: @drinkingwater;
text-dy:6;
text-size: 10;
}
[zoom>=19] {
text-wrap-width: 45;
text-allow-overlap: true;
}
}
}