@mapless/core 0.0.2 → 0.0.6
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.js +410 -409
- package/dist/types/Mapless/theme/dzmap/cyber.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/cyber.d.ts.map +1 -1
- package/dist/types/Mapless/theme/dzmap/dark.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/dark.d.ts.map +1 -1
- package/dist/types/Mapless/theme/dzmap/light.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/light.d.ts.map +1 -1
- package/dist/types/Mapless/theme/dzmap/satellite.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/satellite.d.ts.map +1 -1
- package/dist/types/Mapless/theme/dzmap/source/dem.d.ts +2 -2
- package/dist/types/Mapless/theme/dzmap/source/dzbuildings.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/source/openmaptiles.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/source/satellite.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/streets.d.ts +1 -1
- package/dist/types/Mapless/theme/dzmap/streets.d.ts.map +1 -1
- package/dist/types/Mapless/theme/lite.d.ts +1 -1
- package/dist/types/Mapless/theme/lite.d.ts.map +1 -1
- package/dist/types/Mapless/themeSources.d.ts +1 -1
- package/dist/types/Mapless/themeSources.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -841,36 +841,36 @@ const background_layer = (tag)=>({
|
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
const background = background_layer;
|
|
844
|
-
const dem_source = {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
};
|
|
859
|
-
const sourceTerrain = {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
};
|
|
844
|
+
const dem_source = ()=>({
|
|
845
|
+
type: 'raster-dem',
|
|
846
|
+
tiles: [
|
|
847
|
+
`${maplessPreset.geoServer}/gwc/service/wmts?layer=dz:guangdong_3857_RGB&style=&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix=EPSG:3857:{z}&TileCol={x}&TileRow={y}`
|
|
848
|
+
],
|
|
849
|
+
tileSize: 256,
|
|
850
|
+
maxzoom: 14,
|
|
851
|
+
volatile: true,
|
|
852
|
+
bounds: [
|
|
853
|
+
109.65069444444444,
|
|
854
|
+
20.214208386826517,
|
|
855
|
+
117.31368314409761,
|
|
856
|
+
25.519861111111112
|
|
857
|
+
]
|
|
858
|
+
});
|
|
859
|
+
const sourceTerrain = ()=>({
|
|
860
|
+
type: 'raster-dem',
|
|
861
|
+
tiles: [
|
|
862
|
+
`${maplessPreset.geoServer}/gwc/service/wmts?layer=dz:guangdong_3857_RGB&style=&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix=EPSG:3857:{z}&TileCol={x}&TileRow={y}`
|
|
863
|
+
],
|
|
864
|
+
tileSize: 256,
|
|
865
|
+
maxzoom: 14,
|
|
866
|
+
volatile: true,
|
|
867
|
+
bounds: [
|
|
868
|
+
109.65069444444444,
|
|
869
|
+
20.214208386826517,
|
|
870
|
+
117.31368314409761,
|
|
871
|
+
25.519861111111112
|
|
872
|
+
]
|
|
873
|
+
});
|
|
874
874
|
const layer_hillshade = (tag, exaggeration = 0.8, illuminationDirection = 315)=>({
|
|
875
875
|
id: 'hillshade-layer',
|
|
876
876
|
type: 'hillshade',
|
|
@@ -915,13 +915,13 @@ const dem = {
|
|
|
915
915
|
terrain
|
|
916
916
|
};
|
|
917
917
|
const source_dem = dem;
|
|
918
|
-
const dzbuildings_source = {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
};
|
|
918
|
+
const dzbuildings_source = ()=>({
|
|
919
|
+
type: 'vector',
|
|
920
|
+
scheme: 'tms',
|
|
921
|
+
tiles: [
|
|
922
|
+
`${maplessPreset.geoServer}/gwc/service/tms/1.0.0/dz:gzbuildings@EPSG:3857@pbf/{z}/{x}/{y}.pbf`
|
|
923
|
+
]
|
|
924
|
+
});
|
|
925
925
|
const layer_guangzhou = (tag)=>({
|
|
926
926
|
id: 'guangzhou',
|
|
927
927
|
type: 'fill',
|
|
@@ -1029,13 +1029,13 @@ const emptySource = {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
const empty = emptySource;
|
|
1032
|
-
const openmaptiles_source = {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
};
|
|
1032
|
+
const openmaptiles_source = ()=>({
|
|
1033
|
+
type: 'vector',
|
|
1034
|
+
scheme: 'tms',
|
|
1035
|
+
tiles: [
|
|
1036
|
+
`${maplessPreset.geoServer}/gwc/service/tms/1.0.0/dz:planetchina@EPSG:3857@pbf/{z}/{x}/{y}.pbf`
|
|
1037
|
+
]
|
|
1038
|
+
});
|
|
1039
1039
|
const openmaptiles_layers_cyber = [
|
|
1040
1040
|
{
|
|
1041
1041
|
id: 'water',
|
|
@@ -10197,201 +10197,201 @@ const openmaptiles = {
|
|
|
10197
10197
|
layers_streets: openmaptiles_layers_streets
|
|
10198
10198
|
};
|
|
10199
10199
|
const source_openmaptiles = openmaptiles;
|
|
10200
|
-
const cyber = {
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10200
|
+
const cyber = ()=>({
|
|
10201
|
+
version: 8,
|
|
10202
|
+
sprite: `${maplessPreset.mapboxAssets}/style/sprite`,
|
|
10203
|
+
glyphs: `${maplessPreset.mapboxAssets}/glyphs/mapbox/{fontstack}/{range}.pbf`,
|
|
10204
|
+
name: 'CyberMap',
|
|
10205
|
+
projection: {
|
|
10206
|
+
name: 'globe'
|
|
10207
|
+
},
|
|
10208
|
+
sources: {
|
|
10209
|
+
openmaptiles: source_openmaptiles.source(),
|
|
10210
|
+
gzsBuildings: maplessPreset.ENABLE_BUILDINGS ? dzbuildings.source() : empty,
|
|
10211
|
+
dem: source_dem.source(),
|
|
10212
|
+
'dem-terrain': source_dem.sourceTerrain()
|
|
10213
|
+
},
|
|
10214
|
+
metadata: {
|
|
10215
|
+
'mapbox:autocomposite': false,
|
|
10216
|
+
'mapbox:groups': {
|
|
10217
|
+
'101da9f13b64a08fa4b6ac1168e89e5f': {
|
|
10218
|
+
collapsed: true,
|
|
10219
|
+
name: 'Places'
|
|
10220
|
+
},
|
|
10221
|
+
a14c9607bc7954ba1df7205bf660433f: {
|
|
10222
|
+
collapsed: true,
|
|
10223
|
+
name: 'Boundaries'
|
|
10224
|
+
},
|
|
10225
|
+
b6371a3f2f5a9932464fa3867530a2e5: {
|
|
10226
|
+
collapsed: true,
|
|
10227
|
+
name: 'Transportation'
|
|
10228
|
+
}
|
|
10224
10229
|
},
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
}
|
|
10230
|
+
'mapbox:type': 'template',
|
|
10231
|
+
'openmaptiles:version': '3.x',
|
|
10232
|
+
'maputnik:renderer': 'mlgljs'
|
|
10229
10233
|
},
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
fog: {
|
|
10235
|
-
range: [
|
|
10236
|
-
1,
|
|
10237
|
-
10
|
|
10238
|
-
],
|
|
10239
|
-
color: [
|
|
10240
|
-
'interpolate',
|
|
10241
|
-
[
|
|
10242
|
-
'exponential',
|
|
10243
|
-
1.2
|
|
10244
|
-
],
|
|
10245
|
-
[
|
|
10246
|
-
'zoom'
|
|
10234
|
+
fog: {
|
|
10235
|
+
range: [
|
|
10236
|
+
1,
|
|
10237
|
+
10
|
|
10247
10238
|
],
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10239
|
+
color: [
|
|
10240
|
+
'interpolate',
|
|
10241
|
+
[
|
|
10242
|
+
'exponential',
|
|
10243
|
+
1.2
|
|
10244
|
+
],
|
|
10245
|
+
[
|
|
10246
|
+
'zoom'
|
|
10247
|
+
],
|
|
10248
|
+
5.5,
|
|
10249
|
+
'hsla(220, 67%, 56%, 1.00)',
|
|
10250
|
+
6,
|
|
10251
|
+
'hsla(210, 40%, 55%, 0.75)'
|
|
10252
|
+
],
|
|
10253
|
+
'high-color': 'hsla(200, 40%, 75%, 0.5)',
|
|
10254
|
+
'space-color': 'hsla(220, 54%, 34%, 1.00)',
|
|
10255
|
+
'horizon-blend': 0.2,
|
|
10256
|
+
'star-intensity': 0.3
|
|
10257
|
+
},
|
|
10258
|
+
terrain: source_dem.terrain,
|
|
10259
|
+
layers: [
|
|
10260
|
+
background('cyber'),
|
|
10261
|
+
...source_openmaptiles.layers_cyber,
|
|
10262
|
+
...maplessPreset.ENABLE_BUILDINGS ? dzbuildings.layers_cyber : [],
|
|
10263
|
+
...source_dem.layers_cyber
|
|
10264
|
+
]
|
|
10265
|
+
});
|
|
10266
10266
|
const dzmap_cyber = cyber;
|
|
10267
|
-
const dark = {
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10267
|
+
const dark = ()=>({
|
|
10268
|
+
version: 8,
|
|
10269
|
+
sprite: `${maplessPreset.mapboxAssets}/style/sprite`,
|
|
10270
|
+
glyphs: `${maplessPreset.mapboxAssets}/glyphs/mapbox/{fontstack}/{range}.pbf`,
|
|
10271
|
+
name: 'BlankMap',
|
|
10272
|
+
projection: {
|
|
10273
|
+
name: 'globe'
|
|
10274
|
+
},
|
|
10275
|
+
sources: {
|
|
10276
|
+
openmaptiles: source_openmaptiles.source(),
|
|
10277
|
+
gzsBuildings: maplessPreset.ENABLE_BUILDINGS ? dzbuildings.source() : empty,
|
|
10278
|
+
dem: source_dem.source(),
|
|
10279
|
+
'dem-terrain': source_dem.sourceTerrain()
|
|
10280
|
+
},
|
|
10281
|
+
metadata: {
|
|
10282
|
+
'mapbox:autocomposite': false,
|
|
10283
|
+
'mapbox:groups': {
|
|
10284
|
+
'101da9f13b64a08fa4b6ac1168e89e5f': {
|
|
10285
|
+
collapsed: true,
|
|
10286
|
+
name: 'Places'
|
|
10287
|
+
},
|
|
10288
|
+
a14c9607bc7954ba1df7205bf660433f: {
|
|
10289
|
+
collapsed: true,
|
|
10290
|
+
name: 'Boundaries'
|
|
10291
|
+
},
|
|
10292
|
+
b6371a3f2f5a9932464fa3867530a2e5: {
|
|
10293
|
+
collapsed: true,
|
|
10294
|
+
name: 'Transportation'
|
|
10295
|
+
}
|
|
10291
10296
|
},
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
}
|
|
10297
|
+
'mapbox:type': 'template',
|
|
10298
|
+
'openmaptiles:version': '3.x',
|
|
10299
|
+
'maputnik:renderer': 'mlgljs'
|
|
10296
10300
|
},
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
fog: {
|
|
10302
|
-
range: [
|
|
10303
|
-
1,
|
|
10304
|
-
10
|
|
10305
|
-
],
|
|
10306
|
-
color: [
|
|
10307
|
-
'interpolate',
|
|
10308
|
-
[
|
|
10309
|
-
'exponential',
|
|
10310
|
-
1.2
|
|
10311
|
-
],
|
|
10312
|
-
[
|
|
10313
|
-
'zoom'
|
|
10301
|
+
fog: {
|
|
10302
|
+
range: [
|
|
10303
|
+
1,
|
|
10304
|
+
10
|
|
10314
10305
|
],
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10306
|
+
color: [
|
|
10307
|
+
'interpolate',
|
|
10308
|
+
[
|
|
10309
|
+
'exponential',
|
|
10310
|
+
1.2
|
|
10311
|
+
],
|
|
10312
|
+
[
|
|
10313
|
+
'zoom'
|
|
10314
|
+
],
|
|
10315
|
+
5.5,
|
|
10316
|
+
'hsla(0, 0%, 16%, 1)',
|
|
10317
|
+
6,
|
|
10318
|
+
'hsla(0, 0%, 16%, 0.75)'
|
|
10319
|
+
],
|
|
10320
|
+
'high-color': 'hsla(0, 0%, 16%, 0.5)',
|
|
10321
|
+
'space-color': 'hsla(0, 0%, 0%, 1)',
|
|
10322
|
+
'horizon-blend': 0.2,
|
|
10323
|
+
'star-intensity': 0.3
|
|
10324
|
+
},
|
|
10325
|
+
terrain: source_dem.terrain,
|
|
10326
|
+
layers: [
|
|
10327
|
+
background('dark'),
|
|
10328
|
+
...source_openmaptiles.layers_dark,
|
|
10329
|
+
...maplessPreset.ENABLE_BUILDINGS ? dzbuildings.layers_dark : [],
|
|
10330
|
+
...source_dem.layers_dark
|
|
10331
|
+
]
|
|
10332
|
+
});
|
|
10333
10333
|
const dzmap_dark = dark;
|
|
10334
|
-
const light = {
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10334
|
+
const light = ()=>({
|
|
10335
|
+
version: 8,
|
|
10336
|
+
sprite: `${maplessPreset.mapboxAssets}/style/sprite`,
|
|
10337
|
+
glyphs: `${maplessPreset.mapboxAssets}/glyphs/mapbox/{fontstack}/{range}.pbf`,
|
|
10338
|
+
name: 'LightMap',
|
|
10339
|
+
projection: {
|
|
10340
|
+
name: 'globe'
|
|
10341
|
+
},
|
|
10342
|
+
sources: {
|
|
10343
|
+
openmaptiles: source_openmaptiles.source(),
|
|
10344
|
+
gzsBuildings: maplessPreset.ENABLE_BUILDINGS ? dzbuildings.source() : empty,
|
|
10345
|
+
dem: source_dem.source(),
|
|
10346
|
+
'dem-terrain': source_dem.sourceTerrain()
|
|
10347
|
+
},
|
|
10348
|
+
metadata: {
|
|
10349
|
+
'mapbox:autocomposite': false,
|
|
10350
|
+
'mapbox:groups': {
|
|
10351
|
+
'101da9f13b64a08fa4b6ac1168e89e5f': {
|
|
10352
|
+
collapsed: true,
|
|
10353
|
+
name: 'Places'
|
|
10354
|
+
},
|
|
10355
|
+
a14c9607bc7954ba1df7205bf660433f: {
|
|
10356
|
+
collapsed: true,
|
|
10357
|
+
name: 'Boundaries'
|
|
10358
|
+
},
|
|
10359
|
+
b6371a3f2f5a9932464fa3867530a2e5: {
|
|
10360
|
+
collapsed: true,
|
|
10361
|
+
name: 'Transportation'
|
|
10362
|
+
}
|
|
10358
10363
|
},
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
}
|
|
10364
|
+
'mapbox:type': 'template',
|
|
10365
|
+
'openmaptiles:version': '3.x',
|
|
10366
|
+
'maputnik:renderer': 'mlgljs'
|
|
10363
10367
|
},
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10368
|
+
fog: {
|
|
10369
|
+
range: [
|
|
10370
|
+
1,
|
|
10371
|
+
10
|
|
10372
|
+
],
|
|
10373
|
+
color: 'hsl(0, 0%, 100%)',
|
|
10374
|
+
'high-color': 'hsl(0, 0%, 100%)',
|
|
10375
|
+
'space-color': 'hsl(0, 0%, 100%)',
|
|
10376
|
+
'horizon-blend': 0.2,
|
|
10377
|
+
'star-intensity': 0.3
|
|
10378
|
+
},
|
|
10379
|
+
terrain: source_dem.terrain,
|
|
10380
|
+
layers: [
|
|
10381
|
+
background('light'),
|
|
10382
|
+
...source_openmaptiles.layers_light,
|
|
10383
|
+
...maplessPreset.ENABLE_BUILDINGS ? dzbuildings.layers_light : [],
|
|
10384
|
+
...source_dem.layers_light
|
|
10385
|
+
]
|
|
10386
|
+
});
|
|
10387
|
+
const satellite_source = ()=>({
|
|
10388
|
+
type: 'raster',
|
|
10389
|
+
tiles: [
|
|
10390
|
+
`${maplessPreset.satelliteImagery}/{z}/{x}/{y}`
|
|
10372
10391
|
],
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
'horizon-blend': 0.2,
|
|
10377
|
-
'star-intensity': 0.3
|
|
10378
|
-
},
|
|
10379
|
-
terrain: source_dem.terrain,
|
|
10380
|
-
layers: [
|
|
10381
|
-
background('light'),
|
|
10382
|
-
...source_openmaptiles.layers_light,
|
|
10383
|
-
...maplessPreset.ENABLE_BUILDINGS ? dzbuildings.layers_light : [],
|
|
10384
|
-
...source_dem.layers_light
|
|
10385
|
-
]
|
|
10386
|
-
};
|
|
10387
|
-
const satellite_source = {
|
|
10388
|
-
type: 'raster',
|
|
10389
|
-
tiles: [
|
|
10390
|
-
`${maplessPreset.satelliteImagery}/{z}/{x}/{y}`
|
|
10391
|
-
],
|
|
10392
|
-
tileSize: 256,
|
|
10393
|
-
volatile: true
|
|
10394
|
-
};
|
|
10392
|
+
tileSize: 256,
|
|
10393
|
+
volatile: true
|
|
10394
|
+
});
|
|
10395
10395
|
const satellite_layers_satellite = [
|
|
10396
10396
|
{
|
|
10397
10397
|
id: 'bingSatellite',
|
|
@@ -10406,161 +10406,161 @@ const satellite = {
|
|
|
10406
10406
|
layers_satellite: satellite_layers_satellite
|
|
10407
10407
|
};
|
|
10408
10408
|
const source_satellite = satellite;
|
|
10409
|
-
const satellite_satellite = {
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
],
|
|
10435
|
-
color: 'hsl(0, 0%, 100%)',
|
|
10436
|
-
'high-color': 'hsl(210, 100%, 80%)',
|
|
10437
|
-
'space-color': [
|
|
10438
|
-
'interpolate',
|
|
10439
|
-
[
|
|
10440
|
-
'exponential',
|
|
10441
|
-
1.2
|
|
10442
|
-
],
|
|
10443
|
-
[
|
|
10444
|
-
'zoom'
|
|
10445
|
-
],
|
|
10446
|
-
5,
|
|
10447
|
-
'hsl(210, 40%, 30%)',
|
|
10448
|
-
7,
|
|
10449
|
-
'hsl(210, 100%, 80%)'
|
|
10450
|
-
],
|
|
10451
|
-
'horizon-blend': [
|
|
10452
|
-
'interpolate',
|
|
10453
|
-
[
|
|
10454
|
-
'exponential',
|
|
10455
|
-
1.2
|
|
10456
|
-
],
|
|
10457
|
-
[
|
|
10458
|
-
'zoom'
|
|
10409
|
+
const satellite_satellite = ()=>({
|
|
10410
|
+
version: 8,
|
|
10411
|
+
sprite: `${maplessPreset.mapboxAssets}/style/sprite`,
|
|
10412
|
+
glyphs: `${maplessPreset.mapboxAssets}/glyphs/mapbox/{fontstack}/{range}.pbf`,
|
|
10413
|
+
name: 'SatelliteMap',
|
|
10414
|
+
projection: {
|
|
10415
|
+
name: 'globe'
|
|
10416
|
+
},
|
|
10417
|
+
sources: {
|
|
10418
|
+
openmaptiles: source_openmaptiles.source(),
|
|
10419
|
+
gzsBuildings: maplessPreset.ENABLE_BUILDINGS ? dzbuildings.source() : empty,
|
|
10420
|
+
dem: source_dem.source(),
|
|
10421
|
+
'dem-terrain': source_dem.sourceTerrain(),
|
|
10422
|
+
bingSatellite: maplessPreset.ENABLE_SATELLITE ? source_satellite.source() : empty
|
|
10423
|
+
},
|
|
10424
|
+
metadata: {
|
|
10425
|
+
'mapbox:autocomposite': false,
|
|
10426
|
+
'maputnik:renderer': 'mbgljs',
|
|
10427
|
+
'openmaptiles:version': '3.x'
|
|
10428
|
+
},
|
|
10429
|
+
terrain: source_dem.terrain,
|
|
10430
|
+
fog: {
|
|
10431
|
+
range: [
|
|
10432
|
+
2,
|
|
10433
|
+
20
|
|
10459
10434
|
],
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10435
|
+
color: 'hsl(0, 0%, 100%)',
|
|
10436
|
+
'high-color': 'hsl(210, 100%, 80%)',
|
|
10437
|
+
'space-color': [
|
|
10438
|
+
'interpolate',
|
|
10439
|
+
[
|
|
10440
|
+
'exponential',
|
|
10441
|
+
1.2
|
|
10442
|
+
],
|
|
10443
|
+
[
|
|
10444
|
+
'zoom'
|
|
10445
|
+
],
|
|
10446
|
+
5,
|
|
10447
|
+
'hsl(210, 40%, 30%)',
|
|
10448
|
+
7,
|
|
10449
|
+
'hsl(210, 100%, 80%)'
|
|
10470
10450
|
],
|
|
10471
|
-
[
|
|
10472
|
-
'
|
|
10451
|
+
'horizon-blend': [
|
|
10452
|
+
'interpolate',
|
|
10453
|
+
[
|
|
10454
|
+
'exponential',
|
|
10455
|
+
1.2
|
|
10456
|
+
],
|
|
10457
|
+
[
|
|
10458
|
+
'zoom'
|
|
10459
|
+
],
|
|
10460
|
+
5,
|
|
10461
|
+
0.02,
|
|
10462
|
+
7,
|
|
10463
|
+
0.08
|
|
10473
10464
|
],
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10465
|
+
'star-intensity': [
|
|
10466
|
+
'interpolate',
|
|
10467
|
+
[
|
|
10468
|
+
'exponential',
|
|
10469
|
+
1.2
|
|
10470
|
+
],
|
|
10471
|
+
[
|
|
10472
|
+
'zoom'
|
|
10473
|
+
],
|
|
10474
|
+
5,
|
|
10475
|
+
0.1,
|
|
10476
|
+
7,
|
|
10477
|
+
0
|
|
10478
|
+
]
|
|
10479
|
+
},
|
|
10480
|
+
layers: [
|
|
10481
|
+
...maplessPreset.ENABLE_SATELLITE ? source_satellite.layers_satellite : [],
|
|
10482
|
+
...source_openmaptiles.layers_satellite,
|
|
10483
|
+
...maplessPreset.ENABLE_BUILDINGS ? dzbuildings.layers_satellite : [],
|
|
10484
|
+
...source_dem.layers_satellite
|
|
10478
10485
|
]
|
|
10479
|
-
}
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
'openmaptiles:version': '3.x'
|
|
10505
|
-
},
|
|
10506
|
-
terrain: source_dem.terrain,
|
|
10507
|
-
fog: {
|
|
10508
|
-
range: [
|
|
10509
|
-
2,
|
|
10510
|
-
20
|
|
10511
|
-
],
|
|
10512
|
-
color: 'hsl(0, 0%, 100%)',
|
|
10513
|
-
'high-color': 'hsl(210, 100%, 80%)',
|
|
10514
|
-
'space-color': [
|
|
10515
|
-
'interpolate',
|
|
10516
|
-
[
|
|
10517
|
-
'exponential',
|
|
10518
|
-
1.2
|
|
10519
|
-
],
|
|
10520
|
-
[
|
|
10521
|
-
'zoom'
|
|
10522
|
-
],
|
|
10523
|
-
5,
|
|
10524
|
-
'hsl(210, 40%, 30%)',
|
|
10525
|
-
7,
|
|
10526
|
-
'hsl(210, 100%, 80%)'
|
|
10527
|
-
],
|
|
10528
|
-
'horizon-blend': [
|
|
10529
|
-
'interpolate',
|
|
10530
|
-
[
|
|
10531
|
-
'exponential',
|
|
10532
|
-
1.2
|
|
10533
|
-
],
|
|
10534
|
-
[
|
|
10535
|
-
'zoom'
|
|
10486
|
+
});
|
|
10487
|
+
const streets = ()=>({
|
|
10488
|
+
version: 8,
|
|
10489
|
+
sprite: `${maplessPreset.mapboxAssets}/style/sprite`,
|
|
10490
|
+
glyphs: `${maplessPreset.mapboxAssets}/glyphs/mapbox/{fontstack}/{range}.pbf`,
|
|
10491
|
+
name: 'StreetsMap',
|
|
10492
|
+
projection: {
|
|
10493
|
+
name: 'globe'
|
|
10494
|
+
},
|
|
10495
|
+
sources: {
|
|
10496
|
+
openmaptiles: source_openmaptiles.source(),
|
|
10497
|
+
gzsBuildings: maplessPreset.ENABLE_BUILDINGS ? dzbuildings.source() : empty,
|
|
10498
|
+
dem: source_dem.source(),
|
|
10499
|
+
'dem-terrain': source_dem.sourceTerrain()
|
|
10500
|
+
},
|
|
10501
|
+
metadata: {
|
|
10502
|
+
'mapbox:autocomposite': false,
|
|
10503
|
+
'maputnik:renderer': 'mbgljs',
|
|
10504
|
+
'openmaptiles:version': '3.x'
|
|
10505
|
+
},
|
|
10506
|
+
terrain: source_dem.terrain,
|
|
10507
|
+
fog: {
|
|
10508
|
+
range: [
|
|
10509
|
+
2,
|
|
10510
|
+
20
|
|
10536
10511
|
],
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10512
|
+
color: 'hsl(0, 0%, 100%)',
|
|
10513
|
+
'high-color': 'hsl(210, 100%, 80%)',
|
|
10514
|
+
'space-color': [
|
|
10515
|
+
'interpolate',
|
|
10516
|
+
[
|
|
10517
|
+
'exponential',
|
|
10518
|
+
1.2
|
|
10519
|
+
],
|
|
10520
|
+
[
|
|
10521
|
+
'zoom'
|
|
10522
|
+
],
|
|
10523
|
+
5,
|
|
10524
|
+
'hsl(210, 40%, 30%)',
|
|
10525
|
+
7,
|
|
10526
|
+
'hsl(210, 100%, 80%)'
|
|
10547
10527
|
],
|
|
10548
|
-
[
|
|
10549
|
-
'
|
|
10528
|
+
'horizon-blend': [
|
|
10529
|
+
'interpolate',
|
|
10530
|
+
[
|
|
10531
|
+
'exponential',
|
|
10532
|
+
1.2
|
|
10533
|
+
],
|
|
10534
|
+
[
|
|
10535
|
+
'zoom'
|
|
10536
|
+
],
|
|
10537
|
+
5,
|
|
10538
|
+
0.02,
|
|
10539
|
+
7,
|
|
10540
|
+
0.08
|
|
10550
10541
|
],
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10542
|
+
'star-intensity': [
|
|
10543
|
+
'interpolate',
|
|
10544
|
+
[
|
|
10545
|
+
'exponential',
|
|
10546
|
+
1.2
|
|
10547
|
+
],
|
|
10548
|
+
[
|
|
10549
|
+
'zoom'
|
|
10550
|
+
],
|
|
10551
|
+
5,
|
|
10552
|
+
0.1,
|
|
10553
|
+
7,
|
|
10554
|
+
0
|
|
10555
|
+
]
|
|
10556
|
+
},
|
|
10557
|
+
layers: [
|
|
10558
|
+
background('streets'),
|
|
10559
|
+
...source_openmaptiles.layers_streets,
|
|
10560
|
+
...maplessPreset.ENABLE_BUILDINGS ? dzbuildings.layers_streets : [],
|
|
10561
|
+
...source_dem.layers_streets
|
|
10555
10562
|
]
|
|
10556
|
-
}
|
|
10557
|
-
layers: [
|
|
10558
|
-
background('streets'),
|
|
10559
|
-
...source_openmaptiles.layers_streets,
|
|
10560
|
-
...maplessPreset.ENABLE_BUILDINGS ? dzbuildings.layers_streets : [],
|
|
10561
|
-
...source_dem.layers_streets
|
|
10562
|
-
]
|
|
10563
|
-
};
|
|
10563
|
+
});
|
|
10564
10564
|
var mapbox_dark_namespaceObject = JSON.parse('{"name":"Mapbox Dark","sprite":"mapbox://sprites/mapbox/dark-v11","glyphs":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf","center":[-74,40.73],"zoom":11,"fog":{"range":[-1,10],"color":"hsl(0, 0%, 0%)","high-color":"hsl(0, 0%, 0%)","space-color":"hsl(0, 0%, 0%)","horizon-blend":0.1,"star-intensity":0},"projection":{"name":"globe"},"visibility":"public","version":8,"layers":[{"id":"land","type":"background","layout":{},"minzoom":0,"paint":{"background-color":["interpolate",["linear"],["zoom"],9,"hsl(0, 0%, 16%)",11,"hsl(0, 0%, 16%)"]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{"id":"national-park","type":"fill","source":"composite","source-layer":"landuse_overlay","minzoom":5,"filter":["==",["get","class"],"national_park"],"layout":{},"paint":{"fill-color":"hsl(0, 2%, 15%)","fill-opacity":["interpolate",["linear"],["zoom"],5,0,6,0.6,12,0.2]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{"id":"landuse","type":"fill","source":"composite","source-layer":"landuse","minzoom":5,"filter":["all",[">=",["to-number",["get","sizerank"]],0],["match",["get","class"],["agriculture","wood","grass","scrub","park","airport","glacier","pitch","sand"],true,"residential",["step",["zoom"],true,12,false],false],["<=",["-",["to-number",["get","sizerank"]],["interpolate",["exponential",1.5],["zoom"],12,0,18,14]],8]],"layout":{},"paint":{"fill-color":"hsl(0, 2%, 15%)","fill-opacity":["interpolate",["linear"],["zoom"],8,["match",["get","class"],["residential","airport"],0.8,0.2],12,["match",["get","class"],"residential",0,1]]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{"id":"waterway","type":"line","source":"composite","source-layer":"waterway","minzoom":8,"layout":{"line-cap":["step",["zoom"],"butt",11,"round"],"line-join":"round"},"paint":{"line-color":"hsl(0, 0%, 12%)","line-width":["interpolate",["exponential",1.3],["zoom"],9,["match",["get","class"],["canal","river"],0.1,0],20,["match",["get","class"],["canal","river"],8,3]],"line-opacity":["interpolate",["linear"],["zoom"],8,0,8.5,1]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{"id":"water","type":"fill","source":"composite","source-layer":"water","minzoom":0,"layout":{},"paint":{"fill-color":"hsl(0, 0%, 12%)"},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{"id":"land-structure-polygon","type":"fill","source":"composite","source-layer":"structure","minzoom":13,"filter":["all",["==",["get","class"],"land"],["==",["geometry-type"],"Polygon"]],"layout":{},"paint":{"fill-color":["interpolate",["linear"],["zoom"],9,"hsl(0, 0%, 16%)",11,"hsl(0, 0%, 16%)"]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"}},{"id":"land-structure-line","type":"line","source":"composite","source-layer":"structure","minzoom":13,"filter":["all",["==",["get","class"],"land"],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"square"},"paint":{"line-width":["interpolate",["exponential",1.99],["zoom"],14,0.75,20,40],"line-color":["interpolate",["linear"],["zoom"],9,"hsl(0, 0%, 16%)",11,"hsl(0, 0%, 16%)"]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"}},{"id":"aeroway-polygon","type":"fill","source":"composite","source-layer":"aeroway","minzoom":11,"filter":["all",["match",["get","type"],["runway","taxiway","helipad"],true,false],["==",["geometry-type"],"Polygon"]],"paint":{"fill-color":"hsl(0, 0%, 25%)","fill-opacity":["interpolate",["linear"],["zoom"],10,0,11,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, built"}},{"id":"aeroway-line","type":"line","source":"composite","source-layer":"aeroway","minzoom":9,"filter":["==",["geometry-type"],"LineString"],"paint":{"line-color":"hsl(0, 0%, 25%)","line-width":["interpolate",["exponential",1.5],["zoom"],9,["match",["get","type"],"runway",1,0.5],18,["match",["get","type"],"runway",80,20]],"line-opacity":["interpolate",["linear"],["zoom"],10,0,11,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, built"}},{"id":"building","type":"fill","source":"composite","source-layer":"building","minzoom":15,"filter":["all",["!=",["get","type"],"building:part"],["==",["get","underground"],"false"]],"layout":{},"paint":{"fill-color":"hsl(0, 0%, 12%)","fill-opacity":["interpolate",["linear"],["zoom"],15,0,16,1],"fill-outline-color":"hsl(0, 0%, 9%)"},"metadata":{"mapbox:featureComponent":"buildings","mapbox:group":"Buildings, built"}},{"id":"tunnel-path-trail","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"path"],["match",["get","type"],["hiking","mountain_bike","trail"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 12%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-path-cycleway-piste","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"path"],["match",["get","type"],["cycleway","piste"],true,false],["==",["geometry-type"],"LineString"]],"layout":{},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 12%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-path","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"path"],["!=",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 12%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-steps","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(0, 0%, 12%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,0.75]],17,["literal",[0.3,0.3]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-pedestrian","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"pedestrian"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,18,12],"line-color":"hsl(0, 0%, 12%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,0.4]],16,["literal",[1,0.2]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-simple","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"tunnel"],["step",["zoom"],["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,["match",["get","class"],["motorway","trunk","primary"],2.4,["secondary","tertiary"],1.5,["motorway_link","trunk_link","street","street_limited","primary_link"],0.6,0.5],18,["match",["get","class"],["motorway","trunk","primary"],19.2,["secondary","tertiary"],15.6,["motorway_link","trunk_link","street","street_limited","primary_link"],10.799999999999999,7.199999999999999],22,["match",["get","class"],["motorway","trunk","primary"],192,["secondary","tertiary"],156,["motorway_link","trunk_link","primary_link","street","street_limited"],108,72]],"line-color":"hsl(0, 0%, 24%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, tunnels"}},{"id":"road-path-trail","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"path"],["match",["get","type"],["hiking","mountain_bike","trail"],true,false],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round","line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 24%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-path-cycleway-piste","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"path"],["match",["get","type"],["cycleway","piste"],true,false],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 24%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-path","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"path"],["step",["zoom"],["!",["match",["get","type"],["steps","sidewalk","crossing"],true,false]],16,["!=",["get","type"],"steps"]],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round","line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,0.5,14,1,15,1,18,4],"line-color":"hsl(0, 0%, 24%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-steps","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","type"],"steps"],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-join":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(0, 0%, 24%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,0.75]],17,["literal",[0.3,0.3]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-pedestrian","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"pedestrian"],["match",["get","structure"],["none","ford"],true,false],["case",["has","layer"],[">=",["get","layer"],0],true],["==",["geometry-type"],"LineString"]],"layout":{"line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,18,12],"line-color":"hsl(0, 0%, 24%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,0.4]],16,["literal",[1,0.2]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-simple","type":"line","source":"composite","source-layer":"road","minzoom":5,"filter":["all",["step",["zoom"],["match",["get","class"],["motorway","trunk"],true,false],6,["match",["get","class"],["motorway","trunk","primary"],true,false],8,["match",["get","class"],["motorway","trunk","primary","secondary"],true,false],10,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary","motorway_link","trunk_link"],true,false],11,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street"],true,false],12,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link"],true,false],13,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":["step",["zoom"],"butt",14,"round"],"line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],["motorway","trunk","primary"],0.44999999999999996,["secondary","tertiary"],0.06,0],13,["match",["get","class"],["motorway","trunk","primary"],2.4,["secondary","tertiary"],1.5,["motorway_link","trunk_link","primary_link","street","street_limited"],0.6,0.3],18,["match",["get","class"],["motorway","trunk","primary"],19.2,["secondary","tertiary"],15.6,["motorway_link","trunk_link","primary_link","street","street_limited"],10.799999999999999,6],22,["match",["get","class"],["motorway","trunk","primary"],192,["secondary","tertiary"],156,["motorway_link","trunk_link","primary_link","street","street_limited"],108,60]],"line-color":"hsl(0, 0%, 24%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, surface"}},{"id":"road-rail","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["match",["get","class"],["major_rail","minor_rail"],true,false],["match",["get","structure"],["none","ford"],true,false]],"paint":{"line-color":["interpolate",["linear"],["zoom"],13,"hsl(0, 0%, 14%)",17,"hsl(0, 0%, 12%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,20,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, surface"}},{"id":"bridge-path-trail","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["match",["get","type"],["hiking","mountain_bike","trail"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 24%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-path-cycleway-piste","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["match",["get","type"],["cycleway","piste"],true,false],["==",["geometry-type"],"LineString"]],"layout":{},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 24%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-path","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["!=",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(0, 0%, 24%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-steps","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","type"],"steps"],["==",["get","structure"],"bridge"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(0, 0%, 24%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,0.75]],17,["literal",[0.3,0.3]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-pedestrian","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"pedestrian"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,18,12],"line-color":"hsl(0, 0%, 24%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,0.4]],16,["literal",[1,0.2]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-case-simple","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["step",["zoom"],["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,["match",["get","class"],["motorway","trunk","primary"],3.5999999999999996,["secondary","tertiary"],2.4,["motorway_link","trunk_link","street","street_limited","primary_link"],1.5,0.75],18,["match",["get","class"],["motorway","trunk","primary"],21.599999999999998,["secondary","tertiary"],18,["motorway_link","trunk_link","street","street_limited","primary_link"],13.2,9.6],22,["match",["get","class"],["motorway","trunk","primary"],216,["secondary","tertiary"],180,["motorway_link","trunk_link","primary_link","street","street_limited"],132,96]],"line-color":"hsl(0, 0%, 16%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, bridges"}},{"id":"bridge-simple","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["step",["zoom"],["match",["get","class"],["motorway","trunk"],true,false],13,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":["step",["zoom"],"butt",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,["match",["get","class"],["motorway","trunk","primary"],2.4,["secondary","tertiary"],1.5,["motorway_link","trunk_link","street","street_limited","primary_link"],0.6,0.5],18,["match",["get","class"],["motorway","trunk","primary"],19.2,["secondary","tertiary"],15.6,["motorway_link","trunk_link","street","street_limited","primary_link"],10.799999999999999,7.199999999999999],22,["match",["get","class"],["motorway","trunk","primary"],192,["secondary","tertiary"],156,["motorway_link","trunk_link","primary_link","street","street_limited"],108,72]],"line-color":"hsl(0, 0%, 24%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, bridges"}},{"id":"bridge-rail","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["match",["get","class"],["major_rail","minor_rail"],true,false]],"paint":{"line-color":"hsl(0, 0%, 12%)","line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,20,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, bridges"}},{"id":"admin-1-boundary-bg","type":"line","source":"composite","source-layer":"admin","minzoom":7,"filter":["all",["==",["get","admin_level"],1],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"paint":{"line-color":"hsl(0, 0%, 12%)","line-width":["interpolate",["linear"],["zoom"],3,3,12,6],"line-opacity":["interpolate",["linear"],["zoom"],7,0,8,0.5],"line-dasharray":[1,0],"line-blur":["interpolate",["linear"],["zoom"],3,0,12,3]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-0-boundary-bg","type":"line","source":"composite","source-layer":"admin","minzoom":1,"filter":["all",["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"paint":{"line-width":["interpolate",["linear"],["zoom"],3,5.2,12,10.4],"line-color":"hsl(0, 0%, 12%)","line-opacity":["interpolate",["linear"],["zoom"],3,0,4,0.5],"line-blur":["interpolate",["linear"],["zoom"],3,0,12,2.6]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-1-boundary","type":"line","source":"composite","source-layer":"admin","minzoom":2,"filter":["all",["==",["get","admin_level"],1],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"layout":{},"paint":{"line-dasharray":["step",["zoom"],["literal",[2,0]],7,["literal",[2,2,6,2]]],"line-width":["interpolate",["linear"],["zoom"],3,0.3,12,1.5],"line-opacity":["interpolate",["linear"],["zoom"],2,0,3,1],"line-color":"hsl(0, 0%, 38%)"},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-0-boundary","type":"line","source":"composite","source-layer":"admin","minzoom":1,"filter":["all",["==",["get","admin_level"],0],["==",["get","disputed"],"false"],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"layout":{},"paint":{"line-color":"hsl(0, 0%, 41%)","line-width":["interpolate",["linear"],["zoom"],3,0.65,12,2.6],"line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-0-boundary-disputed","type":"line","source":"composite","source-layer":"admin","minzoom":1,"filter":["all",["==",["get","disputed"],"true"],["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"paint":{"line-color":"hsl(0, 0%, 41%)","line-width":["interpolate",["linear"],["zoom"],3,0.65,12,2.6],"line-dasharray":["step",["zoom"],["literal",[3,2,5]],7,["literal",[2,1.5]]]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"road-label-simple","type":"symbol","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["has","name"],["match",["get","class"],["motorway","trunk","primary","secondary","tertiary","street","street_limited"],true,false]],"layout":{"text-size":["interpolate",["linear"],["zoom"],10,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],10,9],18,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],16,14]],"text-max-angle":30,"text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"symbol-placement":"line","text-padding":1,"text-rotation-alignment":"map","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":0.01},"paint":{"text-color":"hsl(0, 0%, 66%)","text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, road-labels"}},{"id":"waterway-label","type":"symbol","source":"composite","source-layer":"natural_label","minzoom":13,"filter":["all",["match",["get","class"],["canal","river","stream","disputed_canal","disputed_river","disputed_stream"],["match",["get","worldview"],["all","US"],true,false],false],["==",["geometry-type"],"LineString"]],"layout":{"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-max-angle":30,"symbol-spacing":["interpolate",["linear",1],["zoom"],15,250,17,400],"text-size":["interpolate",["linear"],["zoom"],13,12,18,18],"symbol-placement":"line","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},"paint":{"text-color":"hsl(0, 0%, 35%)","text-halo-color":"hsla(0, 0%, 3%, 0.5)"},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"}},{"id":"natural-line-label","type":"symbol","metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},"source":"composite","source-layer":"natural_label","minzoom":4,"filter":["all",["match",["get","class"],["glacier","landform","disputed_glacier","disputed_landform"],["match",["get","worldview"],["all","US"],true,false],false],["<=",["get","filterrank"],1],["==",["geometry-type"],"LineString"]],"layout":{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"text-max-angle":30,"text-field":["coalesce",["get","name_en"],["get","name"]],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport"},"paint":{"text-halo-width":0.5,"text-halo-color":"hsl(0, 0%, 3%)","text-halo-blur":0.5,"text-color":"hsl(0, 0%, 53%)"}},{"id":"natural-point-label","type":"symbol","source":"composite","source-layer":"natural_label","minzoom":4,"filter":["all",["match",["get","class"],["dock","glacier","landform","water_feature","wetland","disputed_dock","disputed_glacier","disputed_landform","disputed_water_feature","disputed_wetland"],["match",["get","worldview"],["all","US"],true,false],false],["<=",["get","filterrank"],1],["==",["geometry-type"],"Point"]],"layout":{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":"","text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-offset":["literal",[0,0]],"text-field":["coalesce",["get","name_en"],["get","name"]]},"paint":{"icon-opacity":["step",["zoom"],["step",["get","sizerank"],0,5,1],17,["step",["get","sizerank"],0,13,1]],"text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":0.5,"text-halo-blur":0.5,"text-color":"hsl(0, 0%, 53%)"},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"}},{"id":"water-line-label","type":"symbol","metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},"source":"composite","source-layer":"natural_label","minzoom":1,"filter":["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","US"],true,false],false],["==",["geometry-type"],"LineString"]],"layout":{"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-max-angle":30,"text-letter-spacing":["match",["get","class"],"ocean",0.25,["sea","bay"],0.15,0],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},"paint":{"text-color":"hsl(0, 0%, 35%)","text-halo-color":"hsla(0, 0%, 3%, 0.5)"}},{"id":"water-point-label","type":"symbol","source":"composite","source-layer":"natural_label","minzoom":1,"filter":["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","US"],true,false],false],["==",["geometry-type"],"Point"]],"layout":{"text-line-height":1.3,"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":["match",["get","class"],"ocean",0.25,["bay","sea"],0.15,0.01],"text-max-width":["match",["get","class"],"ocean",4,"sea",5,["bay","water"],7,10]},"paint":{"text-color":"hsl(0, 0%, 35%)","text-halo-color":"hsla(0, 0%, 3%, 0.5)"},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"}},{"id":"poi-label","type":"symbol","source":"composite","source-layer":"poi_label","minzoom":6,"filter":["<=",["get","filterrank"],["+",["step",["zoom"],0,16,1,17,2],1]],"layout":{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":"","text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-offset":[0,0],"text-anchor":["step",["zoom"],["step",["get","sizerank"],"center",5,"top"],17,["step",["get","sizerank"],"center",13,"top"]],"text-field":["coalesce",["get","name_en"],["get","name"]]},"paint":{"text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":0.5,"text-halo-blur":0.5,"text-color":"hsl(0, 0%, 53%)"},"metadata":{"mapbox:featureComponent":"point-of-interest-labels","mapbox:group":"Point of interest labels, poi-labels"}},{"id":"airport-label","type":"symbol","source":"composite","source-layer":"airport_label","minzoom":8,"filter":["match",["get","class"],["military","civil","disputed_military","disputed_civil"],["match",["get","worldview"],["all","US"],true,false],false],"layout":{"text-line-height":1.1,"text-size":["step",["get","sizerank"],18,9,12],"icon-image":"","text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-offset":[0,0],"text-rotation-alignment":"viewport","text-anchor":"top","text-field":["step",["get","sizerank"],["case",["has","ref"],["concat",["get","ref"]," -\\n",["coalesce",["get","name_en"],["get","name"]]],["coalesce",["get","name_en"],["get","name"]]],15,["get","ref"]],"text-letter-spacing":0.01,"text-max-width":9},"paint":{"text-color":"hsl(0, 0%, 66%)","text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, transit-labels"}},{"id":"settlement-subdivision-label","type":"symbol","source":"composite","source-layer":"place_label","minzoom":10,"maxzoom":15,"filter":["all",["match",["get","class"],["settlement_subdivision","disputed_settlement_subdivision"],["match",["get","worldview"],["all","US"],true,false],false],["<=",["get","filterrank"],3]],"layout":{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-transform":"uppercase","text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-letter-spacing":["match",["get","type"],"suburb",0.15,0.05],"text-max-width":7,"text-padding":3,"text-size":["interpolate",["cubic-bezier",0.5,0,1,1],["zoom"],11,["match",["get","type"],"suburb",11,10.5],15,["match",["get","type"],"suburb",15,14]]},"paint":{"text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1,"text-color":"hsl(0, 0%, 54%)","text-halo-blur":0.5},"metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"id":"settlement-minor-label","type":"symbol","source":"composite","source-layer":"place_label","minzoom":2,"maxzoom":13,"filter":["all",["<=",["get","filterrank"],2],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","US"],true,false],false],["step",["zoom"],[">",["get","symbolrank"],6],4,[">=",["get","symbolrank"],7],6,[">=",["get","symbolrank"],8],7,[">=",["get","symbolrank"],10],10,[">=",["get","symbolrank"],11],11,[">=",["get","symbolrank"],13],12,[">=",["get","symbolrank"],15]]],"layout":{"symbol-sort-key":["get","symbolrank"],"icon-image":"","text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,0.6,0.55],8,0],"text-anchor":["step",["zoom"],"center",8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7,"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",0.2,0,0.9,1],["zoom"],3,["step",["get","symbolrank"],11,9,10],6,["step",["get","symbolrank"],14,9,12,12,10],8,["step",["get","symbolrank"],16,9,14,12,12,15,10],13,["step",["get","symbolrank"],22,9,20,12,16,15,14]]},"paint":{"text-color":["step",["get","symbolrank"],"hsl(0, 0%, 66%)",11,"hsl(0, 0%, 53%)",16,"hsl(0, 0%, 47%)"],"text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1,"icon-opacity":["step",["zoom"],1,8,0],"text-halo-blur":1},"metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"id":"settlement-major-label","type":"symbol","source":"composite","source-layer":"place_label","minzoom":2,"maxzoom":15,"filter":["all",["<=",["get","filterrank"],2],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","US"],true,false],false],["step",["zoom"],false,2,["<=",["get","symbolrank"],6],4,["<",["get","symbolrank"],7],6,["<",["get","symbolrank"],8],7,["<",["get","symbolrank"],10],10,["<",["get","symbolrank"],11],11,["<",["get","symbolrank"],13],12,["<",["get","symbolrank"],15],13,[">=",["get","symbolrank"],11],14,[">=",["get","symbolrank"],15]]],"layout":{"symbol-sort-key":["get","symbolrank"],"icon-image":"","text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,0.6,0.55],8,0],"text-anchor":["step",["zoom"],"center",8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7,"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",0.2,0,0.9,1],["zoom"],3,["step",["get","symbolrank"],13,6,11],6,["step",["get","symbolrank"],18,6,16,7,14],8,["step",["get","symbolrank"],20,9,16,10,14],15,["step",["get","symbolrank"],24,9,20,12,16,15,14]]},"paint":{"text-color":["step",["get","symbolrank"],"hsl(0, 0%, 66%)",11,"hsl(0, 0%, 53%)",16,"hsl(0, 0%, 47%)"],"text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1,"icon-opacity":["step",["zoom"],1,8,0],"text-halo-blur":1},"metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"id":"state-label","type":"symbol","source":"composite","source-layer":"place_label","minzoom":3,"maxzoom":9,"filter":["match",["get","class"],["state","disputed_state"],["match",["get","worldview"],["all","US"],true,false],false],"layout":{"text-size":["interpolate",["cubic-bezier",0.85,0.7,0.65,1],["zoom"],4,["step",["get","symbolrank"],9,6,8,7,7],9,["step",["get","symbolrank"],21,6,16,7,14]],"text-transform":"uppercase","text-font":["DIN Pro Bold","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":0.15,"text-max-width":6},"paint":{"text-color":"hsl(0, 0%, 66%)","text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1,"text-opacity":0.5},"metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"id":"country-label","type":"symbol","source":"composite","source-layer":"place_label","minzoom":1,"maxzoom":10,"filter":["match",["get","class"],["country","disputed_country"],["match",["get","worldview"],["all","US"],true,false],false],"layout":{"icon-image":"","text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-radial-offset":["step",["zoom"],0.6,8,0],"text-size":["interpolate",["cubic-bezier",0.2,0,0.7,1],["zoom"],1,["step",["get","symbolrank"],11,4,9,5,8],9,["step",["get","symbolrank"],22,4,19,5,17]]},"paint":{"icon-opacity":["step",["zoom"],["case",["has","text_anchor"],1,0],7,0],"text-color":"hsl(0, 0%, 40%)","text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1.25},"metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"id":"continent-label","type":"symbol","source":"composite","source-layer":"natural_label","minzoom":0.75,"maxzoom":3,"filter":["==",["get","class"],"continent"],"layout":{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-size":["interpolate",["exponential",0.5],["zoom"],0,10,2.5,15],"text-transform":"uppercase","text-letter-spacing":0.05},"paint":{"text-color":"hsl(0, 0%, 40%)","text-halo-color":"hsl(0, 0%, 3%)","text-halo-width":1.5,"text-opacity":["interpolate",["linear"],["zoom"],0,0.8,1.5,0.5,2.5,0]},"metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}}],"sources":{"composite":{"url":"mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2","type":"vector","data":{"attribution":"<a href=\\"https://www.mapbox.com/about/maps/\\" target=\\"_blank\\" title=\\"Mapbox\\" aria-label=\\"Mapbox\\">© Mapbox</a> <a href=\\"https://www.openstreetmap.org/copyright/\\" target=\\"_blank\\" title=\\"OpenStreetMap\\" aria-label=\\"OpenStreetMap\\">© OpenStreetMap</a> <a class=\\"mapbox-improve-map\\" href=\\"https://www.mapbox.com/contribute/\\" target=\\"_blank\\" title=\\"Improve this map\\" aria-label=\\"Improve this map\\">Improve this map</a>","bounds":[-180,-85,180,85],"center":[0,0,0],"constituents":[{"maxzoom":16,"minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"maxzoom":15,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"maxzoom":7,"minzoom":0,"source":"mapbox.mapbox-bathymetry-v2"}],"format":"pbf","language_options":{"all":"Every available language","ar":"Arabic","bg":"Bulgarian","ca":"Catalan","cs":"Czech","da":"Danish","de":"German","el":"Greek","en":"English","es":"Spanish","fa":"Farsi","fi":"Finnish","fr":"French","he":"Hebrew","hr":"Croatian","hu":"Hungarian","id":"Indonesian","it":"Italian","ja":"Japanese","ka":"Georgian","ko":"Korean","local":"Renderable local language","lv":"Latvian","ms":"Malay","nb":"Norwegian Bokmål","nl":"Dutch","no":"Norwegian","pl":"Polish","pt":"Portuguese","ro":"Romanian","ru":"Russian","sk":"Slovak","sl":"Slovenian","sq":"Albanian","sr":"Serbian","sv":"Swedish","th":"Thai","tl":"Tagalog","tr":"Turkish","uk":"Ukrainian","vi":"Vietnamese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese"},"mapbox_logo":true,"maskLevel":9,"maxzoom":16,"minzoom":0,"name":"Mapbox Bathymetry v2 + Mapbox Terrain v2 + Mapbox Streets v8","scheme":"xyz","tilejson":"3.0.0","tiles":["mapbox://tiles/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2/{z}/{x}/{y}.vector.pbf"],"vector_layers":[{"id":"landuse","minzoom":5,"source":"mapbox.mapbox-streets-v8"},{"id":"waterway","minzoom":7,"source":"mapbox.mapbox-streets-v8"},{"id":"water","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"aeroway","minzoom":9,"source":"mapbox.mapbox-streets-v8"},{"id":"structure","minzoom":13,"source":"mapbox.mapbox-streets-v8"},{"id":"building","minzoom":12,"source":"mapbox.mapbox-streets-v8"},{"id":"landuse_overlay","minzoom":5,"source":"mapbox.mapbox-streets-v8"},{"id":"road","minzoom":3,"source":"mapbox.mapbox-streets-v8"},{"id":"admin","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"place_label","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"airport_label","minzoom":8,"source":"mapbox.mapbox-streets-v8"},{"id":"transit_stop_label","minzoom":5,"source":"mapbox.mapbox-streets-v8"},{"id":"natural_label","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"poi_label","minzoom":6,"source":"mapbox.mapbox-streets-v8"},{"id":"motorway_junction","minzoom":9,"source":"mapbox.mapbox-streets-v8"},{"id":"housenum_label","minzoom":16,"source":"mapbox.mapbox-streets-v8"},{"id":"landcover","maxzoom":22,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"id":"hillshade","maxzoom":22,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"id":"contour","maxzoom":22,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"id":"depth","maxzoom":7,"minzoom":0,"source":"mapbox.mapbox-bathymetry-v2"}],"worldview_default":"US","worldview_options":{"ALL":"Every available worldview","AR":"Argentina","CN":"China","IN":"India","JP":"Japan","MA":"Morocco","RS":"Serbia","RU":"Russia","TR":"Turkey","US":"United States"}}}},"created":"1970-01-01T00:00:00.000Z","modified":"1970-01-01T00:00:00.000Z","owner":"mapbox","id":"dark-v11","draft":false}');
|
|
10565
10565
|
var mapbox_light_namespaceObject = JSON.parse('{"name":"Mapbox Light","sprite":"mapbox://sprites/mapbox/light-v11","glyphs":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf","center":[-74,40.73],"zoom":11,"fog":{"range":[-1,10],"color":"hsl(0, 0%, 100%)","high-color":"hsl(0, 0%, 100%)","space-color":"hsl(0, 0%, 100%)","horizon-blend":0.1,"star-intensity":0},"projection":{"name":"globe"},"visibility":"public","version":8,"layers":[{"id":"land","type":"background","layout":{},"minzoom":0,"paint":{"background-color":["interpolate",["linear"],["zoom"],9,"hsl(220, 3%, 99%)",11,"hsl(220, 1%, 97%)"]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{"id":"national-park","type":"fill","source":"composite","source-layer":"landuse_overlay","minzoom":5,"filter":["==",["get","class"],"national_park"],"layout":{},"paint":{"fill-color":"hsl(220, 5%, 92%)","fill-opacity":["interpolate",["linear"],["zoom"],5,0,6,0.6,12,0.2]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{"id":"landuse","type":"fill","source":"composite","source-layer":"landuse","minzoom":5,"filter":["all",[">=",["to-number",["get","sizerank"]],0],["match",["get","class"],["agriculture","wood","grass","scrub","park","airport","glacier","pitch","sand"],true,"residential",["step",["zoom"],true,12,false],false],["<=",["-",["to-number",["get","sizerank"]],["interpolate",["exponential",1.5],["zoom"],12,0,18,14]],8]],"layout":{},"paint":{"fill-color":"hsl(220, 5%, 92%)","fill-opacity":["interpolate",["linear"],["zoom"],8,["match",["get","class"],["residential","airport"],0.8,0.2],12,["match",["get","class"],"residential",0,1]]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{"id":"waterway","type":"line","source":"composite","source-layer":"waterway","minzoom":8,"layout":{"line-cap":["step",["zoom"],"butt",11,"round"],"line-join":"round"},"paint":{"line-color":"hsl(220, 1%, 86%)","line-width":["interpolate",["exponential",1.3],["zoom"],9,["match",["get","class"],["canal","river"],0.1,0],20,["match",["get","class"],["canal","river"],8,3]],"line-opacity":["interpolate",["linear"],["zoom"],8,0,8.5,1]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{"id":"water","type":"fill","source":"composite","source-layer":"water","minzoom":0,"layout":{},"paint":{"fill-color":"hsl(220, 1%, 86%)"},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{"id":"land-structure-polygon","type":"fill","source":"composite","source-layer":"structure","minzoom":13,"filter":["all",["==",["get","class"],"land"],["==",["geometry-type"],"Polygon"]],"layout":{},"paint":{"fill-color":["interpolate",["linear"],["zoom"],9,"hsl(220, 3%, 99%)",11,"hsl(220, 1%, 97%)"]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"}},{"id":"land-structure-line","type":"line","source":"composite","source-layer":"structure","minzoom":13,"filter":["all",["==",["get","class"],"land"],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"square"},"paint":{"line-width":["interpolate",["exponential",1.99],["zoom"],14,0.75,20,40],"line-color":["interpolate",["linear"],["zoom"],9,"hsl(220, 3%, 99%)",11,"hsl(220, 1%, 97%)"]},"metadata":{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"}},{"id":"aeroway-polygon","type":"fill","source":"composite","source-layer":"aeroway","minzoom":11,"filter":["all",["match",["get","type"],["runway","taxiway","helipad"],true,false],["==",["geometry-type"],"Polygon"]],"paint":{"fill-color":"hsl(220, 1%, 100%)","fill-opacity":["interpolate",["linear"],["zoom"],10,0,11,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, built"}},{"id":"aeroway-line","type":"line","source":"composite","source-layer":"aeroway","minzoom":9,"filter":["==",["geometry-type"],"LineString"],"paint":{"line-color":"hsl(220, 1%, 100%)","line-width":["interpolate",["exponential",1.5],["zoom"],9,["match",["get","type"],"runway",1,0.5],18,["match",["get","type"],"runway",80,20]],"line-opacity":["interpolate",["linear"],["zoom"],10,0,11,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, built"}},{"id":"building","type":"fill","source":"composite","source-layer":"building","minzoom":15,"filter":["all",["!=",["get","type"],"building:part"],["==",["get","underground"],"false"]],"layout":{},"paint":{"fill-color":"hsl(220, 0%, 91%)","fill-opacity":["interpolate",["linear"],["zoom"],15,0,16,1],"fill-outline-color":"hsl(220, 0%, 85%)"},"metadata":{"mapbox:featureComponent":"buildings","mapbox:group":"Buildings, built"}},{"id":"tunnel-path-trail","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"path"],["match",["get","type"],["hiking","mountain_bike","trail"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 0%, 87%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-path-cycleway-piste","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"path"],["match",["get","type"],["cycleway","piste"],true,false],["==",["geometry-type"],"LineString"]],"layout":{},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 0%, 87%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-path","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"path"],["!=",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 0%, 87%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-steps","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(220, 0%, 87%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,0.75]],17,["literal",[0.3,0.3]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-pedestrian","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"tunnel"],["==",["get","class"],"pedestrian"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,18,12],"line-color":"hsl(220, 0%, 87%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,0.4]],16,["literal",[1,0.2]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., tunnels"}},{"id":"tunnel-simple","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"tunnel"],["step",["zoom"],["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,["match",["get","class"],["motorway","trunk","primary"],2.4,["secondary","tertiary"],1.5,["motorway_link","trunk_link","street","street_limited","primary_link"],0.6,0.5],18,["match",["get","class"],["motorway","trunk","primary"],19.2,["secondary","tertiary"],15.6,["motorway_link","trunk_link","street","street_limited","primary_link"],10.799999999999999,7.199999999999999],22,["match",["get","class"],["motorway","trunk","primary"],192,["secondary","tertiary"],156,["motorway_link","trunk_link","primary_link","street","street_limited"],108,72]],"line-color":"hsl(220, 1%, 100%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, tunnels"}},{"id":"road-path-trail","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"path"],["match",["get","type"],["hiking","mountain_bike","trail"],true,false],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round","line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 1%, 100%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-path-cycleway-piste","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"path"],["match",["get","type"],["cycleway","piste"],true,false],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 1%, 100%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-path","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"path"],["step",["zoom"],["!",["match",["get","type"],["steps","sidewalk","crossing"],true,false]],16,["!=",["get","type"],"steps"]],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round","line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,0.5,14,1,15,1,18,4],"line-color":"hsl(220, 1%, 100%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-steps","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","type"],"steps"],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-join":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(220, 1%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,0.75]],17,["literal",[0.3,0.3]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-pedestrian","type":"line","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["==",["get","class"],"pedestrian"],["match",["get","structure"],["none","ford"],true,false],["case",["has","layer"],[">=",["get","layer"],0],true],["==",["geometry-type"],"LineString"]],"layout":{"line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,18,12],"line-color":"hsl(220, 1%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,0.4]],16,["literal",[1,0.2]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., surface"}},{"id":"road-simple","type":"line","source":"composite","source-layer":"road","minzoom":5,"filter":["all",["step",["zoom"],["match",["get","class"],["motorway","trunk"],true,false],6,["match",["get","class"],["motorway","trunk","primary"],true,false],8,["match",["get","class"],["motorway","trunk","primary","secondary"],true,false],10,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary","motorway_link","trunk_link"],true,false],11,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street"],true,false],12,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link"],true,false],13,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["match",["get","structure"],["none","ford"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":["step",["zoom"],"butt",14,"round"],"line-join":["step",["zoom"],"miter",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],["motorway","trunk","primary"],0.44999999999999996,["secondary","tertiary"],0.06,0],13,["match",["get","class"],["motorway","trunk","primary"],2.4,["secondary","tertiary"],1.5,["motorway_link","trunk_link","primary_link","street","street_limited"],0.6,0.3],18,["match",["get","class"],["motorway","trunk","primary"],19.2,["secondary","tertiary"],15.6,["motorway_link","trunk_link","primary_link","street","street_limited"],10.799999999999999,6],22,["match",["get","class"],["motorway","trunk","primary"],192,["secondary","tertiary"],156,["motorway_link","trunk_link","primary_link","street","street_limited"],108,60]],"line-color":"hsl(220, 1%, 100%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, surface"}},{"id":"road-rail","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["match",["get","class"],["major_rail","minor_rail"],true,false],["match",["get","structure"],["none","ford"],true,false]],"paint":{"line-color":["interpolate",["linear"],["zoom"],13,"hsl(220, 0%, 93%)",17,"hsl(220, 0%, 87%)"],"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,20,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, surface"}},{"id":"bridge-path-trail","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["match",["get","type"],["hiking","mountain_bike","trail"],true,false],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 1%, 100%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-path-cycleway-piste","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["match",["get","type"],["cycleway","piste"],true,false],["==",["geometry-type"],"LineString"]],"layout":{},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 1%, 100%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-path","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"path"],["!=",["get","type"],"steps"],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":"round"},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,18,4],"line-color":"hsl(220, 1%, 100%)","line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-steps","type":"line","source":"composite","source-layer":"road","minzoom":14,"filter":["all",["==",["get","type"],"steps"],["==",["get","structure"],"bridge"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],15,1,16,1.6,18,6],"line-color":"hsl(220, 1%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.75,1]],16,["literal",[1,0.75]],17,["literal",[0.3,0.3]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-pedestrian","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["==",["get","class"],"pedestrian"],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,18,12],"line-color":"hsl(220, 1%, 100%)","line-dasharray":["step",["zoom"],["literal",[1,0]],15,["literal",[1.5,0.4]],16,["literal",[1,0.2]]]},"metadata":{"mapbox:featureComponent":"walking-cycling","mapbox:group":"Walking, cycling, etc., barriers-bridges"}},{"id":"bridge-case-simple","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["step",["zoom"],["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["==",["geometry-type"],"LineString"]],"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,["match",["get","class"],["motorway","trunk","primary"],3.5999999999999996,["secondary","tertiary"],2.4,["motorway_link","trunk_link","street","street_limited","primary_link"],1.5,0.75],18,["match",["get","class"],["motorway","trunk","primary"],21.599999999999998,["secondary","tertiary"],18,["motorway_link","trunk_link","street","street_limited","primary_link"],13.2,9.6],22,["match",["get","class"],["motorway","trunk","primary"],216,["secondary","tertiary"],180,["motorway_link","trunk_link","primary_link","street","street_limited"],132,96]],"line-color":"hsl(220, 1%, 97%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, bridges"}},{"id":"bridge-simple","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["step",["zoom"],["match",["get","class"],["motorway","trunk"],true,false],13,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","secondary","tertiary","street","street_limited","primary_link","track"],true,false],14,["match",["get","class"],["motorway","motorway_link","trunk","trunk_link","primary","primary_link","secondary","secondary_link","tertiary","tertiary_link","street","street_limited","service","track"],true,false]],["==",["geometry-type"],"LineString"]],"layout":{"line-cap":["step",["zoom"],"butt",14,"round"]},"paint":{"line-width":["interpolate",["exponential",1.5],["zoom"],13,["match",["get","class"],["motorway","trunk","primary"],2.4,["secondary","tertiary"],1.5,["motorway_link","trunk_link","street","street_limited","primary_link"],0.6,0.5],18,["match",["get","class"],["motorway","trunk","primary"],19.2,["secondary","tertiary"],15.6,["motorway_link","trunk_link","street","street_limited","primary_link"],10.799999999999999,7.199999999999999],22,["match",["get","class"],["motorway","trunk","primary"],192,["secondary","tertiary"],156,["motorway_link","trunk_link","primary_link","street","street_limited"],108,72]],"line-color":"hsl(220, 1%, 100%)"},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, bridges"}},{"id":"bridge-rail","type":"line","source":"composite","source-layer":"road","minzoom":13,"filter":["all",["==",["get","structure"],"bridge"],["match",["get","class"],["major_rail","minor_rail"],true,false]],"paint":{"line-color":"hsl(220, 0%, 87%)","line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,20,1]},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, bridges"}},{"id":"admin-1-boundary-bg","type":"line","source":"composite","source-layer":"admin","minzoom":7,"filter":["all",["==",["get","admin_level"],1],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"paint":{"line-color":"hsl(220, 0%, 87%)","line-width":["interpolate",["linear"],["zoom"],3,3,12,6],"line-opacity":["interpolate",["linear"],["zoom"],7,0,8,0.5],"line-dasharray":[1,0],"line-blur":["interpolate",["linear"],["zoom"],3,0,12,3]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-0-boundary-bg","type":"line","source":"composite","source-layer":"admin","minzoom":1,"filter":["all",["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"paint":{"line-width":["interpolate",["linear"],["zoom"],3,5.2,12,10.4],"line-color":"hsl(220, 0%, 87%)","line-opacity":["interpolate",["linear"],["zoom"],3,0,4,0.5],"line-blur":["interpolate",["linear"],["zoom"],3,0,12,2.6]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-1-boundary","type":"line","source":"composite","source-layer":"admin","minzoom":2,"filter":["all",["==",["get","admin_level"],1],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"layout":{},"paint":{"line-dasharray":["step",["zoom"],["literal",[2,0]],7,["literal",[2,2,6,2]]],"line-width":["interpolate",["linear"],["zoom"],3,0.3,12,1.5],"line-opacity":["interpolate",["linear"],["zoom"],2,0,3,1],"line-color":"hsl(220, 1%, 71%)"},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-0-boundary","type":"line","source":"composite","source-layer":"admin","minzoom":1,"filter":["all",["==",["get","admin_level"],0],["==",["get","disputed"],"false"],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"layout":{},"paint":{"line-color":"hsl(220, 0%, 70%)","line-width":["interpolate",["linear"],["zoom"],3,0.65,12,2.6],"line-dasharray":[10,0]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"admin-0-boundary-disputed","type":"line","source":"composite","source-layer":"admin","minzoom":1,"filter":["all",["==",["get","disputed"],"true"],["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","US"],true,false]],"paint":{"line-color":"hsl(220, 0%, 70%)","line-width":["interpolate",["linear"],["zoom"],3,0.65,12,2.6],"line-dasharray":["step",["zoom"],["literal",[3,2,5]],7,["literal",[2,1.5]]]},"metadata":{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"}},{"id":"road-label-simple","type":"symbol","source":"composite","source-layer":"road","minzoom":12,"filter":["all",["has","name"],["match",["get","class"],["motorway","trunk","primary","secondary","tertiary","street","street_limited"],true,false]],"layout":{"text-size":["interpolate",["linear"],["zoom"],10,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],10,9],18,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],16,14]],"text-max-angle":30,"text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"symbol-placement":"line","text-padding":1,"text-rotation-alignment":"map","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":0.01},"paint":{"text-color":"hsl(220, 1%, 49%)","text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1},"metadata":{"mapbox:featureComponent":"road-network","mapbox:group":"Road network, road-labels"}},{"id":"waterway-label","type":"symbol","source":"composite","source-layer":"natural_label","minzoom":13,"filter":["all",["match",["get","class"],["canal","river","stream","disputed_canal","disputed_river","disputed_stream"],["match",["get","worldview"],["all","US"],true,false],false],["==",["geometry-type"],"LineString"]],"layout":{"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-max-angle":30,"symbol-spacing":["interpolate",["linear",1],["zoom"],15,250,17,400],"text-size":["interpolate",["linear"],["zoom"],13,12,18,18],"symbol-placement":"line","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},"paint":{"text-color":"hsl(220, 1%, 58%)","text-halo-color":"hsla(220, 0%, 100%, 0.5)"},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"}},{"minzoom":4,"layout":{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"text-max-angle":30,"text-field":["coalesce",["get","name_en"],["get","name"]],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport"},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},"filter":["all",["match",["get","class"],["glacier","landform","disputed_glacier","disputed_landform"],["match",["get","worldview"],["all","US"],true,false],false],["<=",["get","filterrank"],1],["==",["geometry-type"],"LineString"]],"type":"symbol","source":"composite","id":"natural-line-label","paint":{"text-halo-width":0.5,"text-halo-color":"hsl(220, 0%, 100%)","text-halo-blur":0.5,"text-color":"hsl(220, 1%, 62%)"},"source-layer":"natural_label"},{"id":"natural-point-label","type":"symbol","source":"composite","source-layer":"natural_label","minzoom":4,"filter":["all",["match",["get","class"],["dock","glacier","landform","water_feature","wetland","disputed_dock","disputed_glacier","disputed_landform","disputed_water_feature","disputed_wetland"],["match",["get","worldview"],["all","US"],true,false],false],["<=",["get","filterrank"],1],["==",["geometry-type"],"Point"]],"layout":{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":"","text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-offset":["literal",[0,0]],"text-field":["coalesce",["get","name_en"],["get","name"]]},"paint":{"icon-opacity":["step",["zoom"],["step",["get","sizerank"],0,5,1],17,["step",["get","sizerank"],0,13,1]],"text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":0.5,"text-halo-blur":0.5,"text-color":"hsl(220, 1%, 62%)"},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"}},{"minzoom":1,"layout":{"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-max-angle":30,"text-letter-spacing":["match",["get","class"],"ocean",0.25,["sea","bay"],0.15,0],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},"filter":["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","US"],true,false],false],["==",["geometry-type"],"LineString"]],"type":"symbol","source":"composite","id":"water-line-label","paint":{"text-color":"hsl(220, 1%, 58%)","text-halo-color":"hsla(220, 0%, 100%, 0.5)"},"source-layer":"natural_label"},{"id":"water-point-label","type":"symbol","source":"composite","source-layer":"natural_label","minzoom":1,"filter":["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","US"],true,false],false],["==",["geometry-type"],"Point"]],"layout":{"text-line-height":1.3,"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":["match",["get","class"],"ocean",0.25,["bay","sea"],0.15,0.01],"text-max-width":["match",["get","class"],"ocean",4,"sea",5,["bay","water"],7,10]},"paint":{"text-color":"hsl(220, 1%, 58%)","text-halo-color":"hsla(220, 0%, 100%, 0.5)"},"metadata":{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"}},{"id":"poi-label","type":"symbol","source":"composite","source-layer":"poi_label","minzoom":6,"filter":["<=",["get","filterrank"],["+",["step",["zoom"],0,16,1,17,2],1]],"layout":{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":"","text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-offset":[0,0],"text-anchor":["step",["zoom"],["step",["get","sizerank"],"center",5,"top"],17,["step",["get","sizerank"],"center",13,"top"]],"text-field":["coalesce",["get","name_en"],["get","name"]]},"paint":{"text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":0.5,"text-halo-blur":0.5,"text-color":"hsl(220, 1%, 62%)"},"metadata":{"mapbox:featureComponent":"point-of-interest-labels","mapbox:group":"Point of interest labels, poi-labels"}},{"id":"airport-label","type":"symbol","source":"composite","source-layer":"airport_label","minzoom":8,"filter":["match",["get","class"],["military","civil","disputed_military","disputed_civil"],["match",["get","worldview"],["all","US"],true,false],false],"layout":{"text-line-height":1.1,"text-size":["step",["get","sizerank"],18,9,12],"icon-image":"","text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-offset":[0,0],"text-rotation-alignment":"viewport","text-anchor":"top","text-field":["step",["get","sizerank"],["case",["has","ref"],["concat",["get","ref"]," -\\n",["coalesce",["get","name_en"],["get","name"]]],["coalesce",["get","name_en"],["get","name"]]],15,["get","ref"]],"text-letter-spacing":0.01,"text-max-width":9},"paint":{"text-color":"hsl(220, 1%, 49%)","text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1},"metadata":{"mapbox:featureComponent":"transit","mapbox:group":"Transit, transit-labels"}},{"minzoom":10,"layout":{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-transform":"uppercase","text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-letter-spacing":["match",["get","type"],"suburb",0.15,0.05],"text-max-width":7,"text-padding":3,"text-size":["interpolate",["cubic-bezier",0.5,0,1,1],["zoom"],11,["match",["get","type"],"suburb",11,10.5],15,["match",["get","type"],"suburb",15,14]]},"maxzoom":15,"filter":["all",["match",["get","class"],["settlement_subdivision","disputed_settlement_subdivision"],["match",["get","worldview"],["all","US"],true,false],false],["<=",["get","filterrank"],3]],"type":"symbol","source":"composite","id":"settlement-subdivision-label","paint":{"text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1,"text-color":"hsl(220, 1%, 69%)","text-halo-blur":0.5},"source-layer":"place_label","metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"minzoom":2,"layout":{"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",0.2,0,0.9,1],["zoom"],3,["step",["get","symbolrank"],11,9,10],6,["step",["get","symbolrank"],14,9,12,12,10],8,["step",["get","symbolrank"],16,9,14,12,12,15,10],13,["step",["get","symbolrank"],22,9,20,12,16,15,14]],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,0.6,0.55],8,0],"symbol-sort-key":["get","symbolrank"],"icon-image":"","text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-anchor":["step",["zoom"],"center",8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7},"maxzoom":13,"filter":["all",["<=",["get","filterrank"],2],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","US"],true,false],false],["step",["zoom"],[">",["get","symbolrank"],6],4,[">=",["get","symbolrank"],7],6,[">=",["get","symbolrank"],8],7,[">=",["get","symbolrank"],10],10,[">=",["get","symbolrank"],11],11,[">=",["get","symbolrank"],13],12,[">=",["get","symbolrank"],15]]],"type":"symbol","source":"composite","id":"settlement-minor-label","paint":{"text-color":["step",["get","symbolrank"],"hsl(220, 1%, 49%)",11,"hsl(220, 1%, 62%)",16,"hsl(220, 1%, 71%)"],"text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1,"icon-opacity":["step",["zoom"],1,8,0],"text-halo-blur":1},"source-layer":"place_label","metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"minzoom":2,"layout":{"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",0.2,0,0.9,1],["zoom"],3,["step",["get","symbolrank"],13,6,11],6,["step",["get","symbolrank"],18,6,16,7,14],8,["step",["get","symbolrank"],20,9,16,10,14],15,["step",["get","symbolrank"],24,9,20,12,16,15,14]],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,0.6,0.55],8,0],"symbol-sort-key":["get","symbolrank"],"icon-image":"","text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-anchor":["step",["zoom"],"center",8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7},"maxzoom":15,"filter":["all",["<=",["get","filterrank"],2],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","US"],true,false],false],["step",["zoom"],false,2,["<=",["get","symbolrank"],6],4,["<",["get","symbolrank"],7],6,["<",["get","symbolrank"],8],7,["<",["get","symbolrank"],10],10,["<",["get","symbolrank"],11],11,["<",["get","symbolrank"],13],12,["<",["get","symbolrank"],15],13,[">=",["get","symbolrank"],11],14,[">=",["get","symbolrank"],15]]],"type":"symbol","source":"composite","id":"settlement-major-label","paint":{"text-color":["step",["get","symbolrank"],"hsl(220, 1%, 49%)",11,"hsl(220, 1%, 62%)",16,"hsl(220, 1%, 71%)"],"text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1,"icon-opacity":["step",["zoom"],1,8,0],"text-halo-blur":1},"source-layer":"place_label","metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"minzoom":3,"layout":{"text-size":["interpolate",["cubic-bezier",0.85,0.7,0.65,1],["zoom"],4,["step",["get","symbolrank"],9,6,8,7,7],9,["step",["get","symbolrank"],21,6,16,7,14]],"text-transform":"uppercase","text-font":["DIN Pro Bold","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":0.15,"text-max-width":6},"maxzoom":9,"filter":["match",["get","class"],["state","disputed_state"],["match",["get","worldview"],["all","US"],true,false],false],"type":"symbol","source":"composite","id":"state-label","paint":{"text-color":"hsl(220, 1%, 49%)","text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1,"text-opacity":0.5},"source-layer":"place_label","metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"minzoom":1,"layout":{"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",0.2,0,0.7,1],["zoom"],1,["step",["get","symbolrank"],11,4,9,5,8],9,["step",["get","symbolrank"],22,4,19,5,17]],"text-radial-offset":["step",["zoom"],0.6,8,0],"icon-image":"","text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":6},"maxzoom":10,"filter":["match",["get","class"],["country","disputed_country"],["match",["get","worldview"],["all","US"],true,false],false],"type":"symbol","source":"composite","id":"country-label","paint":{"icon-opacity":["step",["zoom"],["case",["has","text_anchor"],1,0],7,0],"text-color":"hsl(220, 1%, 49%)","text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1.25},"source-layer":"place_label","metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}},{"minzoom":0.75,"layout":{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-size":["interpolate",["exponential",0.5],["zoom"],0,10,2.5,15],"text-transform":"uppercase","text-letter-spacing":0.05},"maxzoom":3,"filter":["==",["get","class"],"continent"],"type":"symbol","source":"composite","id":"continent-label","paint":{"text-color":"hsl(220, 1%, 49%)","text-halo-color":"hsl(220, 0%, 100%)","text-halo-width":1.5,"text-opacity":["interpolate",["linear"],["zoom"],0,0.8,1.5,0.5,2.5,0]},"source-layer":"natural_label","metadata":{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"}}],"sources":{"composite":{"url":"mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2","type":"vector","data":{"attribution":"<a href=\\"https://www.mapbox.com/about/maps/\\" target=\\"_blank\\" title=\\"Mapbox\\" aria-label=\\"Mapbox\\">© Mapbox</a> <a href=\\"https://www.openstreetmap.org/copyright/\\" target=\\"_blank\\" title=\\"OpenStreetMap\\" aria-label=\\"OpenStreetMap\\">© OpenStreetMap</a> <a class=\\"mapbox-improve-map\\" href=\\"https://www.mapbox.com/contribute/\\" target=\\"_blank\\" title=\\"Improve this map\\" aria-label=\\"Improve this map\\">Improve this map</a>","bounds":[-180,-85,180,85],"cacheControl":"max-age=43200,s-maxage=7200","center":[0,0,0],"constituents":[{"maxzoom":16,"minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"maxzoom":15,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"maxzoom":7,"minzoom":0,"source":"mapbox.mapbox-bathymetry-v2"}],"format":"pbf","language_options":{"all":"Every available language","ar":"Arabic","bg":"Bulgarian","ca":"Catalan","cs":"Czech","da":"Danish","de":"German","el":"Greek","en":"English","es":"Spanish","et":"Estonian","fa":"Farsi","fi":"Finnish","fr":"French","he":"Hebrew","hr":"Croatian","hu":"Hungarian","id":"Indonesian","it":"Italian","ja":"Japanese","ka":"Georgian","ko":"Korean","local":"Renderable local language","lv":"Latvian","ms":"Malay","nb":"Norwegian Bokmål","nl":"Dutch","no":"Norwegian","pl":"Polish","pt":"Portuguese","ro":"Romanian","ru":"Russian","sk":"Slovak","sl":"Slovenian","sq":"Albanian","sr":"Serbian","sv":"Swedish","th":"Thai","tl":"Tagalog","tr":"Turkish","uk":"Ukrainian","vi":"Vietnamese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese"},"mapbox_logo":true,"maskLevel":9,"maxzoom":16,"minzoom":0,"name":"Mapbox Bathymetry v2 + Mapbox Terrain v2 + Mapbox Streets v8","scheme":"xyz","tilejson":"3.0.0","tiles":["mapbox://tiles/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2/{z}/{x}/{y}.vector.pbf"],"vector_layers":[{"id":"landuse","minzoom":5,"source":"mapbox.mapbox-streets-v8"},{"id":"waterway","minzoom":7,"source":"mapbox.mapbox-streets-v8"},{"id":"water","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"aeroway","minzoom":9,"source":"mapbox.mapbox-streets-v8"},{"id":"structure","minzoom":13,"source":"mapbox.mapbox-streets-v8"},{"id":"building","minzoom":12,"source":"mapbox.mapbox-streets-v8"},{"id":"landuse_overlay","minzoom":5,"source":"mapbox.mapbox-streets-v8"},{"id":"road","minzoom":3,"source":"mapbox.mapbox-streets-v8"},{"id":"admin","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"place_label","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"airport_label","minzoom":8,"source":"mapbox.mapbox-streets-v8"},{"id":"transit_stop_label","minzoom":5,"source":"mapbox.mapbox-streets-v8"},{"id":"natural_label","minzoom":0,"source":"mapbox.mapbox-streets-v8"},{"id":"poi_label","minzoom":6,"source":"mapbox.mapbox-streets-v8"},{"id":"motorway_junction","minzoom":9,"source":"mapbox.mapbox-streets-v8"},{"id":"housenum_label","minzoom":16,"source":"mapbox.mapbox-streets-v8"},{"id":"landcover","maxzoom":22,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"id":"hillshade","maxzoom":22,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"id":"contour","maxzoom":22,"minzoom":0,"source":"mapbox.mapbox-terrain-v2"},{"id":"depth","maxzoom":7,"minzoom":0,"source":"mapbox.mapbox-bathymetry-v2"}],"worldview_default":"US","worldview_options":{"ALL":"Every available worldview","AR":"Argentina","CN":"China","IN":"India","JP":"Japan","MA":"Morocco","RS":"Serbia","RU":"Russia","TR":"Turkey","US":"United States","VN":"Vietnam"}}}},"created":"1970-01-01T00:00:00.000Z","modified":"1970-01-01T00:00:00.000Z","owner":"mapbox","id":"light-v11","draft":false}');
|
|
10566
10566
|
var mapbox_satellite_namespaceObject = JSON.parse('{"version":8,"name":"Mapbox Satellite","metadata":{"mapbox:autocomposite":true,"mapbox:type":"default"},"sources":{"mapbox":{"type":"raster","url":"mapbox://mapbox.satellite","tileSize":256,"data":{"attribution":"<a href=\\"https://www.mapbox.com/about/maps/\\" target=\\"_blank\\" title=\\"Mapbox\\" aria-label=\\"Mapbox\\">© Mapbox</a> <a href=\\"https://www.openstreetmap.org/copyright/\\" target=\\"_blank\\" title=\\"OpenStreetMap\\" aria-label=\\"OpenStreetMap\\">© OpenStreetMap</a> <a class=\\"mapbox-improve-map\\" href=\\"https://www.mapbox.com/contribute/\\" target=\\"_blank\\" title=\\"Improve this map\\" aria-label=\\"Improve this map\\">Improve this map</a> <a href=\\"https://www.maxar.com/\\" target=\\"_blank\\" title=\\"Maxar\\" aria-label=\\"Maxar\\">© Maxar</a>","autoscale":true,"bounds":[-180,-85,180,85],"cacheControl":"max-age=43200,s-maxage=2592000","center":[0,0,3],"created":1358310600000,"id":"mapbox.satellite","mapbox_logo":true,"maxzoom":22,"minzoom":0,"modified":1614877124000,"name":"Mapbox Satellite","private":false,"scheme":"xyz","tilejson":"3.0.0","tiles":["mapbox://tiles/mapbox.satellite/{z}/{x}/{y}.png"],"webpage":"https://studio.mapbox.com/tilesets/mapbox.satellite"}}},"center":[0,0],"zoom":3,"sprite":"mapbox://sprites/mapbox/satellite-v9","glyphs":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":"rgb(4,7,14)"}},{"id":"satellite","type":"raster","source":"mapbox","source-layer":"mapbox_satellite_full"}],"created":"1970-01-01T00:00:00.000Z","modified":"1970-01-01T00:00:00.000Z","owner":"mapbox","id":"satellite-v9","draft":false,"visibility":"public"}');
|
|
@@ -10639,39 +10639,40 @@ const lightFog = {
|
|
|
10639
10639
|
0
|
|
10640
10640
|
]
|
|
10641
10641
|
};
|
|
10642
|
-
const lite = {
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
}
|
|
10658
|
-
},
|
|
10659
|
-
layers: [
|
|
10660
|
-
{
|
|
10661
|
-
id: 'lite_world_layer',
|
|
10662
|
-
type: 'raster',
|
|
10663
|
-
source: 'lite_world',
|
|
10664
|
-
paint: {
|
|
10665
|
-
'raster-opacity': 1
|
|
10642
|
+
const lite = ()=>({
|
|
10643
|
+
version: 8,
|
|
10644
|
+
sprite: `${maplessPreset.mapboxAssets}/style/sprite`,
|
|
10645
|
+
glyphs: `${maplessPreset.mapboxAssets}/glyphs/mapbox/{fontstack}/{range}.pbf`,
|
|
10646
|
+
projection: {
|
|
10647
|
+
name: 'globe'
|
|
10648
|
+
},
|
|
10649
|
+
sources: {
|
|
10650
|
+
lite_world: {
|
|
10651
|
+
type: 'raster',
|
|
10652
|
+
tiles: [
|
|
10653
|
+
`${maplessPreset.geoServer}/{MAP_ID}/{z}/{x}/{y}`
|
|
10654
|
+
],
|
|
10655
|
+
tileSize: 256,
|
|
10656
|
+
volatile: true
|
|
10666
10657
|
}
|
|
10667
|
-
}
|
|
10668
|
-
|
|
10669
|
-
|
|
10658
|
+
},
|
|
10659
|
+
layers: [
|
|
10660
|
+
{
|
|
10661
|
+
id: 'lite_world_layer',
|
|
10662
|
+
type: 'raster',
|
|
10663
|
+
source: 'lite_world',
|
|
10664
|
+
paint: {
|
|
10665
|
+
'raster-opacity': 1
|
|
10666
|
+
}
|
|
10667
|
+
}
|
|
10668
|
+
]
|
|
10669
|
+
});
|
|
10670
10670
|
const buildTileUrl = (url)=>{
|
|
10671
10671
|
if (url.startsWith('http://') || url.startsWith('https://')) if (url.includes('/{z}/{x}/{y}')) return url;
|
|
10672
10672
|
else return `${url}/{z}/{x}/{y}`;
|
|
10673
10673
|
const cleanPath = url.startsWith('/') ? url.slice(1) : url;
|
|
10674
|
-
|
|
10674
|
+
const sep = maplessPreset.apiUrl.endsWith('/') ? '' : '/';
|
|
10675
|
+
return `${maplessPreset.apiUrl}${sep}${cleanPath}/{z}/{x}/{y}`;
|
|
10675
10676
|
};
|
|
10676
10677
|
const adjustMapConfigByCoord = (mapConfig, coord)=>{
|
|
10677
10678
|
if (!coord || 'wgs84' === coord) return mapConfig;
|
|
@@ -10694,7 +10695,7 @@ const transformMapCenter = (center, fromCoord, toCoord)=>{
|
|
|
10694
10695
|
});
|
|
10695
10696
|
};
|
|
10696
10697
|
const sourcesMap = ()=>maplessPreset.MAP_THEME_SOURCES?.reduce((prev, item)=>{
|
|
10697
|
-
const copy = adjustMapConfigByCoord(lite, item.coord);
|
|
10698
|
+
const copy = adjustMapConfigByCoord(lite(), item.coord);
|
|
10698
10699
|
copy.sources.lite_world.tiles = [
|
|
10699
10700
|
buildTileUrl(item.url)
|
|
10700
10701
|
];
|
|
@@ -10838,11 +10839,11 @@ class Mapless extends Base {
|
|
|
10838
10839
|
light: mapbox_light_namespaceObject,
|
|
10839
10840
|
satellite: mapbox_satellite_namespaceObject,
|
|
10840
10841
|
streets: mapbox_streets_namespaceObject,
|
|
10841
|
-
dz_dark: dzmap_dark,
|
|
10842
|
-
dz_light: light,
|
|
10843
|
-
dz_satellite: satellite_satellite,
|
|
10844
|
-
dz_cyber: dzmap_cyber,
|
|
10845
|
-
dz_streets: streets
|
|
10842
|
+
dz_dark: dzmap_dark(),
|
|
10843
|
+
dz_light: light(),
|
|
10844
|
+
dz_satellite: satellite_satellite(),
|
|
10845
|
+
dz_cyber: dzmap_cyber(),
|
|
10846
|
+
dz_streets: streets()
|
|
10846
10847
|
}));
|
|
10847
10848
|
const ret = styles[style] || style;
|
|
10848
10849
|
this._terrain = ret.terrain;
|