From ee77f38cdb324cbcf12518490df77fc9e6b89282 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 22:52:02 +0000 Subject: Improve gallery scroll indicators and format code Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> --- .../public/maps/styles/openfreemap-any.json | 5099 +++++--------------- 1 file changed, 1244 insertions(+), 3855 deletions(-) (limited to 'src/frontend/public/maps/styles') diff --git a/src/frontend/public/maps/styles/openfreemap-any.json b/src/frontend/public/maps/styles/openfreemap-any.json index 8fdca37..cb528da 100644 --- a/src/frontend/public/maps/styles/openfreemap-any.json +++ b/src/frontend/public/maps/styles/openfreemap-any.json @@ -21,25 +21,10 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": [ - "==", - [ - "get", - "subclass" - ], - "glacier" - ], + "filter": ["==", ["get", "subclass"], "glacier"], "paint": { "fill-color": "#fff", - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 0, 0.9, 10, 0.3] + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.9, 10, 0.3] } }, { @@ -49,26 +34,20 @@ "source-layer": "landuse", "filter": [ "match", - [ - "get", - "class" - ], - [ - "neighbourhood", - "residential" - ], - true, false], + ["get", "class"], + ["neighbourhood", "residential"], + true, + false + ], "paint": { "fill-color": [ "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, "hsla(30,19%,90%,0.4)", - 16, "hsla(30,19%,90%,0.2)" + ["linear"], + ["zoom"], + 12, + "hsla(30,19%,90%,0.4)", + 16, + "hsla(30,19%,90%,0.2)" ] } }, @@ -78,25 +57,16 @@ "source": "openmaptiles", "source-layer": "landuse", "maxzoom": 10, - "filter": [ - "==", - [ - "get", - "class" - ], - "suburb" - ], + "filter": ["==", ["get", "class"], "suburb"], "paint": { "fill-color": [ "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, "hsla(30,19%,90%,0.4)", - 10, "hsla(30,19%,90%,0.0)" + ["linear"], + ["zoom"], + 8, + "hsla(30,19%,90%,0.4)", + 10, + "hsla(30,19%,90%,0.0)" ] } }, @@ -107,24 +77,8 @@ "source-layer": "landuse", "filter": [ "all", - [ - "match", - [ - "geometry-type" - ], - [ - "MultiPolygon", - "Polygon" - ], - true, false], - [ - "==", - [ - "get", - "class" - ], - "commercial" - ] + ["match", ["geometry-type"], ["MultiPolygon", "Polygon"], true, false], + ["==", ["get", "class"], "commercial"] ], "paint": { "fill-color": "hsla(0,60%,87%,0.23)" @@ -137,28 +91,14 @@ "source-layer": "landuse", "filter": [ "all", + ["match", ["geometry-type"], ["MultiPolygon", "Polygon"], true, false], [ "match", - [ - "geometry-type" - ], - [ - "MultiPolygon", - "Polygon" - ], - true, false], - [ - "match", - [ - "get", - "class" - ], - [ - "dam", - "garages", - "industrial" - ], - true, false] + ["get", "class"], + ["dam", "garages", "industrial"], + true, + false + ] ], "paint": { "fill-color": "hsla(49,100%,88%,0.34)" @@ -169,14 +109,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": [ - "==", - [ - "get", - "class" - ], - "cemetery" - ], + "filter": ["==", ["get", "class"], "cemetery"], "paint": { "fill-color": "#e0e4dd" } @@ -186,14 +119,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": [ - "==", - [ - "get", - "class" - ], - "hospital" - ], + "filter": ["==", ["get", "class"], "hospital"], "paint": { "fill-color": "#fde" } @@ -203,14 +129,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": [ - "==", - [ - "get", - "class" - ], - "school" - ], + "filter": ["==", ["get", "class"], "school"], "paint": { "fill-color": "#f0e8f8" } @@ -220,14 +139,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": [ - "==", - [ - "get", - "class" - ], - "railway" - ], + "filter": ["==", ["get", "class"], "railway"], "paint": { "fill-color": "hsla(30,19%,90%,0.4)" } @@ -239,25 +151,22 @@ "source-layer": "park", "filter": [ "match", - [ - "geometry-type" - ], - [ - "MultiPolygon", - "Polygon" - ], - true, false], + ["geometry-type"], + ["MultiPolygon", "Polygon"], + true, + false + ], "paint": { "fill-color": "#d8e8c8", "fill-opacity": [ "interpolate", - [ - "exponential", - 1.8], - [ - "zoom" - ], - 9, 0.5, 12, 0.2] + ["exponential", 1.8], + ["zoom"], + 9, + 0.5, + 12, + 0.2 + ] } }, { @@ -265,21 +174,9 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": [ - "==", - [ - "get", - "class" - ], - "wood" - ], + "filter": ["==", ["get", "class"], "wood"], "paint": { - "fill-antialias": [ - "step", - [ - "zoom" - ], - false, 9, true], + "fill-antialias": ["step", ["zoom"], false, 9, true], "fill-color": "#6a4", "fill-opacity": 0.1, "fill-outline-color": "hsla(0,0%,0%,0.03)" @@ -290,14 +187,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": [ - "==", - [ - "get", - "class" - ], - "grass" - ], + "filter": ["==", ["get", "class"], "grass"], "paint": { "fill-color": "#d8e8c8", "fill-opacity": 1 @@ -308,14 +198,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "park", - "filter": [ - "==", - [ - "get", - "class" - ], - "public_park" - ], + "filter": ["==", ["get", "class"], "public_park"], "paint": { "fill-color": "#d8e8c8", "fill-opacity": 0.8 @@ -329,26 +212,8 @@ "minzoom": 14, "filter": [ "all", - [ - "match", - [ - "get", - "class" - ], - [ - "canal", - "river", - "stream" - ], - true, false], - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ] + ["match", ["get", "class"], ["canal", "river", "stream"], true, false], + ["==", ["get", "brunnel"], "tunnel"] ], "layout": { "line-cap": "round" @@ -358,13 +223,13 @@ "line-dasharray": [2, 4], "line-width": [ "interpolate", - [ - "exponential", - 1.3], - [ - "zoom" - ], - 13, 0.5, 20, 6] + ["exponential", 1.3], + ["zoom"], + 13, + 0.5, + 20, + 6 + ] } }, { @@ -374,25 +239,8 @@ "source-layer": "waterway", "filter": [ "all", - [ - "match", - [ - "get", - "class" - ], - [ - "canal", - "river", - "stream" - ], - false, true], - [ - "==", - [ - "get", - "intermittent" - ], - 0] + ["match", ["get", "class"], ["canal", "river", "stream"], false, true], + ["==", ["get", "intermittent"], 0] ], "layout": { "line-cap": "round" @@ -401,13 +249,13 @@ "line-color": "#a0c8f0", "line-width": [ "interpolate", - [ - "exponential", - 1.3], - [ - "zoom" - ], - 13, 0.5, 20, 2] + ["exponential", 1.3], + ["zoom"], + 13, + 0.5, + 20, + 2 + ] } }, { @@ -417,25 +265,8 @@ "source-layer": "waterway", "filter": [ "all", - [ - "match", - [ - "get", - "class" - ], - [ - "canal", - "river", - "stream" - ], - false, true], - [ - "==", - [ - "get", - "intermittent" - ], - 1] + ["match", ["get", "class"], ["canal", "river", "stream"], false, true], + ["==", ["get", "intermittent"], 1] ], "layout": { "line-cap": "round" @@ -445,13 +276,13 @@ "line-dasharray": [4, 3], "line-width": [ "interpolate", - [ - "exponential", - 1.3], - [ - "zoom" - ], - 13, 0.5, 20, 2] + ["exponential", 1.3], + ["zoom"], + 13, + 0.5, + 20, + 2 + ] } }, { @@ -461,32 +292,9 @@ "source-layer": "waterway", "filter": [ "all", - [ - "match", - [ - "get", - "class" - ], - [ - "canal", - "stream" - ], - true, false], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "intermittent" - ], - 0] + ["match", ["get", "class"], ["canal", "stream"], true, false], + ["!=", ["get", "brunnel"], "tunnel"], + ["==", ["get", "intermittent"], 0] ], "layout": { "line-cap": "round" @@ -495,13 +303,13 @@ "line-color": "#a0c8f0", "line-width": [ "interpolate", - [ - "exponential", - 1.3], - [ - "zoom" - ], - 13, 0.5, 20, 6] + ["exponential", 1.3], + ["zoom"], + 13, + 0.5, + 20, + 6 + ] } }, { @@ -511,32 +319,9 @@ "source-layer": "waterway", "filter": [ "all", - [ - "match", - [ - "get", - "class" - ], - [ - "canal", - "stream" - ], - true, false], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "intermittent" - ], - 1] + ["match", ["get", "class"], ["canal", "stream"], true, false], + ["!=", ["get", "brunnel"], "tunnel"], + ["==", ["get", "intermittent"], 1] ], "layout": { "line-cap": "round" @@ -546,13 +331,13 @@ "line-dasharray": [4, 3], "line-width": [ "interpolate", - [ - "exponential", - 1.3], - [ - "zoom" - ], - 13, 0.5, 20, 6] + ["exponential", 1.3], + ["zoom"], + 13, + 0.5, + 20, + 6 + ] } }, { @@ -562,29 +347,9 @@ "source-layer": "waterway", "filter": [ "all", - [ - "==", - [ - "get", - "class" - ], - "river" - ], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "!=", - [ - "get", - "intermittent" - ], - 1] + ["==", ["get", "class"], "river"], + ["!=", ["get", "brunnel"], "tunnel"], + ["!=", ["get", "intermittent"], 1] ], "layout": { "line-cap": "round" @@ -593,13 +358,13 @@ "line-color": "#a0c8f0", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 10, 0.8, 20, 6] + ["exponential", 1.2], + ["zoom"], + 10, + 0.8, + 20, + 6 + ] } }, { @@ -609,29 +374,9 @@ "source-layer": "waterway", "filter": [ "all", - [ - "==", - [ - "get", - "class" - ], - "river" - ], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "intermittent" - ], - 1] + ["==", ["get", "class"], "river"], + ["!=", ["get", "brunnel"], "tunnel"], + ["==", ["get", "intermittent"], 1] ], "layout": { "line-cap": "round" @@ -641,13 +386,13 @@ "line-dasharray": [3, 2.5], "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 10, 0.8, 20, 6] + ["exponential", 1.2], + ["zoom"], + 10, + 0.8, + 20, + 6 + ] } }, { @@ -657,21 +402,8 @@ "source-layer": "water", "filter": [ "all", - [ - "!=", - [ - "get", - "intermittent" - ], - 1], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" - ] + ["!=", ["get", "intermittent"], 1], + ["!=", ["get", "brunnel"], "tunnel"] ], "paint": { "fill-color": "#AECFE2" @@ -682,13 +414,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "water", - "filter": [ - "==", - [ - "get", - "intermittent" - ], - 1], + "filter": ["==", ["get", "intermittent"], 1], "paint": { "fill-color": "hsl(210,67%,85%)", "fill-opacity": 0.7 @@ -699,25 +425,10 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": [ - "==", - [ - "get", - "subclass" - ], - "ice_shelf" - ], + "filter": ["==", ["get", "subclass"], "ice_shelf"], "paint": { "fill-color": "#fff", - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 0, 0.9, 10, 0.3] + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.9, 10, 0.3] } }, { @@ -725,14 +436,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": [ - "==", - [ - "get", - "class" - ], - "sand" - ], + "filter": ["==", ["get", "class"], "sand"], "paint": { "fill-color": "rgba(245, 238, 188, 1)", "fill-opacity": 1 @@ -747,14 +451,12 @@ "fill-antialias": true, "fill-color": [ "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15.5, "#f2eae2", - 16, "#dfdbd7" + ["linear"], + ["zoom"], + 15.5, + "#f2eae2", + 16, + "#dfdbd7" ] } }, @@ -765,32 +467,16 @@ "source-layer": "building", "paint": { "fill-color": "#f2eae2", - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, 0, 16, 1], + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 13, 0, 16, 1], "fill-outline-color": "#dfdbd7", "fill-translate": [ "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, [ - "literal", - [0, 0] - ], - 16, [ - "literal", - [-2, -2] - ] + ["linear"], + ["zoom"], + 14, + ["literal", [0, 0]], + 16, + ["literal", [-2, -2]] ] } }, @@ -801,25 +487,8 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "service", - "track" - ], - true, false] + ["==", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["service", "track"], true, false] ], "layout": { "line-join": "round" @@ -829,13 +498,15 @@ "line-dasharray": [0.5, 0.25], "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 15, 1, 16, 4, 20, 11] + ["exponential", 1.2], + ["zoom"], + 15, + 1, + 16, + 4, + 20, + 11 + ] } }, { @@ -845,29 +516,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "motorway"], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -877,13 +528,17 @@ "line-dasharray": [0.5, 0.25], "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 1, 13, 3, 14, 4, 20, 15] + ["exponential", 1.2], + ["zoom"], + 12, + 1, + 13, + 3, + 14, + 4, + 20, + 15 + ] } }, { @@ -893,22 +548,8 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "class" - ], - "minor" - ] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "minor"] ], "layout": { "line-join": "round" @@ -916,24 +557,20 @@ "paint": { "line-color": "#cfcdca", "line-dasharray": [0.5, 0.25], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, 0, 12.5, 1], - "line-width": [ - "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 0.5, 13, 1, 14, 4, 20, 15] + "line-opacity": ["interpolate", ["linear"], ["zoom"], 12, 0, 12.5, 1], + "line-width": [ + "interpolate", + ["exponential", 1.2], + ["zoom"], + 12, + 0.5, + 13, + 1, + 14, + 4, + 20, + 15 + ] } }, { @@ -943,34 +580,15 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], + ["==", ["get", "brunnel"], "tunnel"], [ "match", - [ - "get", - "class" - ], - [ - "primary", - "secondary", - "tertiary", - "trunk" - ], - true, false], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["get", "class"], + ["primary", "secondary", "tertiary", "trunk"], + true, + false + ], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -981,13 +599,17 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 1, 13, 3, 14, 4, 20, 15] + ["exponential", 1.2], + ["zoom"], + 12, + 1, + 13, + 3, + 14, + 4, + 20, + 15 + ] } }, { @@ -997,32 +619,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "secondary", - "tertiary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1033,13 +632,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 8, 1.5, 20, 17] + ["exponential", 1.2], + ["zoom"], + 8, + 1.5, + 20, + 17 + ] } }, { @@ -1049,32 +648,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "primary", - "trunk" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["primary", "trunk"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1083,13 +659,17 @@ "line-color": "#e9ac77", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 5, 0.4, 6, 0.6, 7, 1.5, 20, 22] + ["exponential", 1.2], + ["zoom"], + 5, + 0.4, + 6, + 0.6, + 7, + 1.5, + 20, + 22 + ] } }, { @@ -1099,29 +679,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "motorway"], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1131,13 +691,17 @@ "line-dasharray": [0.5, 0.25], "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 5, 0.4, 6, 0.6, 7, 1.5, 20, 22] + ["exponential", 1.2], + ["zoom"], + 5, + 0.4, + 6, + 0.6, + 7, + 1.5, + 20, + 22 + ] } }, { @@ -1149,43 +713,26 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "==", - [ - "get", - "class" - ], - "path" - ] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "path"] ], "paint": { "line-color": "#cba", "line-dasharray": [1.5, 0.75], "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 15, 1.2, 20, 4] + ["exponential", 1.2], + ["zoom"], + 15, + 1.2, + 20, + 4 + ] } }, { @@ -1195,29 +742,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "motorway"], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1226,13 +753,17 @@ "line-color": "rgba(244, 209, 158, 1)", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12.5, 0, 13, 1.5, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 12.5, + 0, + 13, + 1.5, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -1242,25 +773,8 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "service", - "track" - ], - true, false] + ["==", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["service", "track"], true, false] ], "layout": { "line-join": "round" @@ -1269,13 +783,15 @@ "line-color": "#fff", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 15.5, 0, 16, 2, 20, 7.5] + ["exponential", 1.2], + ["zoom"], + 15.5, + 0, + 16, + 2, + 20, + 7.5 + ] } }, { @@ -1285,34 +801,15 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], + ["==", ["get", "brunnel"], "tunnel"], [ "match", - [ - "get", - "class" - ], - [ - "primary", - "secondary", - "tertiary", - "trunk" - ], - true, false], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["get", "class"], + ["primary", "secondary", "tertiary", "trunk"], + true, + false + ], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1321,13 +818,17 @@ "line-color": "#fff4c6", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12.5, 0, 13, 1.5, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 12.5, + 0, + 13, + 1.5, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -1337,22 +838,8 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "class" - ], - "minor" - ] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "minor"] ], "layout": { "line-join": "round" @@ -1362,13 +849,15 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 13.5, 0, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 13.5, + 0, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -1378,32 +867,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "secondary", - "tertiary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1412,13 +878,15 @@ "line-color": "#fff4c6", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 7, 0.5, 20, 10] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 7, + 0.5, + 20, + 10 + ] } }, { @@ -1428,32 +896,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "primary", - "trunk" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["primary", "trunk"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1462,13 +907,15 @@ "line-color": "#fff4c6", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 7, 0.5, 20, 18] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 7, + 0.5, + 20, + 18 + ] } }, { @@ -1478,29 +925,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "motorway"], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -1509,13 +936,15 @@ "line-color": "#ffdaa6", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 7, 0.5, 20, 18] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 7, + 0.5, + 20, + 18 + ] } }, { @@ -1525,35 +954,23 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "get", - "class" - ], - "rail" - ] + ["==", ["get", "brunnel"], "tunnel"], + ["==", ["get", "class"], "rail"] ], "paint": { "line-color": "#bbb", "line-dasharray": [2, 2], "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14, 0.4, 15, 0.75, 20, 2] + ["exponential", 1.4], + ["zoom"], + 14, + 0.4, + 15, + 0.75, + 20, + 2 + ] } }, { @@ -1561,16 +978,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "match", - [ - "get", - "class" - ], - [ - "ferry" - ], - true, false], + "filter": ["match", ["get", "class"], ["ferry"], true, false], "layout": { "line-join": "round" }, @@ -1586,16 +994,7 @@ "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 12, - "filter": [ - "match", - [ - "get", - "class" - ], - [ - "taxiway" - ], - true, false], + "filter": ["match", ["get", "class"], ["taxiway"], true, false], "layout": { "line-cap": "round", "line-join": "round" @@ -1605,13 +1004,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.5], - [ - "zoom" - ], - 11, 2, 17, 12] + ["exponential", 1.5], + ["zoom"], + 11, + 2, + 17, + 12 + ] } }, { @@ -1620,16 +1019,7 @@ "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 12, - "filter": [ - "match", - [ - "get", - "class" - ], - [ - "runway" - ], - true, false], + "filter": ["match", ["get", "class"], ["runway"], true, false], "layout": { "line-cap": "round", "line-join": "round" @@ -1639,13 +1029,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.5], - [ - "zoom" - ], - 11, 5, 17, 55] + ["exponential", 1.5], + ["zoom"], + 11, + 5, + 17, + 55 + ] } }, { @@ -1656,39 +1046,12 @@ "minzoom": 4, "filter": [ "all", - [ - "match", - [ - "geometry-type" - ], - [ - "MultiPolygon", - "Polygon" - ], - true, false], - [ - "match", - [ - "get", - "class" - ], - [ - "runway", - "taxiway" - ], - true, false] + ["match", ["geometry-type"], ["MultiPolygon", "Polygon"], true, false], + ["match", ["get", "class"], ["runway", "taxiway"], true, false] ], "paint": { "fill-color": "rgba(255, 255, 255, 1)", - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, 0, 14, 1] + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 13, 0, 14, 1] } }, { @@ -1699,26 +1062,14 @@ "minzoom": 4, "filter": [ "all", + ["match", ["get", "class"], ["taxiway"], true, false], [ "match", - [ - "get", - "class" - ], - [ - "taxiway" - ], - true, false], - [ - "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ] ], "layout": { "line-cap": "round", @@ -1726,24 +1077,16 @@ }, "paint": { "line-color": "rgba(255, 255, 255, 1)", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, 0, 12, 1], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 11, 0, 12, 1], "line-width": [ "interpolate", - [ - "exponential", - 1.5], - [ - "zoom" - ], - 11, 1, 17, 10] + ["exponential", 1.5], + ["zoom"], + 11, + 1, + 17, + 10 + ] } }, { @@ -1754,26 +1097,14 @@ "minzoom": 4, "filter": [ "all", + ["match", ["get", "class"], ["runway"], true, false], [ "match", - [ - "get", - "class" - ], - [ - "runway" - ], - true, false], - [ - "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ] ], "layout": { "line-cap": "round", @@ -1781,24 +1112,16 @@ }, "paint": { "line-color": "rgba(255, 255, 255, 1)", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, 0, 12, 1], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 11, 0, 12, 1], "line-width": [ "interpolate", - [ - "exponential", - 1.5], - [ - "zoom" - ], - 11, 4, 17, 50] + ["exponential", 1.5], + ["zoom"], + 11, + 4, + 17, + 50 + ] } }, { @@ -1808,24 +1131,8 @@ "source-layer": "transportation", "filter": [ "all", - [ - "match", - [ - "geometry-type" - ], - [ - "MultiPolygon", - "Polygon" - ], - true, false], - [ - "==", - [ - "get", - "class" - ], - "pier" - ] + ["match", ["geometry-type"], ["MultiPolygon", "Polygon"], true, false], + ["==", ["get", "class"], "pier"] ], "paint": { "fill-antialias": true, @@ -1841,24 +1148,12 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "class" - ], - [ - "pier" - ], - true, false] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], + ["match", ["get", "class"], ["pier"], true, false] ], "layout": { "line-cap": "round", @@ -1868,13 +1163,13 @@ "line-color": "#f8f4f0", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 15, 1, 17, 4] + ["exponential", 1.2], + ["zoom"], + 15, + 1, + 17, + 4 + ] } }, { @@ -1884,26 +1179,8 @@ "source-layer": "transportation", "filter": [ "all", - [ - "match", - [ - "geometry-type" - ], - [ - "MultiPolygon", - "Polygon" - ], - true, false], - [ - "match", - [ - "get", - "class" - ], - [ - "pier" - ], - false, true] + ["match", ["geometry-type"], ["MultiPolygon", "Polygon"], true, false], + ["match", ["get", "class"], ["pier"], false, true] ], "paint": { "fill-antialias": false, @@ -1919,32 +1196,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["==", ["get", "class"], "motorway"], + ["==", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -1955,13 +1209,17 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 1, 13, 3, 14, 4, 20, 15] + ["exponential", 1.2], + ["zoom"], + 12, + 1, + 13, + 3, + 14, + 4, + 20, + 15 + ] } }, { @@ -1972,37 +1230,15 @@ "minzoom": 13, "filter": [ "all", + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], [ "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "primary", - "secondary", - "tertiary", - "trunk" - ], - true, false], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["get", "class"], + ["primary", "secondary", "tertiary", "trunk"], + true, + false + ], + ["==", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -2013,13 +1249,17 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 1, 13, 3, 14, 4, 20, 15] + ["exponential", 1.2], + ["zoom"], + 12, + 1, + 13, + 3, + 14, + 4, + 20, + 15 + ] } }, { @@ -2031,34 +1271,13 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "class" - ], - [ - "minor", - "service", - "track" - ], - true, false] + ["!=", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["minor", "service", "track"], true, false] ], "layout": { "line-cap": "round", @@ -2066,24 +1285,20 @@ }, "paint": { "line-color": "#cfcdca", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, 0, 12.5, 1], - "line-width": [ - "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 0.5, 13, 1, 14, 4, 20, 15] + "line-opacity": ["interpolate", ["linear"], ["zoom"], 12, 0, 12.5, 1], + "line-width": [ + "interpolate", + ["exponential", 1.2], + ["zoom"], + 12, + 0.5, + 13, + 1, + 14, + 4, + 20, + 15 + ] } }, { @@ -2093,35 +1308,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "secondary", - "tertiary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "butt", @@ -2132,13 +1321,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 8, 1.5, 20, 17] + ["exponential", 1.2], + ["zoom"], + 8, + 1.5, + 20, + 17 + ] } }, { @@ -2149,34 +1338,9 @@ "minzoom": 5, "filter": [ "all", - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "primary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["match", ["get", "class"], ["primary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "butt", @@ -2184,24 +1348,20 @@ }, "paint": { "line-color": "#e9ac77", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, 0, 8, 1], - "line-width": [ - "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 7, 0, 8, 0.6, 9, 1.5, 20, 22] + "line-opacity": ["interpolate", ["linear"], ["zoom"], 7, 0, 8, 1], + "line-width": [ + "interpolate", + ["exponential", 1.2], + ["zoom"], + 7, + 0, + 8, + 0.6, + 9, + 1.5, + 20, + 22 + ] } }, { @@ -2212,34 +1372,9 @@ "minzoom": 5, "filter": [ "all", - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "trunk" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["match", ["get", "class"], ["trunk"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "butt", @@ -2247,24 +1382,20 @@ }, "paint": { "line-color": "#e9ac77", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 5, 0, 6, 1], - "line-width": [ - "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 5, 0, 6, 0.6, 7, 1.5, 20, 22] + "line-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 6, 1], + "line-width": [ + "interpolate", + ["exponential", 1.2], + ["zoom"], + 5, + 0, + 6, + 0.6, + 7, + 1.5, + 20, + 22 + ] } }, { @@ -2275,32 +1406,9 @@ "minzoom": 4, "filter": [ "all", - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["==", ["get", "class"], "motorway"], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "butt", @@ -2308,24 +1416,22 @@ }, "paint": { "line-color": "#e9ac77", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 4, 0, 5, 1], - "line-width": [ - "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 4, 0, 5, 0.4, 6, 0.6, 7, 1.5, 20, 22] + "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 1], + "line-width": [ + "interpolate", + ["exponential", 1.2], + ["zoom"], + 4, + 0, + 5, + 0.4, + 6, + 0.6, + 7, + 1.5, + 20, + 22 + ] } }, { @@ -2337,46 +1443,26 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "==", - [ - "get", - "class" - ], - "path" - ] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["==", ["get", "class"], "path"] ], "paint": { "line-color": "#cba", "line-dasharray": [1.5, 0.75], "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 15, 1.2, 20, 4] + ["exponential", 1.2], + ["zoom"], + 15, + 1.2, + 20, + 4 + ] } }, { @@ -2387,32 +1473,9 @@ "minzoom": 12, "filter": [ "all", - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["==", ["get", "class"], "motorway"], + ["==", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -2422,13 +1485,17 @@ "line-color": "#fc8", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12.5, 0, 13, 1.5, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 12.5, + 0, + 13, + 1.5, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -2439,37 +1506,15 @@ "minzoom": 13, "filter": [ "all", + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], [ "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "primary", - "secondary", - "tertiary", - "trunk" - ], - true, false], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["get", "class"], + ["primary", "secondary", "tertiary", "trunk"], + true, + false + ], + ["==", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -2479,13 +1524,17 @@ "line-color": "#fea", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12.5, 0, 13, 1.5, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 12.5, + 0, + 13, + 1.5, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -2497,34 +1546,13 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "class" - ], - [ - "minor", - "service", - "track" - ], - true, false] + ["!=", ["get", "brunnel"], "tunnel"], + ["match", ["get", "class"], ["minor", "service", "track"], true, false] ], "layout": { "line-cap": "round", @@ -2535,13 +1563,15 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 13.5, 0, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 13.5, + 0, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -2551,35 +1581,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "secondary", - "tertiary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -2589,13 +1593,15 @@ "line-color": "#fea", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 8, 0.5, 20, 13] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 8, + 0.5, + 20, + 13 + ] } }, { @@ -2607,42 +1613,14 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "primary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["match", ["get", "class"], ["primary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -2652,13 +1630,15 @@ "line-color": "#fea", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 8.5, 0, 9, 0.5, 20, 18] + ["exponential", 1.2], + ["zoom"], + 8.5, + 0, + 9, + 0.5, + 20, + 18 + ] } }, { @@ -2670,42 +1650,14 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "match", - [ - "get", - "class" - ], - [ - "trunk" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["match", ["get", "class"], ["trunk"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -2715,13 +1667,15 @@ "line-color": "#fea", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 7, 0.5, 20, 18] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 7, + 0.5, + 20, + 18 + ] } }, { @@ -2734,40 +1688,14 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "==", - [ - "get", - "class" - ], - "motorway" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["==", ["get", "class"], "motorway"], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-cap": "round", @@ -2777,13 +1705,15 @@ "line-color": "#fc8", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 7, 0.5, 20, 18] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 7, + 0.5, + 20, + 18 + ] } }, { @@ -2795,44 +1725,25 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "class" - ], - "transit" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "tunnel" - ], - false, true] + ["==", ["get", "class"], "transit"], + ["match", ["get", "brunnel"], ["tunnel"], false, true] ], "paint": { "line-color": "hsla(0,0%,73%,0.77)", "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14, 0.4, 20, 1] + ["exponential", 1.4], + ["zoom"], + 14, + 0.4, + 20, + 1 + ] } }, { @@ -2844,45 +1755,28 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "class" - ], - "transit" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "tunnel" - ], - false, true] + ["==", ["get", "class"], "transit"], + ["match", ["get", "brunnel"], ["tunnel"], false, true] ], "paint": { "line-color": "hsla(0,0%,73%,0.68)", "line-dasharray": [0.2, 8], "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14.5, 0, 15, 2, 20, 6] + ["exponential", 1.4], + ["zoom"], + 14.5, + 0, + 15, + 2, + 20, + 6 + ] } }, { @@ -2894,38 +1788,25 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "class" - ], - "rail" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "has", - "service" - ] + ["==", ["get", "class"], "rail"], + ["has", "service"] ], "paint": { "line-color": "hsla(0,0%,73%,0.77)", "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14, 0.4, 20, 1] + ["exponential", 1.4], + ["zoom"], + 14, + 0.4, + 20, + 1 + ] } }, { @@ -2937,39 +1818,28 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "class" - ], - "rail" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "has", - "service" - ] + ["==", ["get", "class"], "rail"], + ["has", "service"] ], "paint": { "line-color": "hsla(0,0%,73%,0.68)", "line-dasharray": [0.2, 8], "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14.5, 0, 15, 2, 20, 6] + ["exponential", 1.4], + ["zoom"], + 14.5, + 0, + 15, + 2, + 20, + 6 + ] } }, { @@ -2981,52 +1851,28 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "!", - [ - "has", - "service" - ] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "==", - [ - "get", - "class" - ], - "rail" - ] + ["!", ["has", "service"]], + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["==", ["get", "class"], "rail"] ], "paint": { "line-color": "#bbb", "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14, 0.4, 15, 0.75, 20, 2] + ["exponential", 1.4], + ["zoom"], + 14, + 0.4, + 15, + 0.75, + 20, + 2 + ] } }, { @@ -3038,53 +1884,29 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "!", - [ - "has", - "service" - ] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - false, true], - [ - "==", - [ - "get", - "class" - ], - "rail" - ] + ["!", ["has", "service"]], + ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], + ["==", ["get", "class"], "rail"] ], "paint": { "line-color": "#bbb", "line-dasharray": [0.2, 8], "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14.5, 0, 15, 3, 20, 8] + ["exponential", 1.4], + ["zoom"], + 14.5, + 0, + 15, + 3, + 20, + 8 + ] } }, { @@ -3094,29 +1916,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "motorway"], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3126,13 +1928,17 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 1, 13, 3, 14, 4, 20, 19] + ["exponential", 1.2], + ["zoom"], + 12, + 1, + 13, + 3, + 14, + 4, + 20, + 19 + ] } }, { @@ -3142,34 +1948,15 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], + ["==", ["get", "brunnel"], "bridge"], [ "match", - [ - "get", - "class" - ], - [ - "primary", - "secondary", - "tertiary", - "trunk" - ], - true, false], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["get", "class"], + ["primary", "secondary", "tertiary", "trunk"], + true, + false + ], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3179,13 +1966,17 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 1, 13, 3, 14, 4, 20, 19] + ["exponential", 1.2], + ["zoom"], + 12, + 1, + 13, + 3, + 14, + 4, + 20, + 19 + ] } }, { @@ -3195,32 +1986,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "secondary", - "tertiary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "bridge"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3230,48 +1998,29 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 5, 0.4, 7, 0.6, 8, 1.5, 20, 21] - } - }, - { - "id": "bridge-trunk-primary-casing", - "type": "line", - "source": "openmaptiles", - "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "primary", - "trunk" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["exponential", 1.2], + ["zoom"], + 5, + 0.4, + 7, + 0.6, + 8, + 1.5, + 20, + 21 + ] + } + }, + { + "id": "bridge-trunk-primary-casing", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "filter": [ + "all", + ["==", ["get", "brunnel"], "bridge"], + ["match", ["get", "class"], ["primary", "trunk"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3280,13 +2029,17 @@ "line-color": "hsl(28,76%,67%)", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 5, 0.4, 6, 0.6, 7, 1.5, 20, 26] + ["exponential", 1.2], + ["zoom"], + 5, + 0.4, + 6, + 0.6, + 7, + 1.5, + 20, + 26 + ] } }, { @@ -3296,29 +2049,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "motorway"], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3327,13 +2060,17 @@ "line-color": "#e9ac77", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 5, 0.4, 6, 0.6, 7, 1.5, 20, 26] + ["exponential", 1.2], + ["zoom"], + 5, + 0.4, + 6, + 0.6, + 7, + 1.5, + 20, + 26 + ] } }, { @@ -3345,34 +2082,13 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "class" - ], - [ - "minor", - "service", - "track" - ], - true, false] + ["==", ["get", "brunnel"], "bridge"], + ["match", ["get", "class"], ["minor", "service", "track"], true, false] ], "layout": { "line-cap": "butt", @@ -3380,24 +2096,20 @@ }, "paint": { "line-color": "#cfcdca", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, 0, 12.5, 1], - "line-width": [ - "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12, 0.5, 13, 1, 14, 6, 20, 24] + "line-opacity": ["interpolate", ["linear"], ["zoom"], 12, 0, 12.5, 1], + "line-width": [ + "interpolate", + ["exponential", 1.2], + ["zoom"], + 12, + 0.5, + 13, + 1, + 14, + 6, + 20, + 24 + ] } }, { @@ -3409,42 +2121,25 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "==", - [ - "get", - "class" - ], - "path" - ] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "path"] ], "paint": { "line-color": "#f8f4f0", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 15, 1.2, 20, 18] + ["exponential", 1.2], + ["zoom"], + 15, + 1.2, + 20, + 18 + ] } }, { @@ -3456,43 +2151,26 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "==", - [ - "get", - "class" - ], - "path" - ] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "path"] ], "paint": { "line-color": "#cba", "line-dasharray": [1.5, 0.75], "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 15, 1.2, 20, 4] + ["exponential", 1.2], + ["zoom"], + 15, + 1.2, + 20, + 4 + ] } }, { @@ -3502,29 +2180,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "motorway"], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3533,13 +2191,17 @@ "line-color": "#fc8", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12.5, 0, 13, 1.5, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 12.5, + 0, + 13, + 1.5, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -3549,34 +2211,15 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], + ["==", ["get", "brunnel"], "bridge"], [ "match", - [ - "get", - "class" - ], - [ - "primary", - "secondary", - "tertiary", - "trunk" - ], - true, false], - [ - "==", - [ - "get", - "ramp" - ], - 1] + ["get", "class"], + ["primary", "secondary", "tertiary", "trunk"], + true, + false + ], + ["==", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3585,13 +2228,17 @@ "line-color": "#fea", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 12.5, 0, 13, 1.5, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 12.5, + 0, + 13, + 1.5, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -3603,34 +2250,13 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false ], - [ - "match", - [ - "get", - "class" - ], - [ - "minor", - "service", - "track" - ], - true, false] + ["==", ["get", "brunnel"], "bridge"], + ["match", ["get", "class"], ["minor", "service", "track"], true, false] ], "layout": { "line-cap": "round", @@ -3641,13 +2267,15 @@ "line-opacity": 1, "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 13.5, 0, 14, 2.5, 20, 11.5] + ["exponential", 1.2], + ["zoom"], + 13.5, + 0, + 14, + 2.5, + 20, + 11.5 + ] } }, { @@ -3657,32 +2285,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "secondary", - "tertiary" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "bridge"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3691,13 +2296,15 @@ "line-color": "#fea", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 8, 0.5, 20, 13] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 8, + 0.5, + 20, + 13 + ] } }, { @@ -3707,32 +2314,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "match", - [ - "get", - "class" - ], - [ - "primary", - "trunk" - ], - true, false], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "bridge"], + ["match", ["get", "class"], ["primary", "trunk"], true, false], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3741,13 +2325,15 @@ "line-color": "#fea", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 7, 0.5, 20, 18] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 7, + 0.5, + 20, + 18 + ] } }, { @@ -3757,29 +2343,9 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "==", - [ - "get", - "class" - ], - "motorway" - ], - [ - "!=", - [ - "get", - "ramp" - ], - 1] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "motorway"], + ["!=", ["get", "ramp"], 1] ], "layout": { "line-join": "round" @@ -3788,13 +2354,15 @@ "line-color": "#fc8", "line-width": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 6.5, 0, 7, 0.5, 20, 18] + ["exponential", 1.2], + ["zoom"], + 6.5, + 0, + 7, + 0.5, + 20, + 18 + ] } }, { @@ -3804,34 +2372,22 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "==", - [ - "get", - "class" - ], - "rail" - ] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "rail"] ], "paint": { "line-color": "#bbb", "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14, 0.4, 15, 0.75, 20, 2] + ["exponential", 1.4], + ["zoom"], + 14, + 0.4, + 15, + 0.75, + 20, + 2 + ] } }, { @@ -3841,35 +2397,23 @@ "source-layer": "transportation", "filter": [ "all", - [ - "==", - [ - "get", - "brunnel" - ], - "bridge" - ], - [ - "==", - [ - "get", - "class" - ], - "rail" - ] + ["==", ["get", "brunnel"], "bridge"], + ["==", ["get", "class"], "rail"] ], "paint": { "line-color": "#bbb", "line-dasharray": [0.2, 8], "line-width": [ "interpolate", - [ - "exponential", - 1.4], - [ - "zoom" - ], - 14.5, 0, 15, 3, 20, 8] + ["exponential", 1.4], + ["zoom"], + 14.5, + 0, + 15, + 3, + 20, + 8 + ] } }, { @@ -3878,28 +2422,13 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 13, - "filter": [ - "==", - [ - "get", - "subclass" - ], - "cable_car" - ], + "filter": ["==", ["get", "subclass"], "cable_car"], "layout": { "line-cap": "round" }, "paint": { "line-color": "hsl(0,0%,70%)", - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, 1, 19, 2.5] + "line-width": ["interpolate", ["linear"], ["zoom"], 11, 1, 19, 2.5] } }, { @@ -3908,29 +2437,14 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 13, - "filter": [ - "==", - [ - "get", - "subclass" - ], - "cable_car" - ], + "filter": ["==", ["get", "subclass"], "cable_car"], "layout": { "line-cap": "round" }, "paint": { "line-color": "hsl(0,0%,70%)", "line-dasharray": [2, 3], - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, 3, 19, 5.5] + "line-width": ["interpolate", ["linear"], ["zoom"], 11, 3, 19, 5.5] } }, { @@ -3941,54 +2455,16 @@ "minzoom": 5, "filter": [ "all", - [ - "\u003E=", - [ - "get", - "admin_level" - ], - 3], - [ - "\u003C=", - [ - "get", - "admin_level" - ], - 6], - [ - "!=", - [ - "get", - "maritime" - ], - 1], - [ - "!=", - [ - "get", - "disputed" - ], - 1], - [ - "!", - [ - "has", - "claimed_by" - ] - ] + ["\u003E=", ["get", "admin_level"], 3], + ["\u003C=", ["get", "admin_level"], 6], + ["!=", ["get", "maritime"], 1], + ["!=", ["get", "disputed"], 1], + ["!", ["has", "claimed_by"]] ], "paint": { - "line-color": "hsl(0,0%,70%)", - "line-dasharray": [1, 1], - "line-width": [ - "interpolate", - [ - "linear", - 1], - [ - "zoom" - ], - 7, 1, 11, 2] + "line-color": "hsl(0,0%,70%)", + "line-dasharray": [1, 1], + "line-width": ["interpolate", ["linear", 1], ["zoom"], 7, 1, 11, 2] } }, { @@ -3998,34 +2474,10 @@ "source-layer": "boundary", "filter": [ "all", - [ - "==", - [ - "get", - "admin_level" - ], - 2], - [ - "!=", - [ - "get", - "maritime" - ], - 1], - [ - "!=", - [ - "get", - "disputed" - ], - 1], - [ - "!", - [ - "has", - "claimed_by" - ] - ] + ["==", ["get", "admin_level"], 2], + ["!=", ["get", "maritime"], 1], + ["!=", ["get", "disputed"], 1], + ["!", ["has", "claimed_by"]] ], "layout": { "line-cap": "round", @@ -4033,24 +2485,8 @@ }, "paint": { "line-color": "hsl(248,7%,66%)", - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 0, 0.4, 4, 1], - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 3, 1, 5, 1.2, 12, 3] + "line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 4, 1], + "line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3] } }, { @@ -4060,33 +2496,13 @@ "source-layer": "boundary", "filter": [ "all", - [ - "!=", - [ - "get", - "maritime" - ], - 1], - [ - "==", - [ - "get", - "disputed" - ], - 1] + ["!=", ["get", "maritime"], 1], + ["==", ["get", "disputed"], 1] ], "paint": { "line-color": "hsl(248,7%,66%)", "line-dasharray": [1, 2], - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 3, 1, 5, 1.2, 12, 3] + "line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3] } }, { @@ -4097,19 +2513,10 @@ "minzoom": 15, "filter": [ "all", - [ - "==", - [ - "get", - "oneway" - ], - 1], + ["==", ["get", "oneway"], 1], [ "match", - [ - "get", - "class" - ], + ["get", "class"], [ "minor", "motorway", @@ -4119,22 +2526,16 @@ "tertiary", "trunk" ], - true, false] + true, + false + ] ], "layout": { "icon-image": "oneway", "icon-padding": 2, "icon-rotate": 90, "icon-rotation-alignment": "map", - "icon-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, 0.5, 19, 1], + "icon-size": ["interpolate", ["linear"], ["zoom"], 15, 0.5, 19, 1], "symbol-placement": "line", "symbol-spacing": 75 }, @@ -4150,19 +2551,10 @@ "minzoom": 15, "filter": [ "all", - [ - "==", - [ - "get", - "oneway" - ], - -1], + ["==", ["get", "oneway"], -1], [ "match", - [ - "get", - "class" - ], + ["get", "class"], [ "minor", "motorway", @@ -4172,22 +2564,16 @@ "tertiary", "trunk" ], - true, false] + true, + false + ] ], "layout": { "icon-image": "oneway", "icon-padding": 2, "icon-rotate": -90, "icon-rotation-alignment": "map", - "icon-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, 0.5, 19, 1], + "icon-size": ["interpolate", ["linear"], ["zoom"], 15, 0.5, 19, 1], "symbol-placement": "line", "symbol-spacing": 75 }, @@ -4203,50 +2589,21 @@ "minzoom": 10, "filter": [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], "layout": { "symbol-placement": "line", "symbol-spacing": 350, "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - " ", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-letter-spacing": 0.2, "text-max-width": 5, "text-size": 14 @@ -4264,59 +2621,22 @@ "source-layer": "water_name", "filter": [ "match", - [ - "geometry-type" - ], - [ - "MultiPoint", - "Point" - ], - true, false], + ["geometry-type"], + ["MultiPoint", "Point"], + true, + false + ], "layout": { "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-letter-spacing": 0.2, "text-max-width": 5, - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 0, 10, 8, 14] + "text-size": ["interpolate", ["linear"], ["zoom"], 0, 10, 8, 14] }, "paint": { "text-color": "#495e91", @@ -4331,50 +2651,21 @@ "source-layer": "water_name", "filter": [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], "layout": { "symbol-placement": "line", "symbol-spacing": 350, "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - " ", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-letter-spacing": 0.2, "text-max-width": 5, "text-size": 14 @@ -4393,84 +2684,26 @@ "minzoom": 17, "filter": [ "all", - [ - "!=", - [ - "get", - "class" - ], "bus"], - [ - "match", - [ - "geometry-type" - ], - [ - "MultiPoint", - "Point" - ], - true, false], - [ - "\u003E=", - [ - "get", - "rank" - ], - 20] + ["!=", ["get", "class"], "bus"], + ["match", ["geometry-type"], ["MultiPoint", "Point"], true, false], + ["\u003E=", ["get", "rank"], 20] ], "layout": { "icon-image": [ "match", - [ - "get", - "subclass" - ], - [ - "florist", - "furniture" - ], - [ - "get", - "subclass" - ], - [ - "get", - "class" - ] + ["get", "subclass"], + ["florist", "furniture"], + ["get", "subclass"], + ["get", "class"] ], "text-anchor": "top", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-max-width": 9, "text-offset": [0, 0.6], "text-size": 12 @@ -4490,91 +2723,27 @@ "minzoom": 16, "filter": [ "all", - [ - "match", - [ - "geometry-type" - ], - [ - "MultiPoint", - "Point" - ], - true, false], - [ - "!=", - [ - "get", - "class" - ], "bus"], - [ - "\u003E=", - [ - "get", - "rank" - ], - 7], - [ - "\u003C", - [ - "get", - "rank" - ], - 20] + ["match", ["geometry-type"], ["MultiPoint", "Point"], true, false], + ["!=", ["get", "class"], "bus"], + ["\u003E=", ["get", "rank"], 7], + ["\u003C", ["get", "rank"], 20] ], "layout": { "icon-image": [ "match", - [ - "get", - "subclass" - ], - [ - "florist", - "furniture" - ], - [ - "get", - "subclass" - ], - [ - "get", - "class" - ] + ["get", "subclass"], + ["florist", "furniture"], + ["get", "subclass"], + ["get", "class"] ], "text-anchor": "top", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-max-width": 9, "text-offset": [0, 0.6], "text-size": 12 @@ -4594,97 +2763,28 @@ "minzoom": 15, "filter": [ "all", - [ - "match", - [ - "geometry-type" - ], - [ - "MultiPoint", - "Point" - ], - true, false], - [ - "!=", - [ - "get", - "class" - ], "bus"], - [ - "!=", - [ - "get", - "class" - ], "bus"], - [ - "\u003E=", - [ - "get", - "rank" - ], - 1], - [ - "\u003C", - [ - "get", - "rank" - ], - 7] + ["match", ["geometry-type"], ["MultiPoint", "Point"], true, false], + ["!=", ["get", "class"], "bus"], + ["!=", ["get", "class"], "bus"], + ["\u003E=", ["get", "rank"], 1], + ["\u003C", ["get", "rank"], 7] ], "layout": { "icon-image": [ "match", - [ - "get", - "subclass" - ], - [ - "florist", - "furniture" - ], - [ - "get", - "subclass" - ], - [ - "get", - "class" - ] + ["get", "subclass"], + ["florist", "furniture"], + ["get", "subclass"], + ["get", "class"] ], "text-anchor": "top", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-max-width": 9, "text-offset": [0, 0.6], "text-size": 12 @@ -4701,60 +2801,18 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "poi", - "filter": [ - "match", - [ - "get", - "class" - ], - [ - "airport", - "rail" - ], - true, false], + "filter": ["match", ["get", "class"], ["airport", "rail"], true, false], "layout": { - "icon-image": [ - "to-string", - [ - "get", - "class" - ] - ], + "icon-image": ["to-string", ["get", "class"]], "icon-size": 0.7, "text-anchor": "left", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-max-width": 9, "text-offset": [0.9, 0], "text-size": 12 @@ -4772,59 +2830,18 @@ "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 15.5, - "filter": [ - "==", - [ - "get", - "class" - ], - "path" - ], + "filter": ["==", ["get", "class"], "path"], "layout": { "symbol-placement": "line", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - " ", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Regular" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Regular"], "text-rotation-alignment": "map", - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, 12, 14, 13] + "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13] }, "paint": { "text-color": "hsl(30,23%,62%)", @@ -4842,72 +2859,24 @@ "all", [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "class" - ], - [ - "minor", - "service", - "track" - ], - true, false] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], + ["match", ["get", "class"], ["minor", "service", "track"], true, false] ], "layout": { "symbol-placement": "line", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - " ", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Regular" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Regular"], "text-rotation-alignment": "map", - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, 12, 14, 13] + "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13] }, "paint": { "text-color": "#666", @@ -4923,62 +2892,22 @@ "minzoom": 12.2, "filter": [ "match", - [ - "get", - "class" - ], - [ - "primary", - "secondary", - "tertiary", - "trunk" - ], - true, false], + ["get", "class"], + ["primary", "secondary", "tertiary", "trunk"], + true, + false + ], "layout": { - "symbol-placement": "line", - "text-field": [ - "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - " ", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Regular" - ], - "text-rotation-alignment": "map", - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, 12, 14, 13] + "symbol-placement": "line", + "text-field": [ + "case", + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] + ], + "text-font": ["Noto Sans Regular"], + "text-rotation-alignment": "map", + "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13] }, "paint": { "text-color": "#666", @@ -4994,66 +2923,30 @@ "minzoom": 8, "filter": [ "all", - [ - "\u003C=", - [ - "get", - "ref_length" - ], - 6], + ["\u003C=", ["get", "ref_length"], 6], [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], [ "match", - [ - "get", - "network" - ], - [ - "us-highway", - "us-interstate", - "us-state" - ], - false, true] + ["get", "network"], + ["us-highway", "us-interstate", "us-state"], + false, + true + ] ], "layout": { - "icon-image": [ - "concat", - "road_", - [ - "get", - "ref_length" - ] - ], + "icon-image": ["concat", "road_", ["get", "ref_length"]], "icon-rotation-alignment": "viewport", "icon-size": 1, - "symbol-placement": [ - "step", - [ - "zoom" - ], - "point", - 11, "line" - ], + "symbol-placement": ["step", ["zoom"], "point", 11, "line"], "symbol-spacing": 200, - "text-field": [ - "to-string", - [ - "get", - "ref" - ] - ], - "text-font": [ - "Noto Sans Regular" - ], + "text-field": ["to-string", ["get", "ref"]], + "text-font": ["Noto Sans Regular"], "text-rotation-alignment": "viewport", "text-size": 10 } @@ -5066,69 +2959,29 @@ "minzoom": 7, "filter": [ "all", - [ - "\u003C=", - [ - "get", - "ref_length" - ], - 6], + ["\u003C=", ["get", "ref_length"], 6], [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "network" - ], - [ - "us-interstate" - ], - true, false] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], + ["match", ["get", "network"], ["us-interstate"], true, false] ], "layout": { "icon-image": [ "concat", - [ - "get", - "network" - ], + ["get", "network"], "_", - [ - "get", - "ref_length" - ] + ["get", "ref_length"] ], "icon-rotation-alignment": "viewport", "icon-size": 1, - "symbol-placement": [ - "step", - [ - "zoom" - ], - "point", - 7, "line", - 8, "line" - ], + "symbol-placement": ["step", ["zoom"], "point", 7, "line", 8, "line"], "symbol-spacing": 200, - "text-field": [ - "to-string", - [ - "get", - "ref" - ] - ], - "text-font": [ - "Noto Sans Regular" - ], + "text-field": ["to-string", ["get", "ref"]], + "text-font": ["Noto Sans Regular"], "text-rotation-alignment": "viewport", "text-size": 10 } @@ -5141,69 +2994,29 @@ "minzoom": 9, "filter": [ "all", - [ - "\u003C=", - [ - "get", - "ref_length" - ], - 6], + ["\u003C=", ["get", "ref_length"], 6], [ "match", - [ - "geometry-type" - ], - [ - "LineString", - "MultiLineString" - ], - true, false], - [ - "match", - [ - "get", - "network" - ], - [ - "us-highway", - "us-state" - ], - true, false] + ["geometry-type"], + ["LineString", "MultiLineString"], + true, + false + ], + ["match", ["get", "network"], ["us-highway", "us-state"], true, false] ], "layout": { "icon-image": [ "concat", - [ - "get", - "network" - ], + ["get", "network"], "_", - [ - "get", - "ref_length" - ] + ["get", "ref_length"] ], "icon-rotation-alignment": "viewport", "icon-size": 1, - "symbol-placement": [ - "step", - [ - "zoom" - ], - "point", - 11, "line" - ], + "symbol-placement": ["step", ["zoom"], "point", 11, "line"], "symbol-spacing": 200, - "text-field": [ - "to-string", - [ - "get", - "ref" - ] - ], - "text-font": [ - "Noto Sans Regular" - ], + "text-field": ["to-string", ["get", "ref"]], + "text-font": ["Noto Sans Regular"], "text-rotation-alignment": "viewport", "text-size": 10 } @@ -5214,50 +3027,18 @@ "source": "openmaptiles", "source-layer": "aerodrome_label", "minzoom": 10, - "filter": [ - "all", - [ - "has", - "iata" - ] - ], + "filter": ["all", ["has", "iata"]], "layout": { "icon-image": "airport_11", "icon-size": 1, "text-anchor": "top", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Regular" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Regular"], "text-max-width": 9, "text-offset": [0, 0.6], "text-optional": true, @@ -5279,64 +3060,22 @@ "minzoom": 8, "filter": [ "match", - [ - "get", - "class" - ], - [ - "city", - "continent", - "country", - "state", - "town", - "village" - ], - false, true], + ["get", "class"], + ["city", "continent", "country", "state", "town", "village"], + false, + true + ], "layout": { "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-letter-spacing": 0.1, "text-max-width": 9, - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, 9, 12, 10], + "text-size": ["interpolate", ["linear"], ["zoom"], 8, 9, 12, 10], "text-transform": "uppercase" }, "paint": { @@ -5352,70 +3091,30 @@ "source": "openmaptiles", "source-layer": "place", "minzoom": 9, - "filter": [ - "==", - [ - "get", - "class" - ], - "village" - ], + "filter": ["==", ["get", "class"], "village"], "layout": { "icon-allow-overlap": true, - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_11_black", - 10, "" - ], + "icon-image": ["step", ["zoom"], "circle_11_black", 10, ""], "icon-optional": false, "icon-size": 0.2, "text-anchor": "bottom", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Regular" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Regular"], "text-max-width": 8, "text-size": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 7, 10, 11, 12] + ["exponential", 1.2], + ["zoom"], + 7, + 10, + 11, + 12 + ] }, "paint": { "text-color": "#000", @@ -5430,70 +3129,30 @@ "source": "openmaptiles", "source-layer": "place", "minzoom": 6, - "filter": [ - "==", - [ - "get", - "class" - ], - "town" - ], + "filter": ["==", ["get", "class"], "town"], "layout": { "icon-allow-overlap": true, - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_11_black", - 10, "" - ], + "icon-image": ["step", ["zoom"], "circle_11_black", 10, ""], "icon-optional": false, "icon-size": 0.2, "text-anchor": "bottom", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Regular" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Regular"], "text-max-width": 8, "text-size": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 7, 12, 11, 14] + ["exponential", 1.2], + ["zoom"], + 7, + 12, + 11, + 14 + ] }, "paint": { "text-color": "#000", @@ -5509,59 +3168,18 @@ "source-layer": "place", "minzoom": 5, "maxzoom": 8, - "filter": [ - "==", - [ - "get", - "class" - ], - "state" - ], + "filter": ["==", ["get", "class"], "state"], "layout": { "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Italic" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Italic"], "text-letter-spacing": 0.2, "text-max-width": 9, - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 5, 10, 8, 14], + "text-size": ["interpolate", ["linear"], ["zoom"], 5, 10, 8, 14], "text-transform": "uppercase" }, "paint": { @@ -5579,79 +3197,35 @@ "minzoom": 3, "filter": [ "all", - [ - "==", - [ - "get", - "class" - ], - "city" - ], - [ - "!=", - [ - "get", - "capital" - ], - 2] + ["==", ["get", "class"], "city"], + ["!=", ["get", "capital"], 2] ], "layout": { "icon-allow-overlap": true, - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_11_black", - 9, "" - ], + "icon-image": ["step", ["zoom"], "circle_11_black", 9, ""], "icon-optional": false, "icon-size": 0.4, "text-anchor": "bottom", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Regular" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Regular"], "text-max-width": 8, "text-offset": [0, -0.1], "text-size": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 4, 11, 7, 13, 11, 18] + ["exponential", 1.2], + ["zoom"], + 4, + 11, + 7, + 13, + 11, + 18 + ] }, "paint": { "text-color": "#000", @@ -5668,79 +3242,35 @@ "minzoom": 3, "filter": [ "all", - [ - "==", - [ - "get", - "class" - ], - "city" - ], - [ - "==", - [ - "get", - "capital" - ], - 2] + ["==", ["get", "class"], "city"], + ["==", ["get", "capital"], 2] ], "layout": { "icon-allow-overlap": true, - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_11_black", - 9, "" - ], + "icon-image": ["step", ["zoom"], "circle_11_black", 9, ""], "icon-optional": false, "icon-size": 0.5, "text-anchor": "bottom", "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Bold" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Bold"], "text-max-width": 8, "text-offset": [0, -0.2], "text-size": [ "interpolate", - [ - "exponential", - 1.2], - [ - "zoom" - ], - 4, 12, 7, 14, 11, 20] + ["exponential", 1.2], + ["zoom"], + 4, + 12, + 7, + 14, + 11, + 20 + ] }, "paint": { "text-color": "#000", @@ -5758,66 +3288,19 @@ "maxzoom": 9, "filter": [ "all", - [ - "==", - [ - "get", - "class" - ], - "country" - ], - [ - "\u003E=", - [ - "get", - "rank" - ], - 3] + ["==", ["get", "class"], "country"], + ["\u003E=", ["get", "rank"], 3] ], "layout": { "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Bold" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Bold"], "text-max-width": 6.25, - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 3, 9, 7, 17] + "text-size": ["interpolate", ["linear"], ["zoom"], 3, 9, 7, 17] }, "paint": { "text-color": "#000", @@ -5834,66 +3317,19 @@ "maxzoom": 9, "filter": [ "all", - [ - "==", - [ - "get", - "class" - ], - "country" - ], - [ - "==", - [ - "get", - "rank" - ], - 2] + ["==", ["get", "class"], "country"], + ["==", ["get", "rank"], 2] ], "layout": { "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Bold" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Bold"], "text-max-width": 6.25, - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 2, 9, 5, 17] + "text-size": ["interpolate", ["linear"], ["zoom"], 2, 9, 5, 17] }, "paint": { "text-color": "#000", @@ -5910,66 +3346,19 @@ "maxzoom": 9, "filter": [ "all", - [ - "==", - [ - "get", - "class" - ], - "country" - ], - [ - "==", - [ - "get", - "rank" - ], - 1] + ["==", ["get", "class"], "country"], + ["==", ["get", "rank"], 1] ], "layout": { "text-field": [ "case", - [ - "has", - "name:nonlatin" - ], - [ - "concat", - [ - "get", - "name:latin" - ], - "\n", - [ - "get", - "name:nonlatin" - ] - ], - [ - "coalesce", - [ - "get", - "name_en" - ], - [ - "get", - "name" - ] - ] - ], - "text-font": [ - "Noto Sans Bold" + ["has", "name:nonlatin"], + ["concat", ["get", "name:latin"], "\n", ["get", "name:nonlatin"]], + ["coalesce", ["get", "name_en"], ["get", "name"]] ], + "text-font": ["Noto Sans Bold"], "text-max-width": 6.25, - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 1, 9, 4, 17] + "text-size": ["interpolate", ["linear"], ["zoom"], 1, 9, 4, 17] }, "paint": { "text-color": "#000", -- cgit v1.3