@@ -1213,55 +1213,6 @@ const layers = {
12131213 'line-gap-width' : railway_tunnel_casing_add ,
12141214 }
12151215 } ,
1216- {
1217- id : 'railway_tunnel_fill' ,
1218- type : 'line' ,
1219- minzoom : 8 ,
1220- source : 'high' ,
1221- 'source-layer' : 'railway_line_high' ,
1222- filter : [ 'all' ,
1223- [ 'get' , 'tunnel' ] ,
1224- [ '!=' , [ 'get' , 'railway' ] , 'construction' ] ,
1225- [ '!=' , [ 'get' , 'railway' ] , 'proposed' ] ,
1226- [ '!=' , [ 'get' , 'railway' ] , 'abandoned' ] ,
1227- [ '!=' , [ 'get' , 'railway' ] , 'razed' ] ,
1228- ] ,
1229- layout : {
1230- 'line-join' : 'round' ,
1231- 'line-cap' : 'round' ,
1232- } ,
1233- paint : standardFillPaint ( [ 1 ] ) ,
1234- } ,
1235- {
1236- id : 'railway_tunnel_bright' ,
1237- type : 'line' ,
1238- minzoom : 8 ,
1239- source : 'high' ,
1240- 'source-layer' : 'railway_line_high' ,
1241- filter : [ 'all' ,
1242- [ 'get' , 'tunnel' ] ,
1243- [ '!=' , [ 'get' , 'railway' ] , 'construction' ] ,
1244- [ '!=' , [ 'get' , 'railway' ] , 'proposed' ] ,
1245- [ '!=' , [ 'get' , 'railway' ] , 'abandoned' ] ,
1246- [ '!=' , [ 'get' , 'railway' ] , 'razed' ] ,
1247- ] ,
1248- layout : {
1249- 'line-join' : 'round' ,
1250- 'line-cap' : 'round' ,
1251- } ,
1252- paint : {
1253- ...standardFillPaint ( [ 1 ] ) ,
1254- 'line-color' : 'rgba(255, 255, 255, 50%)' ,
1255- }
1256- } ,
1257- preferredDirectionLayer ( 'railway_tunnel_preferred_direction' , [ 'all' ,
1258- [ 'get' , 'tunnel' ] ,
1259- [ 'any' ,
1260- [ '==' , [ 'get' , 'preferred_direction' ] , 'forward' ] ,
1261- [ '==' , [ 'get' , 'preferred_direction' ] , 'backward' ] ,
1262- [ '==' , [ 'get' , 'preferred_direction' ] , 'both' ] ,
1263- ]
1264- ] ) ,
12651216 {
12661217 id : 'railway_line_casing' ,
12671218 type : 'line' ,
@@ -1358,6 +1309,55 @@ const layers = {
13581309 'line-dasharray' : razed_dasharray ,
13591310 }
13601311 } ,
1312+ {
1313+ id : 'railway_tunnel_fill' ,
1314+ type : 'line' ,
1315+ minzoom : 8 ,
1316+ source : 'high' ,
1317+ 'source-layer' : 'railway_line_high' ,
1318+ filter : [ 'all' ,
1319+ [ 'get' , 'tunnel' ] ,
1320+ [ '!=' , [ 'get' , 'railway' ] , 'construction' ] ,
1321+ [ '!=' , [ 'get' , 'railway' ] , 'proposed' ] ,
1322+ [ '!=' , [ 'get' , 'railway' ] , 'abandoned' ] ,
1323+ [ '!=' , [ 'get' , 'railway' ] , 'razed' ] ,
1324+ ] ,
1325+ layout : {
1326+ 'line-join' : 'round' ,
1327+ 'line-cap' : 'round' ,
1328+ } ,
1329+ paint : standardFillPaint ( [ 1 ] ) ,
1330+ } ,
1331+ {
1332+ id : 'railway_tunnel_bright' ,
1333+ type : 'line' ,
1334+ minzoom : 8 ,
1335+ source : 'high' ,
1336+ 'source-layer' : 'railway_line_high' ,
1337+ filter : [ 'all' ,
1338+ [ 'get' , 'tunnel' ] ,
1339+ [ '!=' , [ 'get' , 'railway' ] , 'construction' ] ,
1340+ [ '!=' , [ 'get' , 'railway' ] , 'proposed' ] ,
1341+ [ '!=' , [ 'get' , 'railway' ] , 'abandoned' ] ,
1342+ [ '!=' , [ 'get' , 'railway' ] , 'razed' ] ,
1343+ ] ,
1344+ layout : {
1345+ 'line-join' : 'round' ,
1346+ 'line-cap' : 'round' ,
1347+ } ,
1348+ paint : {
1349+ ...standardFillPaint ( [ 1 ] ) ,
1350+ 'line-color' : 'rgba(255, 255, 255, 50%)' ,
1351+ }
1352+ } ,
1353+ preferredDirectionLayer ( 'railway_tunnel_preferred_direction' , [ 'all' ,
1354+ [ 'get' , 'tunnel' ] ,
1355+ [ 'any' ,
1356+ [ '==' , [ 'get' , 'preferred_direction' ] , 'forward' ] ,
1357+ [ '==' , [ 'get' , 'preferred_direction' ] , 'backward' ] ,
1358+ [ '==' , [ 'get' , 'preferred_direction' ] , 'both' ] ,
1359+ ]
1360+ ] ) ,
13611361 {
13621362 id : 'railway_construction_fill' ,
13631363 type : 'line' ,
0 commit comments