Skip to content

Commit 08b2132

Browse files
committed
adjusting country and state lines in railway layer
1 parent de0a1e5 commit 08b2132

1 file changed

Lines changed: 31 additions & 26 deletions

File tree

railway/railway.json

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5391,7 +5391,7 @@
53915391
"maxzoom": 20,
53925392
"filter": ["in", ["get", "admin_level"], ["literal", [5, 6]]],
53935393
"layout": {
5394-
"visibility": "visible",
5394+
"visibility": "none",
53955395
"line-cap": "round",
53965396
"line-join": "round",
53975397
"line-miter-limit": 2
@@ -5403,11 +5403,11 @@
54035403
}
54045404
},
54055405
{
5406-
"id": "admin4_state_lines__case",
5406+
"id": "admin_4_state_lines__case",
54075407
"type": "line",
54085408
"source": "osm",
54095409
"source-layer": "land_ohm_lines",
5410-
"minzoom": 7,
5410+
"minzoom": 5,
54115411
"maxzoom": 20,
54125412
"filter": [
54135413
"all",
@@ -5429,15 +5429,15 @@
54295429
7,
54305430
"rgba(234, 235, 236, 0.1)"
54315431
],
5432-
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 0, 12, 8, 15, 7]
5432+
"line-width": ["interpolate", ["linear"], ["zoom"], 4, 0, 12, 8, 15, 7]
54335433
}
54345434
},
54355435
{
5436-
"id": "admin4_state_lines",
5436+
"id": "admin_4_state_lines",
54375437
"type": "line",
54385438
"source": "osm",
54395439
"source-layer": "land_ohm_lines",
5440-
"minzoom": 7,
5440+
"minzoom": 4,
54415441
"maxzoom": 20,
54425442
"filter": [
54435443
"all",
@@ -5455,16 +5455,19 @@
54555455
["linear"],
54565456
["zoom"],
54575457
4,
5458-
"rgba(154, 160, 166, 1)",
5458+
"rgba(180, 180, 180, 1)",
54595459
7,
5460-
"rgba(189, 190, 191, 1)"
5460+
"rgba(170, 170, 170, 1)"
54615461
],
5462+
"line-dasharray": [14, 6, 5, 6, 14],
54625463
"line-width": [
54635464
"interpolate",
54645465
["linear"],
54655466
["zoom"],
5466-
2,
5467-
0.4,
5467+
4,
5468+
0.5,
5469+
8,
5470+
0.5,
54685471
12,
54695472
2,
54705473
15,
@@ -5491,15 +5494,15 @@
54915494
}
54925495
},
54935496
{
5494-
"id": "admin12_country_lines_case",
5497+
"id": "admin_1-2_country_lines_case",
54955498
"type": "line",
54965499
"source": "osm",
54975500
"source-layer": "land_ohm_lines",
54985501
"minzoom": 0,
54995502
"maxzoom": 20,
55005503
"filter": ["in", ["get", "admin_level"], ["literal", [1, 2]]],
55015504
"layout": {
5502-
"visibility": "visible",
5505+
"visibility": "none",
55035506
"line-cap": "square",
55045507
"line-join": "round"
55055508
},
@@ -5510,14 +5513,16 @@
55105513
["zoom"],
55115514
4,
55125515
"rgba(242, 242, 242, 0.28)",
5513-
7,
5514-
"rgba(255, 255, 255, 0.24)"
5516+
5,
5517+
"rgba(255, 255, 255, 0.15)",
5518+
8,
5519+
"rgba(255, 255, 255, 0.15)"
55155520
],
5516-
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 0, 12, 10, 15, 8]
5521+
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 0, 8, 1, 18, 4]
55175522
}
55185523
},
55195524
{
5520-
"id": "admin12_countrylines",
5525+
"id": "admin_1-2_country_lines",
55215526
"type": "line",
55225527
"source": "osm",
55235528
"source-layer": "land_ohm_lines",
@@ -5531,30 +5536,30 @@
55315536
},
55325537
"paint": {
55335538
"line-color": [
5534-
"interpolate",
5539+
"interpolate-lab",
55355540
["linear"],
55365541
["zoom"],
55375542
0,
5538-
"rgba(180, 191, 191, 1)",
5539-
14,
5540-
"rgba(174, 185, 185, 1)",
5543+
"rgba(200, 200, 200, 1)",
5544+
8,
5545+
"rgba(190, 190, 190, 1)",
55415546
15,
5542-
"rgba(131, 150, 150, 1)"
5547+
"rgba(180, 180, 180, 1)"
55435548
],
55445549
"line-width": [
55455550
"interpolate",
55465551
["linear"],
55475552
["zoom"],
55485553
0,
55495554
0.25,
5550-
5,
5551-
0.5,
5552-
10,
5553-
1,
5555+
4,
5556+
0.75,
5557+
6,
5558+
1.5,
55545559
13,
55555560
2.5,
55565561
17,
5557-
1.5
5562+
3
55585563
]
55595564
}
55605565
},

0 commit comments

Comments
 (0)