Skip to content

Commit ba4333b

Browse files
authored
Merge pull request #59 from OpenHistoricalMap/1321_update/tunnel
Handle null tunnel/bridge values in style filters
2 parents 227eaea + 0310183 commit ba4333b

4 files changed

Lines changed: 159 additions & 159 deletions

File tree

historical/historical.json

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,9 +1918,9 @@
19181918
"filter": [
19191919
"all",
19201920
["==", ["get", "type"], "construction"],
1921-
["!=", ["get", "tunnel"], 1],
1921+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
19221922
["==", ["get", "construction"], "tertiary"],
1923-
["!=", ["get", "bridge"], 1]
1923+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
19241924
],
19251925
"layout": {
19261926
"visibility": "visible",
@@ -1949,9 +1949,9 @@
19491949
"filter": [
19501950
"all",
19511951
["==", ["get", "type"], "construction"],
1952-
["!=", ["get", "tunnel"], 1],
1952+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
19531953
["==", ["get", "construction"], "secondary"],
1954-
["!=", ["get", "bridge"], 1]
1954+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
19551955
],
19561956
"layout": {
19571957
"visibility": "visible",
@@ -1980,9 +1980,9 @@
19801980
"filter": [
19811981
"all",
19821982
["==", ["get", "type"], "construction"],
1983-
["!=", ["get", "tunnel"], 1],
1983+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
19841984
["==", ["get", "construction"], "primary_link"],
1985-
["!=", ["get", "bridge"], 1]
1985+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
19861986
],
19871987
"layout": {
19881988
"visibility": "visible",
@@ -2011,10 +2011,10 @@
20112011
"filter": [
20122012
"all",
20132013
["==", ["get", "type"], "construction"],
2014-
["!=", ["get", "tunnel"], 1],
2014+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
20152015
["!=", ["get", "ford"], "yes"],
20162016
["==", ["get", "construction"], "primary"],
2017-
["!=", ["get", "bridge"], 1]
2017+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
20182018
],
20192019
"layout": {
20202020
"visibility": "visible",
@@ -2044,13 +2044,13 @@
20442044
"filter": [
20452045
"all",
20462046
["==", ["get", "type"], "construction"],
2047-
["!=", ["get", "tunnel"], 1],
2047+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
20482048
[
20492049
"in",
20502050
["get", "construction"],
20512051
["literal", ["motorway_link", "trunk_link"]]
20522052
],
2053-
["!=", ["get", "bridge"], 1]
2053+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
20542054
],
20552055
"layout": {
20562056
"visibility": "visible",
@@ -2080,9 +2080,9 @@
20802080
"filter": [
20812081
"all",
20822082
["==", ["get", "type"], "construction"],
2083-
["!=", ["get", "tunnel"], 1],
2083+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
20842084
["in", ["get", "construction"], ["literal", ["motorway", "trunk"]]],
2085-
["!=", ["get", "bridge"], 1]
2085+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
20862086
],
20872087
"layout": {
20882088
"visibility": "visible",
@@ -2177,9 +2177,9 @@
21772177
"filter": [
21782178
"all",
21792179
["==", ["get", "type"], "construction"],
2180-
["!=", ["get", "tunnel"], 1],
2180+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
21812181
["==", ["get", "construction"], "secondary_link"],
2182-
["!=", ["get", "bridge"], 1]
2182+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
21832183
],
21842184
"layout": {
21852185
"visibility": "visible",
@@ -2217,9 +2217,9 @@
22172217
"filter": [
22182218
"all",
22192219
["==", ["get", "type"], "construction"],
2220-
["!=", ["get", "tunnel"], 1],
2220+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
22212221
["==", ["get", "construction"], "primary_link"],
2222-
["!=", ["get", "bridge"], 1]
2222+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
22232223
],
22242224
"layout": {
22252225
"visibility": "visible",
@@ -2250,13 +2250,13 @@
22502250
"filter": [
22512251
"all",
22522252
["==", ["get", "type"], "construction"],
2253-
["!=", ["get", "tunnel"], 1],
2253+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
22542254
[
22552255
"in",
22562256
["get", "construction"],
22572257
["literal", ["motorway_link", "trunk_link"]]
22582258
],
2259-
["!=", ["get", "bridge"], 1]
2259+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
22602260
],
22612261
"layout": {
22622262
"visibility": "visible",
@@ -2287,9 +2287,9 @@
22872287
"filter": [
22882288
"all",
22892289
["==", ["get", "type"], "construction"],
2290-
["!=", ["get", "tunnel"], 1],
2290+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
22912291
["==", ["get", "construction"], "tertiary"],
2292-
["!=", ["get", "bridge"], 1]
2292+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
22932293
],
22942294
"layout": {
22952295
"visibility": "visible",
@@ -2327,9 +2327,9 @@
23272327
"filter": [
23282328
"all",
23292329
["==", ["get", "type"], "construction"],
2330-
["!=", ["get", "tunnel"], 1],
2330+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
23312331
["==", ["get", "construction"], "secondary"],
2332-
["!=", ["get", "bridge"], 1]
2332+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
23332333
],
23342334
"layout": {
23352335
"visibility": "visible",
@@ -2367,10 +2367,10 @@
23672367
"filter": [
23682368
"all",
23692369
["==", ["get", "type"], "construction"],
2370-
["!=", ["get", "tunnel"], 1],
2370+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
23712371
["!=", ["get", "ford"], "yes"],
23722372
["==", ["get", "construction"], "primary"],
2373-
["!=", ["get", "bridge"], 1]
2373+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
23742374
],
23752375
"layout": {
23762376
"visibility": "visible",
@@ -2409,9 +2409,9 @@
24092409
"filter": [
24102410
"all",
24112411
["==", ["get", "type"], "construction"],
2412-
["!=", ["get", "tunnel"], 1],
2412+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
24132413
["in", ["get", "construction"], ["literal", ["motorway", "trunk"]]],
2414-
["!=", ["get", "bridge"], 1]
2414+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
24152415
],
24162416
"layout": {
24172417
"visibility": "visible",
@@ -3323,7 +3323,7 @@
33233323
"filter": [
33243324
"all",
33253325
["in", ["get", "type"], ["literal", ["service"]]],
3326-
["!=", ["get", "bridge"], 1]
3326+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
33273327
],
33283328
"layout": {
33293329
"visibility": "visible",
@@ -3353,7 +3353,7 @@
33533353
"filter": [
33543354
"all",
33553355
["in", ["get", "type"], ["literal", ["residential", "unclassified"]]],
3356-
["!=", ["get", "bridge"], 1]
3356+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
33573357
],
33583358
"layout": {
33593359
"visibility": "visible",
@@ -3405,8 +3405,8 @@
34053405
"filter": [
34063406
"all",
34073407
["==", ["get", "type"], "tertiary_link"],
3408-
["!=", ["get", "tunnel"], 1],
3409-
["!=", ["get", "bridge"], 1]
3408+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3409+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
34103410
],
34113411
"layout": {
34123412
"visibility": "visible",
@@ -3440,8 +3440,8 @@
34403440
"filter": [
34413441
"all",
34423442
["==", ["get", "type"], "tertiary"],
3443-
["!=", ["get", "tunnel"], 1],
3444-
["!=", ["get", "bridge"], 1]
3443+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3444+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
34453445
],
34463446
"layout": {
34473447
"visibility": "visible",
@@ -3474,8 +3474,8 @@
34743474
"filter": [
34753475
"all",
34763476
["==", ["get", "type"], "secondary"],
3477-
["!=", ["get", "tunnel"], 1],
3478-
["!=", ["get", "bridge"], 1]
3477+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3478+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
34793479
],
34803480
"layout": {
34813481
"visibility": "visible",
@@ -3506,8 +3506,8 @@
35063506
"filter": [
35073507
"all",
35083508
["==", ["get", "type"], "secondary_link"],
3509-
["!=", ["get", "tunnel"], 1],
3510-
["!=", ["get", "bridge"], 1]
3509+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3510+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
35113511
],
35123512
"layout": {
35133513
"visibility": "visible",
@@ -3538,8 +3538,8 @@
35383538
"filter": [
35393539
"all",
35403540
["==", ["get", "type"], "primary_link"],
3541-
["!=", ["get", "tunnel"], 1],
3542-
["!=", ["get", "bridge"], 1]
3541+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3542+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
35433543
],
35443544
"layout": {
35453545
"visibility": "visible",
@@ -3568,9 +3568,9 @@
35683568
"filter": [
35693569
"all",
35703570
["==", ["get", "type"], "primary"],
3571-
["!=", ["get", "tunnel"], 1],
3571+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
35723572
["!=", ["get", "ford"], "yes"],
3573-
["!=", ["get", "bridge"], 1]
3573+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
35743574
],
35753575
"layout": {
35763576
"visibility": "visible",
@@ -3604,8 +3604,8 @@
36043604
"filter": [
36053605
"all",
36063606
["in", ["get", "type"], ["literal", ["motorway_link", "trunk_link"]]],
3607-
["!=", ["get", "tunnel"], 1],
3608-
["!=", ["get", "bridge"], 1]
3607+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3608+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
36093609
],
36103610
"layout": {
36113611
"visibility": "visible",
@@ -3635,8 +3635,8 @@
36353635
"filter": [
36363636
"all",
36373637
["in", ["get", "type"], ["literal", ["motorway", "trunk"]]],
3638-
["!=", ["get", "tunnel"], 1],
3639-
["!=", ["get", "bridge"], 1]
3638+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3639+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
36403640
],
36413641
"layout": {
36423642
"visibility": "visible",
@@ -3774,8 +3774,8 @@
37743774
"filter": [
37753775
"all",
37763776
["==", ["get", "type"], "secondary_link"],
3777-
["!=", ["get", "tunnel"], 1],
3778-
["!=", ["get", "bridge"], 1]
3777+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3778+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
37793779
],
37803780
"layout": {
37813781
"visibility": "visible",
@@ -3804,8 +3804,8 @@
38043804
"filter": [
38053805
"all",
38063806
["==", ["get", "type"], "tertiary_link"],
3807-
["!=", ["get", "tunnel"], 1],
3808-
["!=", ["get", "bridge"], 1]
3807+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3808+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
38093809
],
38103810
"layout": {
38113811
"visibility": "visible",
@@ -3844,8 +3844,8 @@
38443844
"filter": [
38453845
"all",
38463846
["==", ["get", "type"], "primary_link"],
3847-
["!=", ["get", "tunnel"], 1],
3848-
["!=", ["get", "bridge"], 1]
3847+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3848+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
38493849
],
38503850
"layout": {
38513851
"visibility": "visible",
@@ -3875,8 +3875,8 @@
38753875
"filter": [
38763876
"all",
38773877
["in", ["get", "type"], ["literal", ["motorway_link", "trunk_link"]]],
3878-
["!=", ["get", "tunnel"], 1],
3879-
["!=", ["get", "bridge"], 1]
3878+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3879+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
38803880
],
38813881
"layout": {
38823882
"visibility": "visible",
@@ -3916,8 +3916,8 @@
39163916
"filter": [
39173917
"all",
39183918
["==", ["get", "type"], "tertiary"],
3919-
["!=", ["get", "tunnel"], 1],
3920-
["!=", ["get", "bridge"], 1]
3919+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3920+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
39213921
],
39223922
"layout": {
39233923
"visibility": "visible",
@@ -3956,8 +3956,8 @@
39563956
"filter": [
39573957
"all",
39583958
["==", ["get", "type"], "secondary"],
3959-
["!=", ["get", "tunnel"], 1],
3960-
["!=", ["get", "bridge"], 1]
3959+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
3960+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
39613961
],
39623962
"layout": {
39633963
"visibility": "visible",
@@ -3986,9 +3986,9 @@
39863986
"filter": [
39873987
"all",
39883988
["==", ["get", "type"], "primary"],
3989-
["!=", ["get", "tunnel"], 1],
3989+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
39903990
["!=", ["get", "ford"], "yes"],
3991-
["!=", ["get", "bridge"], 1]
3991+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
39923992
],
39933993
"layout": {
39943994
"visibility": "visible",
@@ -4028,8 +4028,8 @@
40284028
"filter": [
40294029
"all",
40304030
["in", ["get", "type"], ["literal", ["motorway", "trunk"]]],
4031-
["!=", ["get", "tunnel"], 1],
4032-
["!=", ["get", "bridge"], 1]
4031+
["!=", ["coalesce", ["get", "tunnel"], 0], 1],
4032+
["!=", ["coalesce", ["get", "bridge"], 0], 1]
40334033
],
40344034
"layout": {
40354035
"visibility": "visible",

0 commit comments

Comments
 (0)