@versatiles/style 5.2.6 → 5.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +274 -14
- package/dist/index.js +3650 -11
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/color/abstract.ts +83 -0
- package/src/color/hsl.test.ts +182 -0
- package/src/color/hsl.ts +122 -0
- package/src/color/hsv.test.ts +174 -0
- package/src/color/hsv.ts +100 -0
- package/src/color/index.test.ts +119 -0
- package/src/color/index.ts +38 -0
- package/src/color/random.test.ts +35 -0
- package/src/color/random.ts +165 -0
- package/src/color/rgb.test.ts +227 -0
- package/src/color/rgb.ts +248 -0
- package/src/color/utils.test.ts +86 -0
- package/src/color/utils.ts +13 -0
- package/src/guess_style/guess_style.test.ts +134 -0
- package/src/guess_style/guess_style.ts +166 -0
- package/{dist/guess_style/index.d.ts → src/guess_style/index.ts} +1 -0
- package/src/index.test.ts +77 -0
- package/src/index.ts +18 -0
- package/src/lib/utils.test.ts +197 -0
- package/src/lib/utils.ts +134 -0
- package/{dist/shortbread/index.d.ts → src/shortbread/index.ts} +1 -0
- package/src/shortbread/layers.test.ts +36 -0
- package/src/shortbread/layers.ts +564 -0
- package/src/shortbread/properties.test.ts +44 -0
- package/src/shortbread/properties.ts +142 -0
- package/src/shortbread/template.test.ts +43 -0
- package/src/shortbread/template.ts +343 -0
- package/src/style_builder/decorator.test.ts +67 -0
- package/src/style_builder/decorator.ts +135 -0
- package/src/style_builder/recolor.test.ts +306 -0
- package/src/style_builder/recolor.ts +110 -0
- package/src/style_builder/style_builder.test.ts +103 -0
- package/src/style_builder/style_builder.ts +134 -0
- package/src/style_builder/types.ts +141 -0
- package/src/styles/LICENSE.md +41 -0
- package/src/styles/colorful.ts +1041 -0
- package/src/styles/eclipse.ts +11 -0
- package/{dist/styles/empty.d.ts → src/styles/empty.ts} +7 -3
- package/src/styles/graybeard.ts +11 -0
- package/src/styles/index.ts +33 -0
- package/src/styles/neutrino.ts +429 -0
- package/{dist/types/index.d.ts → src/types/index.ts} +1 -0
- package/{dist/types/maplibre.d.ts → src/types/maplibre.ts} +3 -0
- package/src/types/tilejson.test.ts +94 -0
- package/src/types/tilejson.ts +125 -0
- package/src/types/vector_layer.test.ts +64 -0
- package/src/types/vector_layer.ts +69 -0
- package/dist/color/abstract.d.ts +0 -34
- package/dist/color/abstract.js +0 -53
- package/dist/color/abstract.js.map +0 -1
- package/dist/color/hsl.d.ts +0 -23
- package/dist/color/hsl.js +0 -98
- package/dist/color/hsl.js.map +0 -1
- package/dist/color/hsv.d.ts +0 -20
- package/dist/color/hsv.js +0 -100
- package/dist/color/hsv.js.map +0 -1
- package/dist/color/index.d.ts +0 -6
- package/dist/color/index.js +0 -29
- package/dist/color/index.js.map +0 -1
- package/dist/color/random.d.ts +0 -9
- package/dist/color/random.js +0 -134
- package/dist/color/random.js.map +0 -1
- package/dist/color/rgb.d.ts +0 -28
- package/dist/color/rgb.js +0 -195
- package/dist/color/rgb.js.map +0 -1
- package/dist/color/utils.d.ts +0 -3
- package/dist/color/utils.js +0 -10
- package/dist/color/utils.js.map +0 -1
- package/dist/guess_style/guess_style.d.ts +0 -8
- package/dist/guess_style/guess_style.js +0 -147
- package/dist/guess_style/guess_style.js.map +0 -1
- package/dist/guess_style/index.js +0 -2
- package/dist/guess_style/index.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -6
- package/dist/lib/utils.js +0 -126
- package/dist/lib/utils.js.map +0 -1
- package/dist/shortbread/index.js +0 -3
- package/dist/shortbread/index.js.map +0 -1
- package/dist/shortbread/layers.d.ts +0 -5
- package/dist/shortbread/layers.js +0 -521
- package/dist/shortbread/layers.js.map +0 -1
- package/dist/shortbread/properties.d.ts +0 -7
- package/dist/shortbread/properties.js +0 -125
- package/dist/shortbread/properties.js.map +0 -1
- package/dist/shortbread/template.d.ts +0 -4
- package/dist/shortbread/template.js +0 -339
- package/dist/shortbread/template.js.map +0 -1
- package/dist/style_builder/decorator.d.ts +0 -4
- package/dist/style_builder/decorator.js +0 -127
- package/dist/style_builder/decorator.js.map +0 -1
- package/dist/style_builder/recolor.d.ts +0 -22
- package/dist/style_builder/recolor.js +0 -89
- package/dist/style_builder/recolor.js.map +0 -1
- package/dist/style_builder/style_builder.d.ts +0 -15
- package/dist/style_builder/style_builder.js +0 -106
- package/dist/style_builder/style_builder.js.map +0 -1
- package/dist/style_builder/types.d.ts +0 -122
- package/dist/style_builder/types.js +0 -3
- package/dist/style_builder/types.js.map +0 -1
- package/dist/styles/colorful.d.ts +0 -11
- package/dist/styles/colorful.js +0 -956
- package/dist/styles/colorful.js.map +0 -1
- package/dist/styles/eclipse.d.ts +0 -5
- package/dist/styles/eclipse.js +0 -9
- package/dist/styles/eclipse.js.map +0 -1
- package/dist/styles/empty.js +0 -8
- package/dist/styles/empty.js.map +0 -1
- package/dist/styles/graybeard.d.ts +0 -5
- package/dist/styles/graybeard.js +0 -9
- package/dist/styles/graybeard.js.map +0 -1
- package/dist/styles/index.d.ts +0 -11
- package/dist/styles/index.js +0 -20
- package/dist/styles/index.js.map +0 -1
- package/dist/styles/neutrino.d.ts +0 -11
- package/dist/styles/neutrino.js +0 -401
- package/dist/styles/neutrino.js.map +0 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +0 -1
- package/dist/types/maplibre.js +0 -2
- package/dist/types/maplibre.js.map +0 -1
- package/dist/types/tilejson.d.ts +0 -32
- package/dist/types/tilejson.js +0 -87
- package/dist/types/tilejson.js.map +0 -1
- package/dist/types/vector_layer.d.ts +0 -14
- package/dist/types/vector_layer.js +0 -51
- package/dist/types/vector_layer.js.map +0 -1
package/dist/styles/colorful.js
DELETED
|
@@ -1,956 +0,0 @@
|
|
|
1
|
-
import { StyleBuilder } from '../style_builder/style_builder.js';
|
|
2
|
-
export default class Colorful extends StyleBuilder {
|
|
3
|
-
name = 'Colorful';
|
|
4
|
-
defaultFonts = {
|
|
5
|
-
regular: 'noto_sans_regular',
|
|
6
|
-
bold: 'noto_sans_bold',
|
|
7
|
-
};
|
|
8
|
-
defaultColors = {
|
|
9
|
-
/** Color for land areas on the map. */
|
|
10
|
-
land: '#F9F4EE',
|
|
11
|
-
/** Color for water bodies like lakes and rivers. */
|
|
12
|
-
water: '#BEDDF3',
|
|
13
|
-
/** Color for glacier areas, usually shown as white. */
|
|
14
|
-
glacier: '#FFFFFF',
|
|
15
|
-
/** Color for wooded or forested areas. */
|
|
16
|
-
wood: '#66AA44',
|
|
17
|
-
/** Color for grasslands or open fields. */
|
|
18
|
-
grass: '#D8E8C8',
|
|
19
|
-
/** Color for parks and recreational areas. */
|
|
20
|
-
park: '#D9D9A5',
|
|
21
|
-
/** Color for streets and roads on the map. */
|
|
22
|
-
street: '#FFFFFF',
|
|
23
|
-
/** Background color for streets. */
|
|
24
|
-
streetbg: '#CFCDCA',
|
|
25
|
-
/** Color for major highways or motorways. */
|
|
26
|
-
motorway: '#FFCC88',
|
|
27
|
-
/** Background color for motorways. */
|
|
28
|
-
motorwaybg: '#E9AC77',
|
|
29
|
-
/** Color for trunk roads. */
|
|
30
|
-
trunk: '#FFEEAA',
|
|
31
|
-
/** Background color for trunk roads. */
|
|
32
|
-
trunkbg: '#E9AC77',
|
|
33
|
-
/** Background color for buildings. */
|
|
34
|
-
buildingbg: '#DFDBD7',
|
|
35
|
-
/** Primary color for buildings. */
|
|
36
|
-
building: '#F2EAE2',
|
|
37
|
-
/** Color used for boundaries. */
|
|
38
|
-
boundary: '#A6A6C8',
|
|
39
|
-
/** Color used for disputed boundaries. */
|
|
40
|
-
disputed: '#BEBCCF',
|
|
41
|
-
/** Color used for residential areas. */
|
|
42
|
-
residential: '#EAE6E133',
|
|
43
|
-
/** Color used for commercial areas. */
|
|
44
|
-
commercial: '#F7DEED40',
|
|
45
|
-
/** Color used for industrial areas. */
|
|
46
|
-
industrial: '#FFF4C255',
|
|
47
|
-
/** Color used for footpaths and pedestrian areas. */
|
|
48
|
-
foot: '#FBEBFF',
|
|
49
|
-
/** Primary color used for labels. */
|
|
50
|
-
label: '#333344',
|
|
51
|
-
/** Color used for label halos. */
|
|
52
|
-
labelHalo: '#FFFFFFCC',
|
|
53
|
-
/** Color used for shields on maps. */
|
|
54
|
-
shield: '#FFFFFF',
|
|
55
|
-
/** Color used for agriculture areas. */
|
|
56
|
-
agriculture: '#F0E7D1',
|
|
57
|
-
/** Color used for railways. */
|
|
58
|
-
rail: '#B1BBC4',
|
|
59
|
-
/** Color used for subways and underground systems. */
|
|
60
|
-
subway: '#A6B8C7',
|
|
61
|
-
/** Color used for cycle paths. */
|
|
62
|
-
cycle: '#EFF9FF',
|
|
63
|
-
/** Color used for waste areas. */
|
|
64
|
-
waste: '#DBD6BD',
|
|
65
|
-
/** Color used for burial and cemetery areas. */
|
|
66
|
-
burial: '#DDDBCA',
|
|
67
|
-
/** Color used for sand areas like beaches. */
|
|
68
|
-
sand: '#FAFAED',
|
|
69
|
-
/** Color used for rocky terrain. */
|
|
70
|
-
rock: '#E0E4E5',
|
|
71
|
-
/** Color used for leisure areas like parks and gardens. */
|
|
72
|
-
leisure: '#E7EDDE',
|
|
73
|
-
/** Color used for wetland areas like marshes. */
|
|
74
|
-
wetland: '#D3E6DB',
|
|
75
|
-
/** Color used for various symbols on the map. */
|
|
76
|
-
symbol: '#66626A',
|
|
77
|
-
/** Color indicating danger or warning areas. */
|
|
78
|
-
danger: '#FF0000',
|
|
79
|
-
/** Color used for prison areas. */
|
|
80
|
-
prison: '#FDF2FC',
|
|
81
|
-
/** Color used for parking areas. */
|
|
82
|
-
parking: '#EBE8E6',
|
|
83
|
-
/** Color used for construction sites. */
|
|
84
|
-
construction: '#A9A9A9',
|
|
85
|
-
/** Color used for educational facilities. */
|
|
86
|
-
education: '#FFFF80',
|
|
87
|
-
/** Color used for hospitals and medical facilities. */
|
|
88
|
-
hospital: '#FF6666',
|
|
89
|
-
/** Color used for points of interest. */
|
|
90
|
-
poi: '#555555',
|
|
91
|
-
};
|
|
92
|
-
getStyleRules(options) {
|
|
93
|
-
const { colors, fonts } = options;
|
|
94
|
-
return {
|
|
95
|
-
// background
|
|
96
|
-
'background': {
|
|
97
|
-
color: colors.land,
|
|
98
|
-
},
|
|
99
|
-
// boundary
|
|
100
|
-
'boundary-{country,state}:outline': {
|
|
101
|
-
color: colors.land.lighten(0.1),
|
|
102
|
-
lineBlur: 1,
|
|
103
|
-
lineCap: 'round',
|
|
104
|
-
lineJoin: 'round',
|
|
105
|
-
},
|
|
106
|
-
'boundary-{country,state}': {
|
|
107
|
-
color: colors.boundary,
|
|
108
|
-
lineCap: 'round',
|
|
109
|
-
lineJoin: 'round',
|
|
110
|
-
},
|
|
111
|
-
'boundary-country{-disputed,}:outline': {
|
|
112
|
-
size: { 2: 0, 3: 2, 10: 8 },
|
|
113
|
-
opacity: 0.75,
|
|
114
|
-
color: colors.land.lighten(0.05),
|
|
115
|
-
},
|
|
116
|
-
'boundary-country{-disputed,}': {
|
|
117
|
-
size: { 2: 0, 3: 1, 10: 4 },
|
|
118
|
-
},
|
|
119
|
-
'boundary-country-disputed': {
|
|
120
|
-
color: colors.disputed,
|
|
121
|
-
lineDasharray: [2, 1],
|
|
122
|
-
lineCap: 'square',
|
|
123
|
-
},
|
|
124
|
-
'boundary-state:outline': {
|
|
125
|
-
size: { 7: 0, 8: 2, 10: 4 },
|
|
126
|
-
opacity: 0.75,
|
|
127
|
-
},
|
|
128
|
-
'boundary-state': {
|
|
129
|
-
size: { 7: 0, 8: 1, 10: 2 },
|
|
130
|
-
},
|
|
131
|
-
// water
|
|
132
|
-
'water-*': {
|
|
133
|
-
color: colors.water,
|
|
134
|
-
lineCap: 'round',
|
|
135
|
-
lineJoin: 'round',
|
|
136
|
-
},
|
|
137
|
-
'water-area': {
|
|
138
|
-
opacity: { 4: 0, 6: 1 },
|
|
139
|
-
},
|
|
140
|
-
'water-area-*': {
|
|
141
|
-
opacity: { 4: 0, 6: 1 },
|
|
142
|
-
},
|
|
143
|
-
'water-{pier,dam}-area': {
|
|
144
|
-
color: colors.land,
|
|
145
|
-
opacity: { 12: 0, 13: 1 },
|
|
146
|
-
},
|
|
147
|
-
'water-pier': {
|
|
148
|
-
color: colors.land,
|
|
149
|
-
},
|
|
150
|
-
'water-river': {
|
|
151
|
-
lineWidth: { 9: 0, 10: 3, 15: 5, 17: 9, 18: 20, 20: 60 },
|
|
152
|
-
},
|
|
153
|
-
'water-canal': {
|
|
154
|
-
lineWidth: { 9: 0, 10: 2, 15: 4, 17: 8, 18: 17, 20: 50 },
|
|
155
|
-
},
|
|
156
|
-
'water-stream': {
|
|
157
|
-
lineWidth: { 13: 0, 14: 1, 15: 2, 17: 6, 18: 12, 20: 30 },
|
|
158
|
-
},
|
|
159
|
-
'water-ditch': {
|
|
160
|
-
lineWidth: { 14: 0, 15: 1, 17: 4, 18: 8, 20: 20 },
|
|
161
|
-
},
|
|
162
|
-
// land
|
|
163
|
-
'land-*': {
|
|
164
|
-
color: colors.land,
|
|
165
|
-
},
|
|
166
|
-
'land-glacier': {
|
|
167
|
-
color: colors.glacier,
|
|
168
|
-
},
|
|
169
|
-
'land-forest': {
|
|
170
|
-
color: colors.wood,
|
|
171
|
-
opacity: { 7: 0, 8: 0.1 },
|
|
172
|
-
},
|
|
173
|
-
'land-grass': {
|
|
174
|
-
color: colors.grass,
|
|
175
|
-
opacity: { 11: 0, 12: 1 },
|
|
176
|
-
},
|
|
177
|
-
'land-{park,garden,vegetation}': {
|
|
178
|
-
color: colors.park,
|
|
179
|
-
opacity: { 11: 0, 12: 1 },
|
|
180
|
-
},
|
|
181
|
-
'land-agriculture': {
|
|
182
|
-
color: colors.agriculture,
|
|
183
|
-
opacity: { 10: 0, 11: 1 },
|
|
184
|
-
},
|
|
185
|
-
'land-residential': {
|
|
186
|
-
color: colors.residential,
|
|
187
|
-
opacity: { 10: 0, 11: 1 },
|
|
188
|
-
},
|
|
189
|
-
'land-commercial': {
|
|
190
|
-
color: colors.commercial,
|
|
191
|
-
opacity: { 10: 0, 11: 1 },
|
|
192
|
-
},
|
|
193
|
-
'land-industrial': {
|
|
194
|
-
color: colors.industrial,
|
|
195
|
-
opacity: { 10: 0, 11: 1 },
|
|
196
|
-
},
|
|
197
|
-
'land-waste': {
|
|
198
|
-
color: colors.waste,
|
|
199
|
-
opacity: { 10: 0, 11: 1 },
|
|
200
|
-
},
|
|
201
|
-
'land-burial': {
|
|
202
|
-
color: colors.burial,
|
|
203
|
-
opacity: { 13: 0, 14: 1 },
|
|
204
|
-
},
|
|
205
|
-
'land-leisure': {
|
|
206
|
-
color: colors.leisure,
|
|
207
|
-
},
|
|
208
|
-
'land-rock': {
|
|
209
|
-
color: colors.rock,
|
|
210
|
-
},
|
|
211
|
-
'land-sand': {
|
|
212
|
-
color: colors.sand,
|
|
213
|
-
},
|
|
214
|
-
'land-wetland': {
|
|
215
|
-
color: colors.wetland,
|
|
216
|
-
},
|
|
217
|
-
// site
|
|
218
|
-
'site-dangerarea': {
|
|
219
|
-
color: colors.danger,
|
|
220
|
-
fillOutlineColor: colors.danger,
|
|
221
|
-
opacity: 0.3,
|
|
222
|
-
image: 'basics:pattern-warning',
|
|
223
|
-
},
|
|
224
|
-
'site-hospital': {
|
|
225
|
-
color: colors.hospital,
|
|
226
|
-
opacity: 0.1,
|
|
227
|
-
},
|
|
228
|
-
'site-prison': {
|
|
229
|
-
color: colors.prison,
|
|
230
|
-
image: 'basics:pattern-striped',
|
|
231
|
-
opacity: 0.1,
|
|
232
|
-
},
|
|
233
|
-
'site-construction': {
|
|
234
|
-
color: colors.construction,
|
|
235
|
-
image: 'basics:pattern-hatched_thin',
|
|
236
|
-
opacity: 0.1,
|
|
237
|
-
},
|
|
238
|
-
'site-{university,college,school}': {
|
|
239
|
-
color: colors.education,
|
|
240
|
-
opacity: 0.1,
|
|
241
|
-
},
|
|
242
|
-
'site-{bicycleparking,parking}': {
|
|
243
|
-
color: colors.parking,
|
|
244
|
-
},
|
|
245
|
-
// building
|
|
246
|
-
'building:outline': {
|
|
247
|
-
color: colors.buildingbg,
|
|
248
|
-
opacity: { 14: 0, 15: 1 },
|
|
249
|
-
},
|
|
250
|
-
'building': {
|
|
251
|
-
color: colors.building,
|
|
252
|
-
opacity: { 14: 0, 15: 1 },
|
|
253
|
-
fillTranslate: [-2, -2],
|
|
254
|
-
},
|
|
255
|
-
// airport
|
|
256
|
-
'airport-area': {
|
|
257
|
-
color: colors.street,
|
|
258
|
-
opacity: 0.5,
|
|
259
|
-
},
|
|
260
|
-
'airport-{runway,taxiway}:outline': {
|
|
261
|
-
color: colors.streetbg,
|
|
262
|
-
lineJoin: 'round',
|
|
263
|
-
},
|
|
264
|
-
'airport-{runway,taxiway}': {
|
|
265
|
-
color: colors.street,
|
|
266
|
-
lineJoin: 'round',
|
|
267
|
-
},
|
|
268
|
-
'airport-runway:outline': {
|
|
269
|
-
size: { 11: 0, 12: 6, 13: 9, 14: 16, 15: 24, 16: 40, 17: 100, 18: 160, 20: 300 },
|
|
270
|
-
},
|
|
271
|
-
'airport-runway': {
|
|
272
|
-
size: { 11: 0, 12: 5, 13: 8, 14: 14, 15: 22, 16: 38, 17: 98, 18: 158, 20: 298 },
|
|
273
|
-
opacity: { 11: 0, 12: 1 },
|
|
274
|
-
},
|
|
275
|
-
'airport-taxiway:outline': {
|
|
276
|
-
size: { 13: 0, 14: 2, 15: 10, 16: 14, 18: 20, 20: 40 },
|
|
277
|
-
},
|
|
278
|
-
'airport-taxiway': {
|
|
279
|
-
size: { 13: 0, 14: 1, 15: 8, 16: 12, 18: 18, 20: 36 },
|
|
280
|
-
opacity: { 13: 0, 14: 1 },
|
|
281
|
-
},
|
|
282
|
-
// bridge
|
|
283
|
-
'bridge': {
|
|
284
|
-
color: colors.land.darken(0.02),
|
|
285
|
-
fillAntialias: true,
|
|
286
|
-
opacity: 0.8,
|
|
287
|
-
},
|
|
288
|
-
// street
|
|
289
|
-
// colors and joins
|
|
290
|
-
'{tunnel-,bridge-,}street-*:outline': {
|
|
291
|
-
color: colors.streetbg,
|
|
292
|
-
lineJoin: 'round',
|
|
293
|
-
},
|
|
294
|
-
'{tunnel-,bridge-,}street-*': {
|
|
295
|
-
color: colors.street,
|
|
296
|
-
lineJoin: 'round',
|
|
297
|
-
},
|
|
298
|
-
'tunnel-street-*:outline': {
|
|
299
|
-
color: colors.street.darken(0.13),
|
|
300
|
-
},
|
|
301
|
-
'tunnel-street-*': {
|
|
302
|
-
color: colors.street.darken(0.03),
|
|
303
|
-
},
|
|
304
|
-
'bridge-street-*:outline': {
|
|
305
|
-
color: colors.street.darken(0.15),
|
|
306
|
-
},
|
|
307
|
-
// streets and ways, line caps
|
|
308
|
-
'{tunnel-,}{street,way}-*': {
|
|
309
|
-
lineCap: 'round',
|
|
310
|
-
},
|
|
311
|
-
'{tunnel-,}{street,way}-*:outline': {
|
|
312
|
-
lineCap: 'round',
|
|
313
|
-
},
|
|
314
|
-
'bridge-{street,way}-*': {
|
|
315
|
-
lineCap: 'butt',
|
|
316
|
-
},
|
|
317
|
-
'bridge-{street,way}-*:outline': {
|
|
318
|
-
lineCap: 'butt',
|
|
319
|
-
},
|
|
320
|
-
// faux bridges
|
|
321
|
-
'bridge-{street,way}-*:bridge': {
|
|
322
|
-
lineCap: 'butt',
|
|
323
|
-
lineJoin: 'round',
|
|
324
|
-
color: colors.land.darken(0.02),
|
|
325
|
-
fillAntialias: true,
|
|
326
|
-
opacity: 0.5,
|
|
327
|
-
},
|
|
328
|
-
'bridge-street-motorway:bridge': {
|
|
329
|
-
size: { '5': 0, '6': 3, '10': 7, '14': 7, '16': 20, '18': 53, '19': 118, '20': 235 }
|
|
330
|
-
},
|
|
331
|
-
'bridge-street-trunk:bridge': {
|
|
332
|
-
size: { '7': 0, '8': 3, '10': 6, '14': 8, '16': 17, '18': 50, '19': 104, '20': 202 }
|
|
333
|
-
},
|
|
334
|
-
'bridge-street-primary:bridge': {
|
|
335
|
-
size: { '8': 0, '9': 1, '10': 6, '14': 8, '16': 17, '18': 50, '19': 104, '20': 202 }
|
|
336
|
-
},
|
|
337
|
-
'bridge-street-secondary:bridge': {
|
|
338
|
-
size: { '11': 3, '14': 7, '16': 11, '18': 42, '19': 95, '20': 193 },
|
|
339
|
-
opacity: { '11': 0, '12': 1 }
|
|
340
|
-
},
|
|
341
|
-
'bridge-street-motorway-link:bridge': {
|
|
342
|
-
minzoom: 12,
|
|
343
|
-
size: { '12': 3, '14': 4, '16': 10, '18': 20, '20': 56 }
|
|
344
|
-
},
|
|
345
|
-
'bridge-street-{trunk,primary,secondary}-link:bridge': {
|
|
346
|
-
minzoom: 13,
|
|
347
|
-
size: { '12': 3, '14': 4, '16': 10, '18': 20, '20': 56 }
|
|
348
|
-
},
|
|
349
|
-
'bridge-street-{tertiary,tertiary-link,unclassified,residential,livingstreet,pedestrian}*:bridge': {
|
|
350
|
-
size: { '12': 3, '14': 4, '16': 8, '18': 36, '19': 90, '20': 179 },
|
|
351
|
-
opacity: { '12': 0, '13': 1 }
|
|
352
|
-
},
|
|
353
|
-
'bridge-street-{service,track}:bridge': {
|
|
354
|
-
size: { '14': 3, '16': 6, '18': 25, '19': 67, '20': 134 },
|
|
355
|
-
opacity: { '14': 0, '15': 1 }
|
|
356
|
-
},
|
|
357
|
-
'bridge-way-*:bridge': {
|
|
358
|
-
size: { '15': 0, '16': 7, '18': 10, '19': 17, '20': 31 },
|
|
359
|
-
minzoom: 15
|
|
360
|
-
},
|
|
361
|
-
// special color: motorway
|
|
362
|
-
'{bridge-,}street-motorway{-link,}:outline': {
|
|
363
|
-
color: colors.motorwaybg,
|
|
364
|
-
},
|
|
365
|
-
'{bridge-,}street-motorway{-link,}': {
|
|
366
|
-
color: colors.motorway,
|
|
367
|
-
},
|
|
368
|
-
'{bridge-,}street-{trunk,primary,secondary}{-link,}:outline': {
|
|
369
|
-
color: colors.trunkbg,
|
|
370
|
-
},
|
|
371
|
-
'{bridge-,}street-{trunk,primary,secondary}{-link,}': {
|
|
372
|
-
color: colors.trunk,
|
|
373
|
-
},
|
|
374
|
-
'tunnel-street-motorway{-link,}:outline': {
|
|
375
|
-
color: colors.motorwaybg.lighten(0.05),
|
|
376
|
-
lineDasharray: [1, 0.3],
|
|
377
|
-
},
|
|
378
|
-
'tunnel-street-motorway{-link,}': {
|
|
379
|
-
color: colors.motorway.lighten(0.1),
|
|
380
|
-
lineCap: 'butt',
|
|
381
|
-
},
|
|
382
|
-
'tunnel-street-{trunk,primary,secondary}{-link,}:outline': {
|
|
383
|
-
color: colors.trunkbg.lighten(0.05),
|
|
384
|
-
lineDasharray: [1, 0.3],
|
|
385
|
-
},
|
|
386
|
-
'tunnel-street-{trunk,primary,secondary}{-link,}': {
|
|
387
|
-
color: colors.trunk.lighten(0.1),
|
|
388
|
-
lineCap: 'butt',
|
|
389
|
-
},
|
|
390
|
-
// motorway
|
|
391
|
-
'{bridge-,tunnel-,}street-motorway:outline': {
|
|
392
|
-
size: { 5: 0, 6: 2, 10: 5, 14: 5, 16: 14, 18: 38, 19: 84, 20: 168 },
|
|
393
|
-
},
|
|
394
|
-
'{bridge-,tunnel-,}street-motorway': {
|
|
395
|
-
size: { 5: 0, 6: 1, 10: 4, 14: 4, 16: 12, 18: 36, 19: 80, 20: 160 },
|
|
396
|
-
opacity: { 5: 0, 6: 1 },
|
|
397
|
-
},
|
|
398
|
-
// trunk
|
|
399
|
-
'{bridge-,tunnel-,}street-trunk:outline': {
|
|
400
|
-
size: { 7: 0, 8: 2, 10: 4, 14: 6, 16: 12, 18: 36, 19: 74, 20: 144 },
|
|
401
|
-
},
|
|
402
|
-
'{bridge-,tunnel-,}street-trunk': {
|
|
403
|
-
size: { 7: 0, 8: 1, 10: 3, 14: 5, 16: 10, 18: 34, 19: 70, 20: 140 },
|
|
404
|
-
opacity: { 7: 0, 8: 1 },
|
|
405
|
-
},
|
|
406
|
-
// primary
|
|
407
|
-
'{bridge-,tunnel-,}street-primary:outline': {
|
|
408
|
-
size: { 8: 0, 9: 1, 10: 4, 14: 6, 16: 12, 18: 36, 19: 74, 20: 144 },
|
|
409
|
-
},
|
|
410
|
-
'{bridge-,tunnel-,}street-primary': {
|
|
411
|
-
size: { 8: 0, 9: 2, 10: 3, 14: 5, 16: 10, 18: 34, 19: 70, 20: 140 },
|
|
412
|
-
opacity: { 8: 0, 9: 1 },
|
|
413
|
-
},
|
|
414
|
-
// secondary
|
|
415
|
-
'{bridge-,tunnel-,}street-secondary:outline': {
|
|
416
|
-
size: { 11: 2, 14: 5, 16: 8, 18: 30, 19: 68, 20: 138 },
|
|
417
|
-
opacity: { 11: 0, 12: 1 },
|
|
418
|
-
},
|
|
419
|
-
'{bridge-,tunnel-,}street-secondary': {
|
|
420
|
-
size: { 11: 1, 14: 4, 16: 6, 18: 28, 19: 64, 20: 130 },
|
|
421
|
-
opacity: { 11: 0, 12: 1 },
|
|
422
|
-
},
|
|
423
|
-
// links
|
|
424
|
-
'{bridge-,tunnel-,}street-motorway-link:outline': {
|
|
425
|
-
minzoom: 12,
|
|
426
|
-
size: { 12: 2, 14: 3, 16: 7, 18: 14, 20: 40 },
|
|
427
|
-
// opacity: { 12: 0, 13: 1 }, // no fade-in because those are merged in lower zooms
|
|
428
|
-
},
|
|
429
|
-
'{bridge-,tunnel-,}street-motorway-link': {
|
|
430
|
-
minzoom: 12,
|
|
431
|
-
size: { 12: 1, 14: 2, 16: 5, 18: 12, 20: 38 },
|
|
432
|
-
// opacity: { 12: 0, 13: 1 }, // no fade-in because those are merged in lower zooms
|
|
433
|
-
},
|
|
434
|
-
'{bridge-,tunnel-,}street-{trunk,primary,secondary}-link:outline': {
|
|
435
|
-
minzoom: 13,
|
|
436
|
-
size: { 12: 2, 14: 3, 16: 7, 18: 14, 20: 40 },
|
|
437
|
-
// opacity: { 13: 0, 14: 1 }, // no fade-in because those are merged in lower zooms
|
|
438
|
-
},
|
|
439
|
-
'{bridge-,tunnel-,}street-{trunk,primary,secondary}-link': {
|
|
440
|
-
minzoom: 13,
|
|
441
|
-
size: { 12: 1, 14: 2, 16: 5, 18: 12, 20: 38 },
|
|
442
|
-
// opacity: { 13: 0, 14: 1 }, // no fade-in because those are merged in lower zooms
|
|
443
|
-
},
|
|
444
|
-
// minor streets
|
|
445
|
-
'{bridge-,tunnel-,}street-{tertiary,tertiary-link,unclassified,residential,livingstreet,pedestrian}*:outline': {
|
|
446
|
-
size: { 12: 2, 14: 3, 16: 6, 18: 26, 19: 64, 20: 128 },
|
|
447
|
-
opacity: { 12: 0, 13: 1 },
|
|
448
|
-
},
|
|
449
|
-
'{bridge-,tunnel-,}street-{tertiary,tertiary-link,unclassified,residential,livingstreet,pedestrian}*': {
|
|
450
|
-
size: { 12: 1, 14: 2, 16: 5, 18: 24, 19: 60, 20: 120 },
|
|
451
|
-
opacity: { 12: 0, 13: 1 },
|
|
452
|
-
},
|
|
453
|
-
// service and tracks
|
|
454
|
-
'{bridge-,tunnel-,}street-{service,track}:outline': {
|
|
455
|
-
size: { 14: 2, 16: 4, 18: 18, 19: 48, 20: 96 },
|
|
456
|
-
opacity: { 14: 0, 15: 1 },
|
|
457
|
-
},
|
|
458
|
-
'{bridge-,tunnel-,}street-{service,track}': {
|
|
459
|
-
size: { 14: 1, 16: 3, 18: 16, 19: 44, 20: 88 },
|
|
460
|
-
opacity: { 14: 0, 15: 1 },
|
|
461
|
-
},
|
|
462
|
-
// ways
|
|
463
|
-
'{bridge-,tunnel-,}way-*:outline': {
|
|
464
|
-
size: { 15: 0, 16: 5, 18: 7, 19: 12, 20: 22 },
|
|
465
|
-
minzoom: 15,
|
|
466
|
-
},
|
|
467
|
-
'{bridge-,tunnel-,}way-*': {
|
|
468
|
-
size: { 15: 0, 16: 4, 18: 6, 19: 10, 20: 20 },
|
|
469
|
-
minzoom: 15,
|
|
470
|
-
},
|
|
471
|
-
// foot
|
|
472
|
-
'{bridge-,}way-{footway,path,steps}:outline': {
|
|
473
|
-
color: colors.foot.darken(0.1),
|
|
474
|
-
},
|
|
475
|
-
'{bridge-,}way-{footway,path,steps}': {
|
|
476
|
-
color: colors.foot.lighten(0.02),
|
|
477
|
-
},
|
|
478
|
-
'tunnel-way-{footway,path,steps}:outline': {
|
|
479
|
-
color: colors.foot.darken(0.1).saturate(-0.5),
|
|
480
|
-
},
|
|
481
|
-
'tunnel-way-{footway,path,steps}': {
|
|
482
|
-
color: colors.foot.darken(0.02).saturate(-0.5),
|
|
483
|
-
lineDasharray: [1, 0.2],
|
|
484
|
-
},
|
|
485
|
-
// cycleway
|
|
486
|
-
'{bridge-,}way-cycleway:outline': {
|
|
487
|
-
color: colors.cycle.darken(0.1),
|
|
488
|
-
},
|
|
489
|
-
'{bridge-,}way-cycleway': {
|
|
490
|
-
color: colors.cycle,
|
|
491
|
-
},
|
|
492
|
-
'tunnel-way-cycleway:outline': {
|
|
493
|
-
color: colors.cycle.darken(0.1).saturate(-0.5),
|
|
494
|
-
},
|
|
495
|
-
'tunnel-way-cycleway': {
|
|
496
|
-
color: colors.cycle.darken(0.02).saturate(-0.5),
|
|
497
|
-
lineDasharray: [1, 0.2],
|
|
498
|
-
},
|
|
499
|
-
// cycle streets overlay
|
|
500
|
-
'{bridge-,tunnel-,}street-{tertiary,tertiary-link,unclassified,residential,livingstreet,pedestrian}-bicycle': {
|
|
501
|
-
lineCap: 'butt',
|
|
502
|
-
color: colors.cycle,
|
|
503
|
-
},
|
|
504
|
-
// pedestrian
|
|
505
|
-
'street-pedestrian': {
|
|
506
|
-
size: { 12: 1, 14: 2, 16: 5, 18: 24, 19: 60, 20: 120 },
|
|
507
|
-
opacity: { 13: 0, 14: 1 },
|
|
508
|
-
color: colors.foot,
|
|
509
|
-
},
|
|
510
|
-
'street-pedestrian-zone': {
|
|
511
|
-
color: colors.foot.lighten(0.02).fade(0.75),
|
|
512
|
-
opacity: { 14: 0, 15: 1 },
|
|
513
|
-
},
|
|
514
|
-
// rail, lightrail
|
|
515
|
-
'{tunnel-,bridge-,}transport-{rail,lightrail}:outline': {
|
|
516
|
-
color: colors.rail,
|
|
517
|
-
size: { 8: 1, 13: 1, 15: 3, 16: 4, 18: 8, 19: 11, 20: 14 },
|
|
518
|
-
},
|
|
519
|
-
'{tunnel-,bridge-,}transport-{rail,lightrail}': {
|
|
520
|
-
color: colors.rail.lighten(0.25),
|
|
521
|
-
size: { 8: 1, 13: 1, 15: 2, 16: 3, 18: 6, 19: 8, 20: 10 },
|
|
522
|
-
lineDasharray: [2, 2],
|
|
523
|
-
},
|
|
524
|
-
// subway
|
|
525
|
-
'{tunnel-,bridge-,}transport-subway:outline': {
|
|
526
|
-
color: colors.subway,
|
|
527
|
-
size: { 11: 0, 12: 1, 15: 3, 16: 3, 18: 6, 19: 8, 20: 10 },
|
|
528
|
-
},
|
|
529
|
-
'{tunnel-,bridge-,}transport-subway': {
|
|
530
|
-
color: colors.subway.lighten(0.25),
|
|
531
|
-
size: { 11: 0, 12: 1, 15: 2, 16: 2, 18: 5, 19: 6, 20: 8 },
|
|
532
|
-
lineDasharray: [2, 2],
|
|
533
|
-
},
|
|
534
|
-
// monorail
|
|
535
|
-
'{tunnel-,bridge-,}transport-{tram,narrowgauge,funicular,monorail}:outline': {
|
|
536
|
-
minzoom: 15,
|
|
537
|
-
color: colors.rail,
|
|
538
|
-
size: { 15: 0, 16: 5, 18: 7, 20: 20 },
|
|
539
|
-
lineDasharray: [0.1, 0.5],
|
|
540
|
-
},
|
|
541
|
-
'{tunnel-,bridge-,}transport-{tram,narrowgauge,funicular,monorail}': {
|
|
542
|
-
minzoom: 13,
|
|
543
|
-
size: { 13: 0, 16: 1, 17: 2, 18: 3, 20: 5 },
|
|
544
|
-
color: colors.rail,
|
|
545
|
-
},
|
|
546
|
-
// bridge
|
|
547
|
-
'{bridge-,}transport-rail:outline': {
|
|
548
|
-
opacity: { 8: 0, 9: 1 },
|
|
549
|
-
},
|
|
550
|
-
'{bridge-,}transport-rail': {
|
|
551
|
-
opacity: { 14: 0, 15: 1 },
|
|
552
|
-
},
|
|
553
|
-
'{bridge-,}transport-{lightrail,subway}:outline': {
|
|
554
|
-
opacity: { 11: 0, 12: 1 },
|
|
555
|
-
},
|
|
556
|
-
'{bridge-,}transport-{lightrail,subway}': {
|
|
557
|
-
opacity: { 14: 0, 15: 1 },
|
|
558
|
-
},
|
|
559
|
-
// tunnel
|
|
560
|
-
'tunnel-transport-rail:outline': {
|
|
561
|
-
opacity: { 8: 0, 9: 0.3 },
|
|
562
|
-
},
|
|
563
|
-
'tunnel-transport-rail': {
|
|
564
|
-
opacity: { 14: 0, 15: 0.3 },
|
|
565
|
-
},
|
|
566
|
-
'tunnel-transport-{lightrail,subway}:outline': {
|
|
567
|
-
opacity: { 11: 0, 12: 0.5 },
|
|
568
|
-
},
|
|
569
|
-
'tunnel-transport-{lightrail,subway}': {
|
|
570
|
-
opacity: { 14: 0, 15: 1 },
|
|
571
|
-
},
|
|
572
|
-
// ferry
|
|
573
|
-
'transport-ferry': {
|
|
574
|
-
minzoom: 10,
|
|
575
|
-
color: colors.water.darken(0.1),
|
|
576
|
-
size: { 10: 1, 13: 2, 14: 3, 16: 4, 17: 6 },
|
|
577
|
-
opacity: { 10: 0, 11: 1 },
|
|
578
|
-
lineDasharray: [1, 1],
|
|
579
|
-
},
|
|
580
|
-
// labels
|
|
581
|
-
'label-boundary-*': {
|
|
582
|
-
color: colors.label,
|
|
583
|
-
font: fonts.regular,
|
|
584
|
-
textTransform: 'uppercase',
|
|
585
|
-
textHaloColor: colors.labelHalo,
|
|
586
|
-
textHaloWidth: 2,
|
|
587
|
-
textHaloBlur: 1,
|
|
588
|
-
textAnchor: 'top',
|
|
589
|
-
textOffset: [0, 0.2],
|
|
590
|
-
textPadding: 0,
|
|
591
|
-
textOptional: true,
|
|
592
|
-
},
|
|
593
|
-
'label-boundary-country-large': {
|
|
594
|
-
minzoom: 2,
|
|
595
|
-
size: { 2: 8, 5: 13 },
|
|
596
|
-
},
|
|
597
|
-
'label-boundary-country-medium': {
|
|
598
|
-
minzoom: 3,
|
|
599
|
-
size: { 3: 8, 5: 12 },
|
|
600
|
-
},
|
|
601
|
-
'label-boundary-country-small': {
|
|
602
|
-
minzoom: 4,
|
|
603
|
-
size: { 4: 8, 5: 11 },
|
|
604
|
-
},
|
|
605
|
-
'label-boundary-state': {
|
|
606
|
-
minzoom: 5,
|
|
607
|
-
color: colors.label.lighten(0.05),
|
|
608
|
-
size: { 5: 8, 8: 12 },
|
|
609
|
-
},
|
|
610
|
-
'label-place-*': {
|
|
611
|
-
color: colors.label.rotateHue(-15).saturate(1).darken(0.05),
|
|
612
|
-
font: fonts.regular,
|
|
613
|
-
textHaloColor: colors.labelHalo,
|
|
614
|
-
textHaloWidth: 2,
|
|
615
|
-
textHaloBlur: 1,
|
|
616
|
-
},
|
|
617
|
-
'label-place-capital': {
|
|
618
|
-
minzoom: 5,
|
|
619
|
-
size: { 5: 12, 10: 16 },
|
|
620
|
-
},
|
|
621
|
-
'label-place-statecapital': {
|
|
622
|
-
minzoom: 6,
|
|
623
|
-
size: { 6: 11, 10: 15 },
|
|
624
|
-
},
|
|
625
|
-
'label-place-city': {
|
|
626
|
-
minzoom: 7,
|
|
627
|
-
size: { 7: 11, 10: 14 },
|
|
628
|
-
},
|
|
629
|
-
'label-place-town': {
|
|
630
|
-
minzoom: 9,
|
|
631
|
-
size: { 8: 11, 12: 14 },
|
|
632
|
-
},
|
|
633
|
-
'label-place-village': {
|
|
634
|
-
minzoom: 11,
|
|
635
|
-
size: { 9: 11, 12: 14 },
|
|
636
|
-
},
|
|
637
|
-
'label-place-hamlet': {
|
|
638
|
-
minzoom: 13,
|
|
639
|
-
size: { 10: 11, 12: 14 },
|
|
640
|
-
},
|
|
641
|
-
// all the city things
|
|
642
|
-
'label-place-suburb': {
|
|
643
|
-
minzoom: 11,
|
|
644
|
-
size: { 11: 11, 13: 14 },
|
|
645
|
-
textTransform: 'uppercase',
|
|
646
|
-
color: colors.label.rotateHue(-30).saturate(1).darken(0.05),
|
|
647
|
-
},
|
|
648
|
-
'label-place-quarter': {
|
|
649
|
-
minzoom: 13,
|
|
650
|
-
size: { 13: 13 },
|
|
651
|
-
textTransform: 'uppercase',
|
|
652
|
-
color: colors.label.rotateHue(-40).saturate(1).darken(0.05),
|
|
653
|
-
},
|
|
654
|
-
'label-place-neighbourhood': {
|
|
655
|
-
minzoom: 14,
|
|
656
|
-
size: { 14: 12 },
|
|
657
|
-
textTransform: 'uppercase',
|
|
658
|
-
color: colors.label.rotateHue(-50).saturate(1).darken(0.05),
|
|
659
|
-
},
|
|
660
|
-
'label-motorway-shield': {
|
|
661
|
-
color: colors.shield,
|
|
662
|
-
font: fonts.bold,
|
|
663
|
-
textHaloColor: colors.motorway,
|
|
664
|
-
textHaloWidth: 0.1,
|
|
665
|
-
textHaloBlur: 1,
|
|
666
|
-
symbolPlacement: 'line',
|
|
667
|
-
textAnchor: 'center',
|
|
668
|
-
minzoom: 14,
|
|
669
|
-
size: { 14: 10, 18: 12, 20: 16 },
|
|
670
|
-
},
|
|
671
|
-
'label-street-*': {
|
|
672
|
-
color: colors.label,
|
|
673
|
-
font: fonts.regular,
|
|
674
|
-
textHaloColor: colors.labelHalo,
|
|
675
|
-
textHaloWidth: 2,
|
|
676
|
-
textHaloBlur: 1,
|
|
677
|
-
symbolPlacement: 'line',
|
|
678
|
-
textAnchor: 'center',
|
|
679
|
-
minzoom: 12,
|
|
680
|
-
size: { 12: 10, 15: 13 },
|
|
681
|
-
},
|
|
682
|
-
'label-address-housenumber': {
|
|
683
|
-
font: fonts.regular,
|
|
684
|
-
textHaloColor: colors.building.lighten(0.05),
|
|
685
|
-
textHaloWidth: 2,
|
|
686
|
-
textHaloBlur: 1,
|
|
687
|
-
symbolPlacement: 'point',
|
|
688
|
-
textAnchor: 'center',
|
|
689
|
-
minzoom: 17,
|
|
690
|
-
size: { 17: 8, 19: 10 },
|
|
691
|
-
color: colors.building.darken(0.3),
|
|
692
|
-
},
|
|
693
|
-
// markings
|
|
694
|
-
'marking-oneway{-reverse,}': {
|
|
695
|
-
minzoom: 16,
|
|
696
|
-
image: 'basics:marking-arrow',
|
|
697
|
-
opacity: { 16: 0, 17: 0.7 },
|
|
698
|
-
font: fonts.regular,
|
|
699
|
-
},
|
|
700
|
-
// TODO: bicycle and pedestrian
|
|
701
|
-
// transit
|
|
702
|
-
'symbol-*': {
|
|
703
|
-
iconSize: 1,
|
|
704
|
-
symbolPlacement: 'point',
|
|
705
|
-
iconOpacity: 0.7,
|
|
706
|
-
iconKeepUpright: true,
|
|
707
|
-
font: fonts.regular,
|
|
708
|
-
size: 10,
|
|
709
|
-
color: colors.symbol,
|
|
710
|
-
iconAnchor: 'bottom',
|
|
711
|
-
textAnchor: 'top',
|
|
712
|
-
textHaloColor: colors.labelHalo,
|
|
713
|
-
textHaloWidth: 2,
|
|
714
|
-
textHaloBlur: 1,
|
|
715
|
-
},
|
|
716
|
-
'symbol-transit-airport': {
|
|
717
|
-
minzoom: 12,
|
|
718
|
-
image: 'basics:icon-airport',
|
|
719
|
-
iconSize: { 12: 0.5, 14: 1 },
|
|
720
|
-
},
|
|
721
|
-
'symbol-transit-airfield': {
|
|
722
|
-
minzoom: 13,
|
|
723
|
-
image: 'basics:icon-airfield',
|
|
724
|
-
iconSize: { 13: 0.5, 15: 1 },
|
|
725
|
-
},
|
|
726
|
-
'symbol-transit-station': {
|
|
727
|
-
minzoom: 13,
|
|
728
|
-
image: 'basics:icon-rail',
|
|
729
|
-
iconSize: { 13: 0.5, 15: 1 },
|
|
730
|
-
},
|
|
731
|
-
'symbol-transit-lightrail': {
|
|
732
|
-
minzoom: 14,
|
|
733
|
-
image: 'basics:icon-rail_light',
|
|
734
|
-
iconSize: { 14: 0.5, 16: 1 },
|
|
735
|
-
},
|
|
736
|
-
'symbol-transit-subway': {
|
|
737
|
-
minzoom: 14,
|
|
738
|
-
image: 'basics:icon-rail_metro',
|
|
739
|
-
iconSize: { 14: 0.5, 16: 1 },
|
|
740
|
-
},
|
|
741
|
-
'symbol-transit-tram': {
|
|
742
|
-
minzoom: 15,
|
|
743
|
-
image: 'basics:transport-tram',
|
|
744
|
-
iconSize: { 15: 0.5, 17: 1 },
|
|
745
|
-
},
|
|
746
|
-
'symbol-transit-bus': {
|
|
747
|
-
minzoom: 16,
|
|
748
|
-
image: 'basics:icon-bus',
|
|
749
|
-
iconSize: { 16: 0.5, 18: 1 },
|
|
750
|
-
},
|
|
751
|
-
// TODO: localized symbols? depends on shortbread
|
|
752
|
-
// pois
|
|
753
|
-
'poi-*': {
|
|
754
|
-
minzoom: 16,
|
|
755
|
-
iconSize: { 16: 0.5, 19: 0.5, 20: 1 },
|
|
756
|
-
opacity: { 16: 0, 17: 0.4 },
|
|
757
|
-
symbolPlacement: 'point',
|
|
758
|
-
iconOptional: true,
|
|
759
|
-
font: fonts.regular,
|
|
760
|
-
color: colors.poi,
|
|
761
|
-
},
|
|
762
|
-
'poi-amenity': {
|
|
763
|
-
image: ['match',
|
|
764
|
-
['get', 'amenity'],
|
|
765
|
-
'arts_centre', 'basics:icon-art_gallery',
|
|
766
|
-
'atm', 'basics:icon-atm',
|
|
767
|
-
'bank', 'basics:icon-bank',
|
|
768
|
-
'bar', 'basics:icon-bar',
|
|
769
|
-
'bench', 'basics:icon-bench',
|
|
770
|
-
'bicycle_rental', 'basics:icon-bicycle_share',
|
|
771
|
-
'biergarten', 'basics:icon-beergarden',
|
|
772
|
-
'cafe', 'basics:icon-cafe',
|
|
773
|
-
'car_rental', 'basics:icon-car_rental',
|
|
774
|
-
'car_sharing', 'basics:icon-car_rental',
|
|
775
|
-
'car_wash', 'basics:icon-car_wash',
|
|
776
|
-
'cinema', 'basics:icon-cinema',
|
|
777
|
-
//'clinic', 'basics:icon-clinic',
|
|
778
|
-
'college', 'basics:icon-college',
|
|
779
|
-
'community_centre', 'basics:icon-community',
|
|
780
|
-
//'courthouse', 'basics:icon-courthouse',
|
|
781
|
-
'dentist', 'basics:icon-dentist',
|
|
782
|
-
'doctors', 'basics:icon-doctor',
|
|
783
|
-
'dog_park', 'basics:icon-dog_park',
|
|
784
|
-
'drinking_water', 'basics:icon-drinking_water',
|
|
785
|
-
'embassy', 'basics:icon-embassy',
|
|
786
|
-
'fast_food', 'basics:icon-fast_food',
|
|
787
|
-
'fire_station', 'basics:icon-fire_station',
|
|
788
|
-
//'food_court', 'basics:icon-food_court',
|
|
789
|
-
'fountain', 'basics:icon-fountain',
|
|
790
|
-
'grave_yard', 'basics:icon-cemetery',
|
|
791
|
-
'hospital', 'basics:icon-hospital',
|
|
792
|
-
'hunting_stand', 'basics:icon-huntingstand',
|
|
793
|
-
'library', 'basics:icon-library',
|
|
794
|
-
'marketplace', 'basics:icon-marketplace',
|
|
795
|
-
'nightclub', 'basics:icon-nightclub',
|
|
796
|
-
'nursing_home', 'basics:icon-nursinghome',
|
|
797
|
-
'pharmacy', 'basics:icon-pharmacy',
|
|
798
|
-
'place_of_worship', 'basics:icon-place_of_worship',
|
|
799
|
-
'playground', 'basics:icon-playground',
|
|
800
|
-
'police', 'basics:icon-police',
|
|
801
|
-
'post_box', 'basics:icon-postbox',
|
|
802
|
-
'post_office', 'basics:icon-post',
|
|
803
|
-
'prison', 'basics:icon-prison',
|
|
804
|
-
'pub', 'basics:icon-beer',
|
|
805
|
-
//'public_building', 'basics:icon-public_building',
|
|
806
|
-
'recycling', 'basics:icon-recycling',
|
|
807
|
-
'restaurant', 'basics:icon-restaurant',
|
|
808
|
-
'school', 'basics:icon-school',
|
|
809
|
-
'shelter', 'basics:icon-shelter',
|
|
810
|
-
'telephone', 'basics:icon-telephone',
|
|
811
|
-
'theatre', 'basics:icon-theatre',
|
|
812
|
-
'toilets', 'basics:icon-toilet',
|
|
813
|
-
'townhall', 'basics:icon-town_hall',
|
|
814
|
-
//'university', 'basics:icon-university',
|
|
815
|
-
'vending_machine', 'basics:icon-vendingmachine',
|
|
816
|
-
'veterinary', 'basics:icon-veterinary',
|
|
817
|
-
'waste_basket', 'basics:icon-waste_basket',
|
|
818
|
-
'',
|
|
819
|
-
],
|
|
820
|
-
},
|
|
821
|
-
'poi-leisure': {
|
|
822
|
-
image: ['match',
|
|
823
|
-
['get', 'leisure'],
|
|
824
|
-
'golf_course', 'basics:icon-golf',
|
|
825
|
-
'ice_rink', 'basics:icon-icerink',
|
|
826
|
-
'pitch', 'basics:icon-pitch',
|
|
827
|
-
//'sports_centre', 'basics:icon-sports_centre',
|
|
828
|
-
'stadium', 'basics:icon-stadium',
|
|
829
|
-
'swimming_pool', 'basics:icon-swimming',
|
|
830
|
-
'water_park', 'basics:icon-waterpark',
|
|
831
|
-
'basics:icon-sports',
|
|
832
|
-
],
|
|
833
|
-
},
|
|
834
|
-
'poi-tourism': {
|
|
835
|
-
image: ['match',
|
|
836
|
-
['get', 'tourism'],
|
|
837
|
-
//'alpine_hut', 'basics:icon-alpine_hut',
|
|
838
|
-
//'bed_and_breakfast', 'basics:icon-bed_and_breakfast',
|
|
839
|
-
//'camp_site', 'basics:icon-camp_site',
|
|
840
|
-
//'caravan_site', 'basics:icon-caravan_site',
|
|
841
|
-
'chalet', 'basics:icon-chalet',
|
|
842
|
-
//'guest_house', 'basics:icon-guest_house',
|
|
843
|
-
//'hostel', 'basics:icon-hostel',
|
|
844
|
-
//'hotel', 'basics:icon-hotel',
|
|
845
|
-
'information', 'basics:transport-information',
|
|
846
|
-
//'motel', 'basics:icon-motel',
|
|
847
|
-
'picnic_site', 'basics:icon-picnic_site',
|
|
848
|
-
//'theme_park', 'basics:icon-theme_park',
|
|
849
|
-
'viewpoint', 'basics:icon-viewpoint',
|
|
850
|
-
'zoo', 'basics:icon-zoo',
|
|
851
|
-
'',
|
|
852
|
-
],
|
|
853
|
-
},
|
|
854
|
-
'poi-shop': {
|
|
855
|
-
image: ['match',
|
|
856
|
-
['get', 'shop'],
|
|
857
|
-
'alcohol', 'basics:icon-alcohol_shop',
|
|
858
|
-
'bakery', 'basics:icon-bakery',
|
|
859
|
-
'beauty', 'basics:icon-beauty',
|
|
860
|
-
'beverages', 'basics:icon-beverages',
|
|
861
|
-
//'bicycle', 'basics:icon-bicycle',
|
|
862
|
-
'books', 'basics:icon-books',
|
|
863
|
-
'butcher', 'basics:icon-butcher',
|
|
864
|
-
//'car', 'basics:icon-car',
|
|
865
|
-
'chemist', 'basics:icon-chemist',
|
|
866
|
-
'clothes', 'basics:icon-clothes',
|
|
867
|
-
//'computer', 'basics:icon-computer',
|
|
868
|
-
//'convinience', 'basics:icon-convinience',
|
|
869
|
-
//'department_store', 'basics:icon-department_store',
|
|
870
|
-
'doityourself', 'basics:icon-doityourself',
|
|
871
|
-
'dry_cleaning', 'basics:icon-drycleaning',
|
|
872
|
-
'florist', 'basics:icon-florist',
|
|
873
|
-
'furniture', 'basics:icon-furniture',
|
|
874
|
-
'garden_centre', 'basics:icon-garden_centre',
|
|
875
|
-
'general', 'basics:icon-shop',
|
|
876
|
-
'gift', 'basics:icon-gift',
|
|
877
|
-
'greengrocer', 'basics:icon-greengrocer',
|
|
878
|
-
'hairdresser', 'basics:icon-hairdresser',
|
|
879
|
-
'hardware', 'basics:icon-hardware',
|
|
880
|
-
'jewelry', 'basics:icon-jewelry_store',
|
|
881
|
-
'kiosk', 'basics:icon-kiosk',
|
|
882
|
-
'laundry', 'basics:icon-laundry',
|
|
883
|
-
//'mall', 'basics:icon-mall',
|
|
884
|
-
//'mobile_phone', 'basics:icon-mobile_phone',
|
|
885
|
-
'newsagent', 'basics:icon-newsagent',
|
|
886
|
-
'optican', 'basics:icon-optician',
|
|
887
|
-
'outdoor', 'basics:icon-outdoor',
|
|
888
|
-
'shoes', 'basics:icon-shoes',
|
|
889
|
-
'sports', 'basics:icon-sports',
|
|
890
|
-
'stationery', 'basics:icon-stationery',
|
|
891
|
-
//'supermarket', 'basics:icon-supermarket',
|
|
892
|
-
'toys', 'basics:icon-toys',
|
|
893
|
-
'travel_agency', 'basics:icon-travel_agent',
|
|
894
|
-
'video', 'basics:icon-video',
|
|
895
|
-
'basics:icon-shop',
|
|
896
|
-
],
|
|
897
|
-
},
|
|
898
|
-
'poi-man_made': {
|
|
899
|
-
image: ['match',
|
|
900
|
-
['get', 'man_made'],
|
|
901
|
-
'lighthouse', 'basics:icon-lighthouse',
|
|
902
|
-
'surveillance', 'basics:icon-surveillance',
|
|
903
|
-
'tower', 'basics:icon-observation_tower',
|
|
904
|
-
//'wastewater_plant', 'basics:icon-wastewater_plant',
|
|
905
|
-
//'water_well', 'basics:icon-water_well',
|
|
906
|
-
//'water_works', 'basics:icon-water_works',
|
|
907
|
-
'watermill', 'basics:icon-watermill',
|
|
908
|
-
'windmill', 'basics:icon-windmill',
|
|
909
|
-
'',
|
|
910
|
-
],
|
|
911
|
-
},
|
|
912
|
-
'poi-historic': {
|
|
913
|
-
image: ['match',
|
|
914
|
-
['get', 'historic'],
|
|
915
|
-
//'archaelogical_site', 'basics:icon-archaelogical_site',
|
|
916
|
-
'artwork', 'basics:icon-artwork',
|
|
917
|
-
//'battlefield', 'basics:icon-battlefield',
|
|
918
|
-
'castle', 'basics:icon-castle',
|
|
919
|
-
//'fort', 'basics:icon-fort',
|
|
920
|
-
//'memorial', 'basics:icon-memorial',
|
|
921
|
-
'monument', 'basics:icon-monument',
|
|
922
|
-
//'ruins', 'basics:icon-ruins',
|
|
923
|
-
//'wayside_cross', 'basics:icon-wayside_cross',
|
|
924
|
-
'wayside_shrine', 'basics:icon-shrine',
|
|
925
|
-
'basics:icon-historic',
|
|
926
|
-
],
|
|
927
|
-
},
|
|
928
|
-
'poi-emergency': {
|
|
929
|
-
image: ['match',
|
|
930
|
-
['get', 'emergency'],
|
|
931
|
-
'defibrillator', 'basics:icon-defibrillator',
|
|
932
|
-
'fire_hydrant', 'basics:icon-hydrant',
|
|
933
|
-
'phone', 'basics:icon-emergency_phone',
|
|
934
|
-
'',
|
|
935
|
-
],
|
|
936
|
-
},
|
|
937
|
-
/*
|
|
938
|
-
'poi-highway': {
|
|
939
|
-
image: ['match',
|
|
940
|
-
['get', 'highway'],
|
|
941
|
-
//'emergency_access_point', 'basics:icon-emergency_access_point',
|
|
942
|
-
''
|
|
943
|
-
]
|
|
944
|
-
},
|
|
945
|
-
'poi-office': {
|
|
946
|
-
image: ['match',
|
|
947
|
-
['get', 'office'],
|
|
948
|
-
//'diplomatic', 'basics:icon-diplomatic',
|
|
949
|
-
''
|
|
950
|
-
]
|
|
951
|
-
},
|
|
952
|
-
*/
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
//# sourceMappingURL=colorful.js.map
|