From d8b230b80a13941b13e5688a7f7612eb632b8413 Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Thu, 12 Dec 2019 15:08:31 -0700 Subject: [PATCH] Preliminary styling for protected areas --- style.json | 3198 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 2843 insertions(+), 355 deletions(-) diff --git a/style.json b/style.json index 4f3a8233..11e2c5f9 100644 --- a/style.json +++ b/style.json @@ -25,14 +25,30 @@ { "id": "background", "type": "background", - "paint": {"background-color": "rgb(239,239,239)"} + "paint": { + "background-color": "rgb(239,239,239)" + } }, { "id": "natural_earth", "type": "raster", "source": "natural_earth_shaded_relief", "maxzoom": 6, - "paint": {"raster-opacity": {"base": 1.5, "stops": [[0, 0.6], [6, 0.1]]}} + "paint": { + "raster-opacity": { + "base": 1.5, + "stops": [ + [ + 0, + 0.6 + ], + [ + 6, + 0.1 + ] + ] + } + } }, { "id": "park", @@ -43,7 +59,16 @@ "fill-color": "#d8e8c8", "fill-opacity": 0.7, "fill-outline-color": "rgba(95, 208, 100, 1)" - } + }, + "filter": [ + "all", + [ + "!in", + "class", + "national_park", + "protected_area" + ] + ] }, { "id": "park_outline", @@ -51,9 +76,97 @@ "source": "openmaptiles", "source-layer": "park", "paint": { - "line-dasharray": [1, 1.5], + "line-dasharray": [ + 1, + 1.5 + ], "line-color": "rgba(228, 241, 215, 1)" - } + }, + "filter": [ + "all", + [ + "!in", + "class", + "national_park", + "protected_area" + ] + ] + }, + { + "id": "park_national_park", + "type": "fill", + "source": "openmaptiles", + "source-layer": "park", + "paint": { + "fill-color": "rgba(209, 231, 209, 1)", + "fill-opacity": 0.7, + "fill-outline-color": "rgba(95, 208, 100, 1)" + }, + "filter": [ + "all", + [ + "==", + "class", + "national_park" + ] + ] + }, + { + "id": "park_national_park_outline", + "type": "line", + "source": "openmaptiles", + "source-layer": "park", + "paint": { + "line-color": "rgba(216, 234, 216, 1)" + }, + "layout": { + "visibility": "none" + }, + "filter": [ + "all", + [ + "==", + "class", + "national_park" + ] + ] + }, + { + "id": "park_protected_area", + "type": "fill", + "source": "openmaptiles", + "source-layer": "park", + "paint": { + "fill-color": "rgba(145, 176, 141, 1)", + "fill-opacity": 0.7, + "fill-outline-color": "rgba(95, 208, 100, 1)" + }, + "filter": [ + "all", + [ + "==", + "class", + "protected_area" + ] + ] + }, + { + "id": "park_protected_area_outline", + "type": "line", + "source": "openmaptiles", + "source-layer": "park", + "paint": {}, + "layout": { + "visibility": "none" + }, + "filter": [ + "all", + [ + "==", + "class", + "protected_area" + ] + ] }, { "id": "landuse_residential", @@ -61,13 +174,23 @@ "source": "openmaptiles", "source-layer": "landuse", "maxzoom": 8, - "filter": ["==", "class", "residential"], + "filter": [ + "==", + "class", + "residential" + ], "paint": { "fill-color": { "base": 1, "stops": [ - [9, "hsla(0, 3%, 85%, 0.84)"], - [12, "hsla(35, 57%, 88%, 0.49)"] + [ + 9, + "hsla(0, 3%, 85%, 0.84)" + ], + [ + 12, + "hsla(35, 57%, 88%, 0.49)" + ] ] } } @@ -77,7 +200,14 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": ["all", ["==", "class", "wood"]], + "filter": [ + "all", + [ + "==", + "class", + "wood" + ] + ], "paint": { "fill-antialias": false, "fill-color": "hsla(98, 61%, 72%, 0.7)", @@ -89,7 +219,14 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": ["all", ["==", "class", "grass"]], + "filter": [ + "all", + [ + "==", + "class", + "grass" + ] + ], "paint": { "fill-antialias": false, "fill-color": "rgba(176, 213, 154, 1)", @@ -101,35 +238,80 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": ["==", "class", "cemetery"], - "paint": {"fill-color": "hsl(75, 37%, 81%)"} + "filter": [ + "==", + "class", + "cemetery" + ], + "paint": { + "fill-color": "hsl(75, 37%, 81%)" + } }, { "id": "landuse_hospital", "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": ["==", "class", "hospital"], - "paint": {"fill-color": "#fde"} + "filter": [ + "==", + "class", + "hospital" + ], + "paint": { + "fill-color": "#fde" + } }, { "id": "landuse_school", "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": ["==", "class", "school"], - "paint": {"fill-color": "rgb(236,238,204)"} + "filter": [ + "==", + "class", + "school" + ], + "paint": { + "fill-color": "rgb(236,238,204)" + } + }, + { + "id": "water", + "type": "fill", + "source": "openmaptiles", + "source-layer": "water", + "paint": { + "fill-color": "rgb(158,189,255)" + } }, { "id": "waterway_river", "type": "line", "source": "openmaptiles", "source-layer": "waterway", - "filter": ["==", "class", "river"], - "layout": {"line-cap": "round"}, + "filter": [ + "==", + "class", + "river" + ], + "layout": { + "line-cap": "round" + }, "paint": { "line-color": "#a0c8f0", - "line-width": {"base": 1.2, "stops": [[11, 0.5], [20, 6]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 11, + 0.5 + ], + [ + 20, + 6 + ] + ] + } } }, { @@ -137,27 +319,50 @@ "type": "line", "source": "openmaptiles", "source-layer": "waterway", - "filter": ["all", ["!=", "class", "river"]], - "layout": {"line-cap": "round"}, + "filter": [ + "all", + [ + "!=", + "class", + "river" + ] + ], + "layout": { + "line-cap": "round" + }, "paint": { "line-color": "#a0c8f0", - "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]} + "line-width": { + "base": 1.3, + "stops": [ + [ + 13, + 0.5 + ], + [ + 20, + 6 + ] + ] + } } }, - { - "id": "water", - "type": "fill", - "source": "openmaptiles", - "source-layer": "water", - "paint": {"fill-color": "rgb(158,189,255)"} - }, { "id": "landcover_sand", "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": ["all", ["==", "class", "sand"]], - "paint": {"fill-color": "rgba(247, 239, 195, 1)"} + "filter": [ + "all", + [ + "==", + "class", + "sand" + ] + ], + "paint": { + "fill-color": "rgba(247, 239, 195, 1)" + } }, { "id": "aeroway_fill", @@ -165,8 +370,15 @@ "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 11, - "filter": ["==", "$type", "Polygon"], - "paint": {"fill-color": "rgba(229, 228, 224, 1)", "fill-opacity": 0.7} + "filter": [ + "==", + "$type", + "Polygon" + ], + "paint": { + "fill-color": "rgba(229, 228, 224, 1)", + "fill-opacity": 0.7 + } }, { "id": "aeroway_runway", @@ -176,12 +388,32 @@ "minzoom": 11, "filter": [ "all", - ["==", "$type", "LineString"], - ["==", "class", "runway"] + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "class", + "runway" + ] ], "paint": { "line-color": "#f0ede9", - "line-width": {"base": 1.2, "stops": [[11, 3], [20, 16]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 11, + 3 + ], + [ + 20, + 16 + ] + ] + } } }, { @@ -192,12 +424,32 @@ "minzoom": 11, "filter": [ "all", - ["==", "$type", "LineString"], - ["==", "class", "taxiway"] + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "class", + "taxiway" + ] ], "paint": { "line-color": "#f0ede9", - "line-width": {"base": 1.2, "stops": [[11, 0.5], [20, 6]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 11, + 0.5 + ], + [ + 20, + 6 + ] + ] + } } }, { @@ -207,17 +459,51 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["==", "ramp", 1], - ["==", "brunnel", "tunnel"] + [ + "==", + "class", + "motorway" + ], + [ + "==", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "tunnel" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", - "line-dasharray": [0.5, 0.25], + "line-dasharray": [ + 0.5, + 0.25 + ], "line-width": { "base": 1.2, - "stops": [[12, 1], [13, 3], [14, 4], [20, 15]] + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] } } }, @@ -228,14 +514,44 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "service", "track"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "service", + "track" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#cfcdca", - "line-dasharray": [0.5, 0.25], - "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]} + "line-dasharray": [ + 0.5, + 0.25 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1 + ], + [ + 16, + 4 + ], + [ + 20, + 11 + ] + ] + } } }, { @@ -243,13 +559,44 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "ramp", 1], ["==", "brunnel", "tunnel"]], - "layout": {"line-join": "round"}, + "filter": [ + "all", + [ + "==", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "tunnel" + ] + ], + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[12, 1], [13, 3], [14, 4], [20, 15]] + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] } } }, @@ -260,16 +607,55 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "street", "street_limited"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "street", + "street_limited" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#cfcdca", - "line-opacity": {"stops": [[12, 0], [12.5, 1]]}, + "line-opacity": { + "stops": [ + [ + 12, + 0 + ], + [ + 12.5, + 1 + ] + ] + }, "line-width": { "base": 1.2, - "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]] + "stops": [ + [ + 12, + 0.5 + ], + [ + 13, + 1 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] } } }, @@ -280,13 +666,36 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "secondary", "tertiary"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", - "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 8, + 1.5 + ], + [ + 20, + 17 + ] + ] + } } }, { @@ -296,15 +705,43 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "primary", "trunk"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "primary", + "trunk" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]] + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] } } }, @@ -315,17 +752,51 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["!=", "ramp", 1], - ["==", "brunnel", "tunnel"] + [ + "==", + "class", + "motorway" + ], + [ + "!=", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "tunnel" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", - "line-dasharray": [0.5, 0.25], + "line-dasharray": [ + 0.5, + 0.25 + ], "line-width": { "base": 1.2, - "stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]] + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] } } }, @@ -336,14 +807,42 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "$type", "LineString"], - ["==", "brunnel", "tunnel"], - ["in", "class", "path", "pedestrian"] + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "path", + "pedestrian" + ] ], "paint": { "line-color": "hsl(0, 0%, 100%)", - "line-dasharray": [1, 0.75], - "line-width": {"base": 1.2, "stops": [[14, 0.5], [20, 10]]} + "line-dasharray": [ + 1, + 0.75 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 14, + 0.5 + ], + [ + 20, + 10 + ] + ] + } } }, { @@ -353,16 +852,47 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["==", "ramp", 1], - ["==", "brunnel", "tunnel"] + [ + "==", + "class", + "motorway" + ], + [ + "==", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "tunnel" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fc8", "line-width": { "base": 1.2, - "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]] + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] } } }, @@ -373,13 +903,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "service", "track"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "service", + "track" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fff", - "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 15.5, + 0 + ], + [ + 16, + 2 + ], + [ + 20, + 7.5 + ] + ] + } } }, { @@ -387,13 +944,44 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "ramp", 1], ["==", "brunnel", "tunnel"]], - "layout": {"line-join": "round"}, + "filter": [ + "all", + [ + "==", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "tunnel" + ] + ], + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fff4c6", "line-width": { "base": 1.2, - "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]] + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] } } }, @@ -402,11 +990,41 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "minor"]], - "layout": {"line-join": "round"}, + "filter": [ + "all", + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "minor" + ] + ], + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fff", - "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 13.5, + 0 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } } }, { @@ -416,13 +1034,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "secondary", "tertiary"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fff4c6", - "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 6.5, + 0 + ], + [ + 7, + 0.5 + ], + [ + 20, + 10 + ] + ] + } } }, { @@ -432,13 +1077,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "primary", "trunk"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "primary", + "trunk" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fff4c6", - "line-width": {"base": 1.2, "stops": [[5, 0], [7, 1], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -448,14 +1120,44 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["!=", "ramp", 1], - ["==", "brunnel", "tunnel"] + [ + "==", + "class", + "motorway" + ], + [ + "!=", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "tunnel" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#ffdaa6", - "line-width": {"base": 1.2, "stops": [[5, 0], [7, 1], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -463,10 +1165,38 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "rail"]], + "filter": [ + "all", + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "rail" + ] + ], "paint": { "line-color": "#bbb", - "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]} + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } } }, { @@ -474,11 +1204,42 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "rail"]], + "filter": [ + "all", + [ + "==", + "brunnel", + "tunnel" + ], + [ + "==", + "class", + "rail" + ] + ], "paint": { "line-color": "#bbb", - "line-dasharray": [0.2, 8], - "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]} + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } } }, { @@ -488,12 +1249,36 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "transit"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "in", + "class", + "transit" + ] ], "paint": { "line-color": "#bbb", - "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]} + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } } }, { @@ -503,13 +1288,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "tunnel"], - ["==", "class", "transit"] + [ + "==", + "brunnel", + "tunnel" + ], + [ + "==", + "class", + "transit" + ] ], "paint": { "line-color": "#bbb", - "line-dasharray": [0.2, 8], - "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]} + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } } }, { @@ -517,8 +1329,17 @@ "type": "fill", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "$type", "Polygon"]], - "paint": {"fill-pattern": "pedestrian_polygon"} + "filter": [ + "all", + [ + "==", + "$type", + "Polygon" + ] + ], + "paint": { + "fill-pattern": "pedestrian_polygon" + } }, { "id": "road_motorway_link_casing", @@ -528,16 +1349,49 @@ "minzoom": 12, "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "motorway"], - ["==", "ramp", 1] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway" + ], + [ + "==", + "ramp", + 1 + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[12, 1], [13, 3], [14, 4], [20, 15]] + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] } } }, @@ -548,13 +1402,42 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "service", "track"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "service", + "track" + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#cfcdca", - "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1 + ], + [ + 16, + 4 + ], + [ + 20, + 11 + ] + ] + } } }, { @@ -565,16 +1448,53 @@ "minzoom": 13, "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["!in", "class", "pedestrian", "path", "track", "service", "motorway"], - ["==", "ramp", 1] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "!in", + "class", + "pedestrian", + "path", + "track", + "service", + "motorway" + ], + [ + "==", + "ramp", + 1 + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[12, 1], [13, 3], [14, 4], [20, 15]] + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] } } }, @@ -585,18 +1505,66 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "$type", "LineString"], - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "minor"], - ["!=", "ramp", 1] + [ + "==", + "$type", + "LineString" + ], + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "minor" + ], + [ + "!=", + "ramp", + 1 + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#cfcdca", - "line-opacity": {"stops": [[12, 0], [12.5, 1]]}, + "line-opacity": { + "stops": [ + [ + 12, + 0 + ], + [ + 12.5, + 1 + ] + ] + }, "line-width": { "base": 1.2, - "stops": [[12, 0.5], [13, 1], [14, 4], [20, 20]] + "stops": [ + [ + 12, + 0.5 + ], + [ + 13, + 1 + ], + [ + 14, + 4 + ], + [ + 20, + 20 + ] + ] } } }, @@ -607,14 +1575,43 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "secondary", "tertiary"], - ["!=", "ramp", 1] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ], + [ + "!=", + "ramp", + 1 + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", - "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 8, + 1.5 + ], + [ + 20, + 17 + ] + ] + } } }, { @@ -624,15 +1621,44 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "primary", "trunk"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "primary", + "trunk" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]] + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] } } }, @@ -644,16 +1670,49 @@ "minzoom": 5, "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "motorway"], - ["!=", "ramp", 1] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway" + ], + [ + "!=", + "ramp", + 1 + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]] + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] } } }, @@ -665,15 +1724,46 @@ "minzoom": 14, "filter": [ "all", - ["==", "$type", "LineString"], - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "path", "pedestrian"] + [ + "==", + "$type", + "LineString" + ], + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "path", + "pedestrian" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "hsl(0, 0%, 100%)", - "line-dasharray": [1, 0.7], - "line-width": {"base": 1.2, "stops": [[14, 1], [20, 10]]} + "line-dasharray": [ + 1, + 0.7 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 14, + 1 + ], + [ + 20, + 10 + ] + ] + } } }, { @@ -684,16 +1774,49 @@ "minzoom": 12, "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "motorway"], - ["==", "ramp", 1] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway" + ], + [ + "==", + "ramp", + 1 + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#fc8", "line-width": { "base": 1.2, - "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]] + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] } } }, @@ -704,13 +1827,42 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "service", "track"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "service", + "track" + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#fff", - "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 15.5, + 0 + ], + [ + 16, + 2 + ], + [ + 20, + 7.5 + ] + ] + } } }, { @@ -721,16 +1873,53 @@ "minzoom": 13, "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "ramp", 1], - ["!in", "class", "pedestrian", "path", "track", "service", "motorway"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "ramp", + 1 + ], + [ + "!in", + "class", + "pedestrian", + "path", + "track", + "service", + "motorway" + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#fea", "line-width": { "base": 1.2, - "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]] + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] } } }, @@ -741,13 +1930,42 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "secondary", "tertiary"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#fea", - "line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 6.5, + 0 + ], + [ + 8, + 0.5 + ], + [ + 20, + 13 + ] + ] + } } }, { @@ -757,13 +1975,41 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "primary", "trunk"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "primary", + "trunk" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fea", - "line-width": {"base": 1.2, "stops": [[5, 0], [7, 1], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -774,17 +2020,58 @@ "minzoom": 5, "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "motorway"], - ["!=", "ramp", 1] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway" + ], + [ + "!=", + "ramp", + 1 + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": { "base": 1, - "stops": [[5, "hsl(26, 87%, 62%)"], [6, "#fc8"]] + "stops": [ + [ + 5, + "hsl(26, 87%, 62%)" + ], + [ + 6, + "#fc8" + ] + ] }, - "line-width": {"base": 1.2, "stops": [[5, 0], [7, 1], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -794,12 +2081,37 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "rail"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "rail" + ] ], "paint": { "line-color": "#bbb", - "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]} + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } } }, { @@ -809,13 +2121,41 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "rail"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "rail" + ] ], "paint": { "line-color": "#bbb", - "line-dasharray": [0.2, 8], - "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]} + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } } }, { @@ -825,12 +2165,37 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "transit"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "transit" + ] ], "paint": { "line-color": "#bbb", - "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]} + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } } }, { @@ -840,13 +2205,41 @@ "source-layer": "transportation", "filter": [ "all", - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "class", "transit"] + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "transit" + ] ], "paint": { "line-color": "#bbb", - "line-dasharray": [0.2, 8], - "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]} + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } } }, { @@ -856,14 +2249,46 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "$type", "LineString"], - ["!in", "brunnel", "bridge", "tunnel"], - ["in", "class", "minor"] + [ + "==", + "$type", + "LineString" + ], + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "minor" + ] ], - "layout": {"line-cap": "round", "line-join": "round"}, + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "#fff", - "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 13.5, + 0 + ], + [ + 14, + 2.5 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -873,16 +2298,47 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["==", "ramp", 1], - ["==", "brunnel", "bridge"] + [ + "==", + "class", + "motorway" + ], + [ + "==", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "bridge" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[12, 1], [13, 3], [14, 4], [20, 15]] + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] } } }, @@ -893,13 +2349,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "bridge"], - ["in", "class", "service", "track"] + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "service", + "track" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#cfcdca", - "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1 + ], + [ + 16, + 4 + ], + [ + 20, + 11 + ] + ] + } } }, { @@ -907,13 +2390,44 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "class", "link"], ["==", "brunnel", "bridge"]], - "layout": {"line-join": "round"}, + "filter": [ + "all", + [ + "==", + "class", + "link" + ], + [ + "==", + "brunnel", + "bridge" + ] + ], + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[12, 1], [13, 3], [14, 4], [20, 15]] + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] } } }, @@ -924,16 +2438,55 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "bridge"], - ["in", "class", "street", "street_limited"] + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "street", + "street_limited" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "hsl(36, 6%, 74%)", - "line-opacity": {"stops": [[12, 0], [12.5, 1]]}, + "line-opacity": { + "stops": [ + [ + 12, + 0 + ], + [ + 12.5, + 1 + ] + ] + }, "line-width": { "base": 1.2, - "stops": [[12, 0.5], [13, 1], [14, 4], [20, 25]] + "stops": [ + [ + 12, + 0.5 + ], + [ + 13, + 1 + ], + [ + 14, + 4 + ], + [ + 20, + 25 + ] + ] } } }, @@ -944,14 +2497,42 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "$type", "LineString"], - ["==", "brunnel", "bridge"], - ["in", "class", "path", "pedestrian"] + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "path", + "pedestrian" + ] ], "paint": { "line-color": "hsl(35, 6%, 80%)", - "line-dasharray": [1, 0], - "line-width": {"base": 1.2, "stops": [[14, 1.5], [20, 18]]} + "line-dasharray": [ + 1, + 0 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 14, + 1.5 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -961,13 +2542,36 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "bridge"], - ["in", "class", "secondary", "tertiary"] + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", - "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 8, + 1.5 + ], + [ + 20, + 17 + ] + ] + } } }, { @@ -977,15 +2581,43 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "bridge"], - ["in", "class", "primary", "trunk"] + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "primary", + "trunk" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]] + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] } } }, @@ -996,16 +2628,47 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["!=", "ramp", 1], - ["==", "brunnel", "bridge"] + [ + "==", + "class", + "motorway" + ], + [ + "!=", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "bridge" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#e9ac77", "line-width": { "base": 1.2, - "stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]] + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] } } }, @@ -1016,14 +2679,42 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "$type", "LineString"], - ["==", "brunnel", "bridge"], - ["in", "class", "path", "pedestrian"] + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "path", + "pedestrian" + ] ], "paint": { "line-color": "hsl(0, 0%, 100%)", - "line-dasharray": [1, 0.3], - "line-width": {"base": 1.2, "stops": [[14, 0.5], [20, 10]]} + "line-dasharray": [ + 1, + 0.3 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 14, + 0.5 + ], + [ + 20, + 10 + ] + ] + } } }, { @@ -1033,16 +2724,47 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["==", "ramp", 1], - ["==", "brunnel", "bridge"] + [ + "==", + "class", + "motorway" + ], + [ + "==", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "bridge" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fc8", "line-width": { "base": 1.2, - "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]] + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] } } }, @@ -1053,13 +2775,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "bridge"], - ["in", "class", "service", "track"] + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "service", + "track" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fff", - "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 15.5, + 0 + ], + [ + 16, + 2 + ], + [ + 20, + 7.5 + ] + ] + } } }, { @@ -1067,13 +2816,44 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "class", "link"], ["==", "brunnel", "bridge"]], - "layout": {"line-join": "round"}, + "filter": [ + "all", + [ + "==", + "class", + "link" + ], + [ + "==", + "brunnel", + "bridge" + ] + ], + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fea", "line-width": { "base": 1.2, - "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]] + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] } } }, @@ -1082,11 +2862,41 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "minor"]], - "layout": {"line-join": "round"}, + "filter": [ + "all", + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "minor" + ] + ], + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fff", - "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 13.5, + 0 + ], + [ + 14, + 2.5 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -1096,13 +2906,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "bridge"], - ["in", "class", "secondary", "tertiary"] + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fea", - "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 6.5, + 0 + ], + [ + 7, + 0.5 + ], + [ + 20, + 10 + ] + ] + } } }, { @@ -1112,13 +2949,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "brunnel", "bridge"], - ["in", "class", "primary", "trunk"] + [ + "==", + "brunnel", + "bridge" + ], + [ + "in", + "class", + "primary", + "trunk" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fea", - "line-width": {"base": 1.2, "stops": [[5, 0], [7, 1], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -1128,14 +2992,44 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway"], - ["!=", "ramp", 1], - ["==", "brunnel", "bridge"] + [ + "==", + "class", + "motorway" + ], + [ + "!=", + "ramp", + 1 + ], + [ + "==", + "brunnel", + "bridge" + ] ], - "layout": {"line-join": "round"}, + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#fc8", - "line-width": {"base": 1.2, "stops": [[5, 0], [7, 1], [20, 18]]} + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } } }, { @@ -1143,10 +3037,38 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "class", "rail"], ["==", "brunnel", "bridge"]], + "filter": [ + "all", + [ + "==", + "class", + "rail" + ], + [ + "==", + "brunnel", + "bridge" + ] + ], "paint": { "line-color": "#bbb", - "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]} + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } } }, { @@ -1154,11 +3076,42 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": ["all", ["==", "class", "rail"], ["==", "brunnel", "bridge"]], + "filter": [ + "all", + [ + "==", + "class", + "rail" + ], + [ + "==", + "brunnel", + "bridge" + ] + ], "paint": { "line-color": "#bbb", - "line-dasharray": [0.2, 8], - "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]} + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } } }, { @@ -1168,12 +3121,36 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "transit"], - ["==", "brunnel", "bridge"] + [ + "==", + "class", + "transit" + ], + [ + "==", + "brunnel", + "bridge" + ] ], "paint": { "line-color": "#bbb", - "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]} + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } } }, { @@ -1183,13 +3160,40 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "transit"], - ["==", "brunnel", "bridge"] + [ + "==", + "class", + "transit" + ], + [ + "==", + "brunnel", + "bridge" + ] ], "paint": { "line-color": "#bbb", - "line-dasharray": [0.2, 8], - "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]} + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } } }, { @@ -1203,7 +3207,16 @@ "fill-color": "hsl(35, 8%, 85%)", "fill-outline-color": { "base": 1, - "stops": [[13, "hsla(35, 6%, 79%, 0.32)"], [14, "hsl(35, 6%, 79%)"]] + "stops": [ + [ + 13, + "hsla(35, 6%, 79%, 0.32)" + ], + [ + 14, + "hsl(35, 6%, 79%)" + ] + ] } } }, @@ -1232,12 +3245,41 @@ "source": "openmaptiles", "source-layer": "boundary", "minzoom": 8, - "filter": ["all", ["in", "admin_level", 3, 4]], - "layout": {"line-join": "round"}, + "filter": [ + "all", + [ + "in", + "admin_level", + 3, + 4 + ] + ], + "layout": { + "line-join": "round" + }, "paint": { "line-color": "#9e9cab", - "line-dasharray": [5, 1], - "line-width": {"base": 1, "stops": [[4, 0.4], [5, 1], [12, 1.8]]} + "line-dasharray": [ + 5, + 1 + ], + "line-width": { + "base": 1, + "stops": [ + [ + 4, + 0.4 + ], + [ + 5, + 1 + ], + [ + 12, + 1.8 + ] + ] + } } }, { @@ -1245,12 +3287,50 @@ "type": "line", "source": "openmaptiles", "source-layer": "boundary", - "filter": ["all", ["==", "admin_level", 2]], - "layout": {"line-cap": "round", "line-join": "round"}, + "filter": [ + "all", + [ + "==", + "admin_level", + 2 + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, "paint": { "line-color": "hsl(248, 1%, 41%)", - "line-opacity": {"base": 1, "stops": [[0, 0.4], [4, 1]]}, - "line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]} + "line-opacity": { + "base": 1, + "stops": [ + [ + 0, + 0.4 + ], + [ + 4, + 1 + ] + ] + }, + "line-width": { + "base": 1, + "stops": [ + [ + 3, + 1 + ], + [ + 5, + 1.2 + ], + [ + 12, + 3 + ] + ] + } } }, { @@ -1258,10 +3338,19 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "water_name", - "filter": ["all", ["==", "$type", "LineString"]], + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ] + ], "layout": { "text-field": "{name}", - "text-font": ["Roboto Regular"], + "text-font": [ + "Roboto Regular" + ], "text-max-width": 5, "text-size": 12, "symbol-placement": "line" @@ -1277,10 +3366,16 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "water_name", - "filter": ["==", "$type", "Point"], + "filter": [ + "==", + "$type", + "Point" + ], "layout": { "text-field": "{name}", - "text-font": ["Roboto Regular"], + "text-font": [ + "Roboto Regular" + ], "text-max-width": 5, "text-size": 12 }, @@ -1296,14 +3391,31 @@ "source": "openmaptiles", "source-layer": "poi", "minzoom": 16, - "filter": ["all", ["==", "$type", "Point"], [">=", "rank", 20]], + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + ">=", + "rank", + 20 + ] + ], "layout": { "icon-image": "{class}_11", "text-anchor": "top", "text-field": "{name}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-max-width": 9, - "text-offset": [0, 0.6], + "text-offset": [ + 0, + 0.6 + ], "text-size": 12 }, "paint": { @@ -1321,17 +3433,34 @@ "minzoom": 15, "filter": [ "all", - ["==", "$type", "Point"], - [">=", "rank", 7], - ["<", "rank", 20] + [ + "==", + "$type", + "Point" + ], + [ + ">=", + "rank", + 7 + ], + [ + "<", + "rank", + 20 + ] ], "layout": { "icon-image": "{class}_11", "text-anchor": "top", "text-field": "{name}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-max-width": 9, - "text-offset": [0, 0.6], + "text-offset": [ + 0, + 0.6 + ], "text-size": 12 }, "paint": { @@ -1349,17 +3478,34 @@ "minzoom": 14, "filter": [ "all", - ["==", "$type", "Point"], - [">=", "rank", 1], - ["<", "rank", 7] + [ + "==", + "$type", + "Point" + ], + [ + ">=", + "rank", + 1 + ], + [ + "<", + "rank", + 7 + ] ], "layout": { "icon-image": "{class}_11", "text-anchor": "top", "text-field": "{name}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-max-width": 9, - "text-offset": [0, 0.6], + "text-offset": [ + 0, + 0.6 + ], "text-size": 12 }, "paint": { @@ -1374,14 +3520,28 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "poi", - "filter": ["all", ["in", "class", "bus", "rail", "airport"]], + "filter": [ + "all", + [ + "in", + "class", + "bus", + "rail", + "airport" + ] + ], "layout": { "icon-image": "{class}_11", "text-anchor": "left", "text-field": "{name_en}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-max-width": 9, - "text-offset": [0.9, 0], + "text-offset": [ + 0.9, + 0 + ], "text-size": 12 }, "paint": { @@ -1391,19 +3551,104 @@ "text-halo-width": 1 } }, + { + "id": "park_label", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "park", + "minzoom": 5, + "filter": [ + "all", + [ + "in", + "class", + "protected_area", + "national_park" + ], + [ + "==", + "$type", + "Point" + ] + ], + "layout": { + "icon-image": { + "base": 1, + "stops": [ + [ + 0, + "dot_9" + ], + [ + 8, + "" + ] + ] + }, + "text-anchor": "bottom", + "text-field": "{name}", + "text-font": [ + "Roboto Condensed Italic" + ], + "text-max-width": 8, + "text-offset": [ + 0, + 0 + ], + "text-size": { + "base": 1.2, + "stops": [ + [ + 10, + 12 + ], + [ + 15, + 22 + ] + ] + }, + "icon-allow-overlap": true, + "icon-optional": false + }, + "paint": { + "text-color": "#333", + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1.2 + } + }, { "id": "road_label", "type": "symbol", "source": "openmaptiles", "source-layer": "transportation_name", - "filter": ["all"], + "filter": [ + "all" + ], "layout": { "symbol-placement": "line", "text-anchor": "center", "text-field": "{name}", - "text-font": ["Roboto Regular"], - "text-offset": [0, 0.15], - "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]} + "text-font": [ + "Roboto Regular" + ], + "text-offset": [ + 0, + 0.15 + ], + "text-size": { + "base": 1, + "stops": [ + [ + 13, + 12 + ], + [ + 14, + 13 + ] + ] + } }, "paint": { "text-color": "#765", @@ -1417,15 +3662,39 @@ "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 7, - "filter": ["all", ["<=", "ref_length", 6]], + "filter": [ + "all", + [ + "<=", + "ref_length", + 6 + ] + ], "layout": { "icon-image": "default_{ref_length}", "icon-rotation-alignment": "viewport", - "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]}, + "symbol-placement": { + "base": 1, + "stops": [ + [ + 10, + "point" + ], + [ + 11, + "line" + ] + ] + }, "symbol-spacing": 500, "text-field": "{ref}", - "text-font": ["Roboto Regular"], - "text-offset": [0, 0.1], + "text-font": [ + "Roboto Regular" + ], + "text-offset": [ + 0, + 0.1 + ], "text-rotation-alignment": "viewport", "text-size": 10, "icon-size": 0.8 @@ -1438,14 +3707,36 @@ "source-layer": "place", "filter": [ "all", - ["in", "class", "hamlet", "island", "islet", "neighbourhood", "suburb"] + [ + "in", + "class", + "hamlet", + "island", + "islet", + "neighbourhood", + "suburb" + ] ], "layout": { "text-field": "{name_en}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-letter-spacing": 0.1, "text-max-width": 9, - "text-size": {"base": 1.2, "stops": [[12, 10], [15, 14]]}, + "text-size": { + "base": 1.2, + "stops": [ + [ + 12, + 10 + ], + [ + 15, + 14 + ] + ] + }, "text-transform": "uppercase" }, "paint": { @@ -1459,12 +3750,33 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "place", - "filter": ["all", ["==", "class", "village"]], + "filter": [ + "all", + [ + "==", + "class", + "village" + ] + ], "layout": { "text-field": "{name_en}", - "text-font": ["Roboto Regular"], + "text-font": [ + "Roboto Regular" + ], "text-max-width": 8, - "text-size": {"base": 1.2, "stops": [[10, 12], [15, 22]]} + "text-size": { + "base": 1.2, + "stops": [ + [ + 10, + 12 + ], + [ + 15, + 22 + ] + ] + } }, "paint": { "text-color": "#333", @@ -1477,15 +3789,51 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "place", - "filter": ["all", ["==", "class", "town"]], + "filter": [ + "all", + [ + "==", + "class", + "town" + ] + ], "layout": { - "icon-image": {"base": 1, "stops": [[0, "dot_9"], [8, ""]]}, + "icon-image": { + "base": 1, + "stops": [ + [ + 0, + "dot_9" + ], + [ + 8, + "" + ] + ] + }, "text-anchor": "bottom", "text-field": "{name_en}", - "text-font": ["Roboto Regular"], + "text-font": [ + "Roboto Regular" + ], "text-max-width": 8, - "text-offset": [0, 0], - "text-size": {"base": 1.2, "stops": [[7, 12], [11, 16]]} + "text-offset": [ + 0, + 0 + ], + "text-size": { + "base": 1.2, + "stops": [ + [ + 7, + 12 + ], + [ + 11, + 16 + ] + ] + } }, "paint": { "text-color": "#333", @@ -1499,15 +3847,51 @@ "source": "openmaptiles", "source-layer": "place", "minzoom": 5, - "filter": ["all", ["==", "class", "city"]], + "filter": [ + "all", + [ + "==", + "class", + "city" + ] + ], "layout": { - "icon-image": {"base": 1, "stops": [[0, "dot_9"], [8, ""]]}, + "icon-image": { + "base": 1, + "stops": [ + [ + 0, + "dot_9" + ], + [ + 8, + "" + ] + ] + }, "text-anchor": "bottom", "text-field": "{name_en}", - "text-font": ["Roboto Medium"], + "text-font": [ + "Roboto Medium" + ], "text-max-width": 8, - "text-offset": [0, 0], - "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]}, + "text-offset": [ + 0, + 0 + ], + "text-size": { + "base": 1.2, + "stops": [ + [ + 7, + 14 + ], + [ + 11, + 24 + ] + ] + }, "icon-allow-overlap": true, "icon-optional": false }, @@ -1523,11 +3907,31 @@ "source": "openmaptiles", "source-layer": "place", "maxzoom": 6, - "filter": ["all", ["==", "class", "state"]], + "filter": [ + "all", + [ + "==", + "class", + "state" + ] + ], "layout": { "text-field": "{name_en}", - "text-font": ["Roboto Condensed Italic"], - "text-size": {"stops": [[4, 11], [6, 15]]}, + "text-font": [ + "Roboto Condensed Italic" + ], + "text-size": { + "stops": [ + [ + 4, + 11 + ], + [ + 6, + 15 + ] + ] + }, "text-transform": "uppercase" }, "paint": { @@ -1541,12 +3945,37 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "place", - "filter": ["all", [">=", "rank", 3], ["==", "class", "country"]], + "filter": [ + "all", + [ + ">=", + "rank", + 3 + ], + [ + "==", + "class", + "country" + ] + ], "layout": { "text-field": "{name_en}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-max-width": 6.25, - "text-size": {"stops": [[3, 11], [7, 17]]}, + "text-size": { + "stops": [ + [ + 3, + 11 + ], + [ + 7, + 17 + ] + ] + }, "text-transform": "none" }, "paint": { @@ -1561,12 +3990,37 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "place", - "filter": ["all", ["==", "rank", 2], ["==", "class", "country"]], + "filter": [ + "all", + [ + "==", + "rank", + 2 + ], + [ + "==", + "class", + "country" + ] + ], "layout": { "text-field": "{name_en}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-max-width": 6.25, - "text-size": {"stops": [[2, 11], [5, 17]]}, + "text-size": { + "stops": [ + [ + 2, + 11 + ], + [ + 5, + 17 + ] + ] + }, "text-transform": "none" }, "paint": { @@ -1581,12 +4035,37 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "place", - "filter": ["all", ["==", "rank", 1], ["==", "class", "country"]], + "filter": [ + "all", + [ + "==", + "rank", + 1 + ], + [ + "==", + "class", + "country" + ] + ], "layout": { "text-field": "{name_en}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-max-width": 6.25, - "text-size": {"stops": [[1, 11], [4, 17]]}, + "text-size": { + "stops": [ + [ + 1, + 11 + ], + [ + 4, + 17 + ] + ] + }, "text-transform": "none" }, "paint": { @@ -1602,10 +4081,19 @@ "source": "openmaptiles", "source-layer": "place", "maxzoom": 1, - "filter": ["all", ["==", "class", "continent"]], + "filter": [ + "all", + [ + "==", + "class", + "continent" + ] + ], "layout": { "text-field": "{name_en}", - "text-font": ["Roboto Condensed Italic"], + "text-font": [ + "Roboto Condensed Italic" + ], "text-size": 13, "text-transform": "uppercase", "text-justify": "center" @@ -1618,4 +4106,4 @@ } ], "id": "osm-liberty" -} +} \ No newline at end of file