diff --git a/map/README.md b/map/README.md index 68d914010..eeee6196c 100644 --- a/map/README.md +++ b/map/README.md @@ -51,6 +51,7 @@ From the root of the repository, run either (depending on your waiting tolerance ``` + -
[~24 hours] Planet with lower amounts of RAM (slower) ```bash @@ -109,7 +110,7 @@ docker run -it --rm -p 8888:8888 maputnik/editor > After exporting the edited style don't forget to revert the change to the vector url 😉 | Step 1 | Step 2 | -|------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------| +| ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | ![Where in Maputnik to click to import a style](/resources/documentation/maputnik-import1.png) | ![Where in Maputnik to click then to import a style](/resources/documentation/maputnik-import2.png) | ### Fonts + Sprites diff --git a/map/config.json b/map/config.json index dbc331285..3f687ace0 100644 --- a/map/config.json +++ b/map/config.json @@ -7,11 +7,7 @@ "styles": "styles", "mbtiles": "" }, - "domains": [ - "nav.tum.de", - "localhost:8080", - "127.0.0.1:8080" - ], + "domains": ["nav.tum.de", "localhost:8080", "127.0.0.1:8080"], "formatQuality": { "jpeg": 80, "webp": 90 diff --git a/map/styles/osm-liberty.json b/map/styles/osm-liberty.json index 753e83628..07488022f 100644 --- a/map/styles/osm-liberty.json +++ b/map/styles/osm-liberty.json @@ -14,9 +14,7 @@ "natural_earth_shaded_relief": { "maxzoom": 6, "tileSize": 256, - "tiles": [ - "https://nav.tum.de/cdn/natural_earth_2_shaded_relief.raster/{z}/{x}/{y}.png" - ], + "tiles": ["https://nav.tum.de/cdn/natural_earth_2_shaded_relief.raster/{z}/{x}/{y}.png"], "type": "raster" } }, @@ -40,14 +38,8 @@ "raster-opacity": { "base": 1.5, "stops": [ - [ - 4, - 0.7 - ], - [ - 6, - 0 - ] + [4, 0.7], + [6, 0] ] } } @@ -69,10 +61,7 @@ "source": "openmaptiles", "source-layer": "park", "paint": { - "line-dasharray": [ - 1, - 1.5 - ], + "line-dasharray": [1, 1.5], "line-color": "rgba(228, 241, 215, 1)" } }, @@ -82,23 +71,13 @@ "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)"] ] } } @@ -108,14 +87,7 @@ "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)", @@ -127,14 +99,7 @@ "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)", @@ -146,14 +111,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": [ - "all", - [ - "==", - "class", - "ice" - ] - ], + "filter": ["all", ["==", "class", "ice"]], "paint": { "fill-antialias": false, "fill-color": "rgba(224, 236, 236, 1)", @@ -165,11 +123,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": [ - "==", - "class", - "cemetery" - ], + "filter": ["==", "class", "cemetery"], "paint": { "fill-color": "hsl(75, 37%, 81%)" } @@ -179,11 +133,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": [ - "==", - "class", - "hospital" - ], + "filter": ["==", "class", "hospital"], "paint": { "fill-color": "#fde" } @@ -193,11 +143,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": [ - "==", - "class", - "school" - ], + "filter": ["==", "class", "school"], "paint": { "fill-color": "rgb(236,238,204)" } @@ -207,44 +153,22 @@ "type": "line", "source": "openmaptiles", "source-layer": "waterway", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"]], "paint": { "line-color": "#a0c8f0", - "line-dasharray": [ - 3, - 3 - ], + "line-dasharray": [3, 3], "line-gap-width": { "stops": [ - [ - 12, - 0 - ], - [ - 20, - 6 - ] + [12, 0], + [20, 6] ] }, "line-opacity": 1, "line-width": { "base": 1.4, "stops": [ - [ - 8, - 1 - ], - [ - 20, - 2 - ] + [8, 1], + [20, 2] ] } } @@ -254,19 +178,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "waterway", - "filter": [ - "all", - [ - "==", - "class", - "river" - ], - [ - "!=", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "class", "river"], ["!=", "brunnel", "tunnel"]], "layout": { "line-cap": "round" }, @@ -275,14 +187,8 @@ "line-width": { "base": 1.2, "stops": [ - [ - 11, - 0.5 - ], - [ - 20, - 6 - ] + [11, 0.5], + [20, 6] ] } } @@ -292,19 +198,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "waterway", - "filter": [ - "all", - [ - "!=", - "class", - "river" - ], - [ - "!=", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["!=", "class", "river"], ["!=", "brunnel", "tunnel"]], "layout": { "line-cap": "round" }, @@ -313,14 +207,8 @@ "line-width": { "base": 1.3, "stops": [ - [ - 13, - 0.5 - ], - [ - 20, - 6 - ] + [13, 0.5], + [20, 6] ] } } @@ -330,14 +218,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "water", - "filter": [ - "all", - [ - "!=", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["!=", "brunnel", "tunnel"]], "paint": { "fill-color": "rgb(158,189,255)" } @@ -347,14 +228,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": [ - "all", - [ - "==", - "class", - "sand" - ] - ], + "filter": ["all", ["==", "class", "sand"]], "paint": { "fill-color": "rgba(247, 239, 195, 1)" } @@ -365,11 +239,7 @@ "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 11, - "filter": [ - "==", - "$type", - "Polygon" - ], + "filter": ["==", "$type", "Polygon"], "paint": { "fill-color": "rgba(229, 228, 224, 1)", "fill-opacity": 0.7 @@ -381,32 +251,14 @@ "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 11, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "==", - "class", - "runway" - ] - ], + "filter": ["all", ["==", "$type", "LineString"], ["==", "class", "runway"]], "paint": { "line-color": "#f0ede9", "line-width": { "base": 1.2, "stops": [ - [ - 11, - 3 - ], - [ - 20, - 16 - ] + [11, 3], + [20, 16] ] } } @@ -417,32 +269,14 @@ "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 11, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "==", - "class", - "taxiway" - ] - ], + "filter": ["all", ["==", "$type", "LineString"], ["==", "class", "taxiway"]], "paint": { "line-color": "#f0ede9", "line-width": { "base": 1.2, "stops": [ - [ - 11, - 0.5 - ], - [ - 20, - 6 - ] + [11, 0.5], + [20, 6] ] } } @@ -452,52 +286,20 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "==", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["==", "ramp", 1], ["==", "brunnel", "tunnel"]], "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 - ] + [12, 1], + [13, 3], + [14, 4], + [20, 15] ] } } @@ -507,44 +309,19 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "service", - "track" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "service", "track"]], "layout": { "line-join": "round" }, "paint": { "line-color": "#cfcdca", - "line-dasharray": [ - 0.5, - 0.25 - ], + "line-dasharray": [0.5, 0.25], "line-width": { "base": 1.2, "stops": [ - [ - 15, - 1 - ], - [ - 16, - 4 - ], - [ - 20, - 11 - ] + [15, 1], + [16, 4], + [20, 11] ] } } @@ -554,19 +331,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "ramp", 1], ["==", "brunnel", "tunnel"]], "layout": { "line-join": "round" }, @@ -575,22 +340,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] + [12, 1], + [13, 3], + [14, 4], + [20, 15] ] } } @@ -600,20 +353,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "street", - "street_limited" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "street", "street_limited"]], "layout": { "line-join": "round" }, @@ -621,35 +361,17 @@ "line-color": "#cfcdca", "line-opacity": { "stops": [ - [ - 12, - 0 - ], - [ - 12.5, - 1 - ] + [12, 0], + [12.5, 1] ] }, "line-width": { "base": 1.2, "stops": [ - [ - 12, - 0.5 - ], - [ - 13, - 1 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] + [12, 0.5], + [13, 1], + [14, 4], + [20, 15] ] } } @@ -659,20 +381,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "secondary", "tertiary"]], "layout": { "line-join": "round" }, @@ -681,14 +390,8 @@ "line-width": { "base": 1.2, "stops": [ - [ - 8, - 1.5 - ], - [ - 20, - 17 - ] + [8, 1.5], + [20, 17] ] } } @@ -698,20 +401,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "primary", "trunk"]], "layout": { "line-join": "round" }, @@ -720,22 +410,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] + [5, 0.4], + [6, 0.7], + [7, 1.75], + [20, 22] ] } } @@ -745,52 +423,20 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "!=", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["!=", "ramp", 1], ["==", "brunnel", "tunnel"]], "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 - ] + [5, 0.4], + [6, 0.7], + [7, 1.75], + [20, 22] ] } } @@ -802,40 +448,18 @@ "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-dasharray": [1, 0.75], "line-width": { "base": 1.2, "stops": [ - [ - 14, - 0.5 - ], - [ - 20, - 10 - ] + [14, 0.5], + [20, 10] ] } } @@ -845,24 +469,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "==", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["==", "ramp", 1], ["==", "brunnel", "tunnel"]], "layout": { "line-join": "round" }, @@ -871,22 +478,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] + [12.5, 0], + [13, 1.5], + [14, 2.5], + [20, 11.5] ] } } @@ -896,20 +491,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "service", - "track" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "service", "track"]], "layout": { "line-join": "round" }, @@ -918,18 +500,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 15.5, - 0 - ], - [ - 16, - 2 - ], - [ - 20, - 7.5 - ] + [15.5, 0], + [16, 2], + [20, 7.5] ] } } @@ -939,19 +512,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "ramp", 1], ["==", "brunnel", "tunnel"]], "layout": { "line-join": "round" }, @@ -960,22 +521,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] + [12.5, 0], + [13, 1.5], + [14, 2.5], + [20, 11.5] ] } } @@ -985,19 +534,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "minor" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "minor"]], "layout": { "line-join": "round" }, @@ -1006,18 +543,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] + [13.5, 0], + [14, 2.5], + [20, 11.5] ] } } @@ -1027,20 +555,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "secondary", "tertiary"]], "layout": { "line-join": "round" }, @@ -1049,18 +564,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 6.5, - 0 - ], - [ - 7, - 0.5 - ], - [ - 20, - 10 - ] + [6.5, 0], + [7, 0.5], + [20, 10] ] } } @@ -1070,20 +576,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "primary", "trunk"]], "layout": { "line-join": "round" }, @@ -1092,18 +585,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] + [5, 0], + [7, 1], + [20, 18] ] } } @@ -1113,24 +597,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "!=", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "tunnel" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["!=", "ramp", 1], ["==", "brunnel", "tunnel"]], "layout": { "line-join": "round" }, @@ -1139,18 +606,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] + [5, 0], + [7, 1], + [20, 18] ] } } @@ -1160,36 +618,15 @@ "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 - ] + [14, 0.4], + [15, 0.75], + [20, 2] ] } } @@ -1199,40 +636,16 @@ "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-dasharray": [0.2, 8], "line-width": { "base": 1.4, "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] + [14.5, 0], + [15, 3], + [20, 8] ] } } @@ -1242,36 +655,15 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "transit" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "transit"]], "paint": { "line-color": "#bbb", "line-width": { "base": 1.4, "stops": [ - [ - 14, - 0.4 - ], - [ - 15, - 0.75 - ], - [ - 20, - 2 - ] + [14, 0.4], + [15, 0.75], + [20, 2] ] } } @@ -1281,40 +673,16 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "==", - "class", - "transit" - ] - ], + "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "transit"]], "paint": { "line-color": "#bbb", - "line-dasharray": [ - 0.2, - 8 - ], + "line-dasharray": [0.2, 8], "line-width": { "base": 1.4, "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] + [14.5, 0], + [15, 3], + [20, 8] ] } } @@ -1324,14 +692,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "$type", - "Polygon" - ] - ], + "filter": ["all", ["==", "$type", "Polygon"]], "paint": { "fill-pattern": "pedestrian_polygon" } @@ -1342,25 +703,7 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 12, - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "motorway" - ], - [ - "==", - "ramp", - 1 - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "motorway"], ["==", "ramp", 1]], "layout": { "line-cap": "round", "line-join": "round" @@ -1370,22 +713,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] + [12, 1], + [13, 3], + [14, 4], + [20, 15] ] } } @@ -1395,21 +726,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "service", - "track" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["in", "class", "service", "track"]], "layout": { "line-cap": "round", "line-join": "round" @@ -1419,18 +736,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 15, - 1 - ], - [ - 16, - 4 - ], - [ - 20, - 11 - ] + [15, 1], + [16, 4], + [20, 11] ] } } @@ -1443,26 +751,9 @@ "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", @@ -1473,22 +764,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] + [12, 1], + [13, 3], + [14, 4], + [20, 15] ] } } @@ -1500,27 +779,10 @@ "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", @@ -1530,35 +792,17 @@ "line-color": "#cfcdca", "line-opacity": { "stops": [ - [ - 12, - 0 - ], - [ - 12.5, - 1 - ] + [12, 0], + [12.5, 1] ] }, "line-width": { "base": 1.2, "stops": [ - [ - 12, - 0.5 - ], - [ - 13, - 1 - ], - [ - 14, - 4 - ], - [ - 20, - 20 - ] + [12, 0.5], + [13, 1], + [14, 4], + [20, 20] ] } } @@ -1570,23 +814,9 @@ "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", @@ -1597,14 +827,8 @@ "line-width": { "base": 1.2, "stops": [ - [ - 8, - 1.5 - ], - [ - 20, - 17 - ] + [8, 1.5], + [20, 17] ] } } @@ -1614,21 +838,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["in", "class", "primary", "trunk"]], "layout": { "line-join": "round" }, @@ -1637,22 +847,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] + [5, 0.4], + [6, 0.7], + [7, 1.75], + [20, 22] ] } } @@ -1663,25 +861,7 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 5, - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "motorway" - ], - [ - "!=", - "ramp", - 1 - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "motorway"], ["!=", "ramp", 1]], "layout": { "line-cap": "round", "line-join": "round" @@ -1691,22 +871,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] + [5, 0.4], + [6, 0.7], + [7, 1.75], + [20, 22] ] } } @@ -1717,25 +885,7 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 12, - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "motorway" - ], - [ - "==", - "ramp", - 1 - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "motorway"], ["==", "ramp", 1]], "layout": { "line-cap": "round", "line-join": "round" @@ -1745,22 +895,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] + [12.5, 0], + [13, 1.5], + [14, 2.5], + [20, 11.5] ] } } @@ -1770,21 +908,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "service", - "track" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["in", "class", "service", "track"]], "layout": { "line-cap": "round", "line-join": "round" @@ -1794,18 +918,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 15.5, - 0 - ], - [ - 16, - 2 - ], - [ - 20, - 7.5 - ] + [15.5, 0], + [16, 2], + [20, 7.5] ] } } @@ -1818,26 +933,9 @@ "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", @@ -1848,22 +946,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] + [12.5, 0], + [13, 1.5], + [14, 2.5], + [20, 11.5] ] } } @@ -1875,22 +961,9 @@ "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", @@ -1901,18 +974,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 2.5 - ], - [ - 20, - 18 - ] + [13.5, 0], + [14, 2.5], + [20, 18] ] } } @@ -1922,21 +986,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["in", "class", "secondary", "tertiary"]], "layout": { "line-cap": "round", "line-join": "round" @@ -1946,18 +996,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 6.5, - 0 - ], - [ - 8, - 0.5 - ], - [ - 20, - 13 - ] + [6.5, 0], + [8, 0.5], + [20, 13] ] } } @@ -1967,21 +1008,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["in", "class", "primary", "trunk"]], "layout": { "line-join": "round" }, @@ -1990,18 +1017,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] + [5, 0], + [7, 1], + [20, 18] ] } } @@ -2012,25 +1030,7 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 5, - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "motorway" - ], - [ - "!=", - "ramp", - 1 - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "motorway"], ["!=", "ramp", 1]], "layout": { "line-cap": "round", "line-join": "round" @@ -2039,31 +1039,16 @@ "line-color": { "base": 1, "stops": [ - [ - 5, - "hsl(26, 87%, 62%)" - ], - [ - 6, - "#fc8" - ] + [5, "hsl(26, 87%, 62%)"], + [6, "#fc8"] ] }, "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] + [5, 0], + [7, 1], + [20, 18] ] } } @@ -2073,37 +1058,15 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "rail" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "rail"]], "paint": { "line-color": "#bbb", "line-width": { "base": 1.4, "stops": [ - [ - 14, - 0.4 - ], - [ - 15, - 0.75 - ], - [ - 20, - 2 - ] + [14, 0.4], + [15, 0.75], + [20, 2] ] } } @@ -2113,41 +1076,16 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "rail" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "rail"]], "paint": { "line-color": "#bbb", - "line-dasharray": [ - 0.2, - 8 - ], + "line-dasharray": [0.2, 8], "line-width": { "base": 1.4, "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] + [14.5, 0], + [15, 3], + [20, 8] ] } } @@ -2157,37 +1095,15 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "transit" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "transit"]], "paint": { "line-color": "#bbb", "line-width": { "base": 1.4, "stops": [ - [ - 14, - 0.4 - ], - [ - 15, - 0.75 - ], - [ - 20, - 2 - ] + [14, 0.4], + [15, 0.75], + [20, 2] ] } } @@ -2197,41 +1113,16 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "transit" - ] - ], + "filter": ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "transit"]], "paint": { "line-color": "#bbb", - "line-dasharray": [ - 0.2, - 8 - ], + "line-dasharray": [0.2, 8], "line-width": { "base": 1.4, "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] + [14.5, 0], + [15, 3], + [20, 8] ] } } @@ -2242,11 +1133,7 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 15, - "filter": [ - "==", - "oneway", - 1 - ], + "filter": ["==", "oneway", 1], "layout": { "icon-image": "arrow", "symbol-placement": "line" @@ -2258,11 +1145,7 @@ "source": "openmaptiles", "source-layer": "transportation", "minzoom": 15, - "filter": [ - "==", - "oneway", - -1 - ], + "filter": ["==", "oneway", -1], "layout": { "icon-image": "arrow", "symbol-placement": "line", @@ -2274,24 +1157,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "==", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["==", "ramp", 1], ["==", "brunnel", "bridge"]], "layout": { "line-join": "round" }, @@ -2300,22 +1166,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] + [12, 1], + [13, 3], + [14, 4], + [20, 15] ] } } @@ -2325,20 +1179,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "service", - "track" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "service", "track"]], "layout": { "line-join": "round" }, @@ -2347,18 +1188,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 15, - 1 - ], - [ - 16, - 4 - ], - [ - 20, - 11 - ] + [15, 1], + [16, 4], + [20, 11] ] } } @@ -2368,19 +1200,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "link" - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "link"], ["==", "brunnel", "bridge"]], "layout": { "line-join": "round" }, @@ -2389,22 +1209,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] + [12, 1], + [13, 3], + [14, 4], + [20, 15] ] } } @@ -2414,20 +1222,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "street", - "street_limited" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "street", "street_limited"]], "layout": { "line-join": "round" }, @@ -2435,35 +1230,17 @@ "line-color": "hsl(36, 6%, 74%)", "line-opacity": { "stops": [ - [ - 12, - 0 - ], - [ - 12.5, - 1 - ] + [12, 0], + [12.5, 1] ] }, "line-width": { "base": 1.2, "stops": [ - [ - 12, - 0.5 - ], - [ - 13, - 1 - ], - [ - 14, - 4 - ], - [ - 20, - 25 - ] + [12, 0.5], + [13, 1], + [14, 4], + [20, 25] ] } } @@ -2473,20 +1250,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "secondary", "tertiary"]], "layout": { "line-join": "round" }, @@ -2495,14 +1259,8 @@ "line-width": { "base": 1.2, "stops": [ - [ - 8, - 1.5 - ], - [ - 20, - 17 - ] + [8, 1.5], + [20, 17] ] } } @@ -2512,20 +1270,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "primary", "trunk"]], "layout": { "line-join": "round" }, @@ -2534,22 +1279,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] + [5, 0.4], + [6, 0.7], + [7, 1.75], + [20, 22] ] } } @@ -2559,24 +1292,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "!=", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["!=", "ramp", 1], ["==", "brunnel", "bridge"]], "layout": { "line-join": "round" }, @@ -2585,22 +1301,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] + [5, 0.4], + [6, 0.7], + [7, 1.75], + [20, 22] ] } } @@ -2610,24 +1314,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "==", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["==", "ramp", 1], ["==", "brunnel", "bridge"]], "layout": { "line-join": "round" }, @@ -2636,22 +1323,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] + [12.5, 0], + [13, 1.5], + [14, 2.5], + [20, 11.5] ] } } @@ -2661,20 +1336,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "service", - "track" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "service", "track"]], "layout": { "line-join": "round" }, @@ -2683,18 +1345,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 15.5, - 0 - ], - [ - 16, - 2 - ], - [ - 20, - 7.5 - ] + [15.5, 0], + [16, 2], + [20, 7.5] ] } } @@ -2704,19 +1357,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "link" - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "link"], ["==", "brunnel", "bridge"]], "layout": { "line-join": "round" }, @@ -2725,22 +1366,10 @@ "line-width": { "base": 1.2, "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] + [12.5, 0], + [13, 1.5], + [14, 2.5], + [20, 11.5] ] } } @@ -2750,19 +1379,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "minor" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "minor"]], "layout": { "line-join": "round" }, @@ -2771,18 +1388,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 2.5 - ], - [ - 20, - 18 - ] + [13.5, 0], + [14, 2.5], + [20, 18] ] } } @@ -2792,20 +1400,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "secondary", "tertiary"]], "layout": { "line-join": "round" }, @@ -2814,18 +1409,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 6.5, - 0 - ], - [ - 7, - 0.5 - ], - [ - 20, - 10 - ] + [6.5, 0], + [7, 0.5], + [20, 10] ] } } @@ -2835,20 +1421,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "brunnel", - "bridge" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], + "filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "primary", "trunk"]], "layout": { "line-join": "round" }, @@ -2857,18 +1430,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] + [5, 0], + [7, 1], + [20, 18] ] } } @@ -2878,24 +1442,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "!=", - "ramp", - 1 - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "motorway"], ["!=", "ramp", 1], ["==", "brunnel", "bridge"]], "layout": { "line-join": "round" }, @@ -2904,18 +1451,9 @@ "line-width": { "base": 1.2, "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] + [5, 0], + [7, 1], + [20, 18] ] } } @@ -2925,36 +1463,15 @@ "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 - ] + [14, 0.4], + [15, 0.75], + [20, 2] ] } } @@ -2964,40 +1481,16 @@ "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-dasharray": [0.2, 8], "line-width": { "base": 1.4, "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] + [14.5, 0], + [15, 3], + [20, 8] ] } } @@ -3007,36 +1500,15 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "transit" - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "transit"], ["==", "brunnel", "bridge"]], "paint": { "line-color": "#bbb", "line-width": { "base": 1.4, "stops": [ - [ - 14, - 0.4 - ], - [ - 15, - 0.75 - ], - [ - 20, - 2 - ] + [14, 0.4], + [15, 0.75], + [20, 2] ] } } @@ -3046,40 +1518,16 @@ "type": "line", "source": "openmaptiles", "source-layer": "transportation", - "filter": [ - "all", - [ - "==", - "class", - "transit" - ], - [ - "==", - "brunnel", - "bridge" - ] - ], + "filter": ["all", ["==", "class", "transit"], ["==", "brunnel", "bridge"]], "paint": { "line-color": "#bbb", - "line-dasharray": [ - 0.2, - 8 - ], + "line-dasharray": [0.2, 8], "line-width": { "base": 1.4, "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] + [14.5, 0], + [15, 3], + [20, 8] ] } } @@ -3096,38 +1544,17 @@ "fill-outline-color": { "base": 1, "stops": [ - [ - 13, - "hsla(35, 6%, 79%, 0.32)" - ], - [ - 14, - "hsl(35, 6%, 79%)" - ] + [13, "hsla(35, 6%, 79%, 0.32)"], + [14, "hsl(35, 6%, 79%)"] ] }, "fill-opacity": { "stops": [ - [ - 13, - 0 - ], - [ - 14, - 1 - ], - [ - 14.5, - 0 - ], - [ - 16.8, - 0 - ], - [ - 17, - 1 - ] + [13, 0], + [14, 1], + [14.5, 0], + [16.8, 0], + [17, 1] ] }, "fill-antialias": true @@ -3151,43 +1578,14 @@ }, "fill-extrusion-opacity": { "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 0.8 - ], - [ - 16.8, - 0.8 - ], - [ - 17, - 0.1 - ], - [ - 17.1, - 0 - ] + [13.5, 0], + [14, 0.8], + [16.8, 0.8], + [17, 0.1], + [17.1, 0] ] }, - "fill-extrusion-color": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - "#98c6ea", - 15, - "#64a0c8", - 20, - "#005293" - ] + "fill-extrusion-color": ["interpolate", ["linear"], ["zoom"], 13, "#98c6ea", 15, "#64a0c8", 20, "#005293"] } }, { @@ -3196,39 +1594,19 @@ "source": "openmaptiles", "source-layer": "boundary", "minzoom": 8, - "filter": [ - "all", - [ - "in", - "admin_level", - 3, - 4 - ] - ], + "filter": ["all", ["in", "admin_level", 3, 4]], "layout": { "line-join": "round" }, "paint": { "line-color": "#9e9cab", - "line-dasharray": [ - 5, - 1 - ], + "line-dasharray": [5, 1], "line-width": { "base": 1, "stops": [ - [ - 4, - 0.4 - ], - [ - 5, - 1 - ], - [ - 12, - 1.8 - ] + [4, 0.4], + [5, 1], + [12, 1.8] ] } } @@ -3239,18 +1617,7 @@ "source": "openmaptiles", "source-layer": "boundary", "maxzoom": 5, - "filter": [ - "all", - [ - "==", - "admin_level", - 2 - ], - [ - "!has", - "claimed_by" - ] - ], + "filter": ["all", ["==", "admin_level", 2], ["!has", "claimed_by"]], "layout": { "line-cap": "round", "line-join": "round" @@ -3260,31 +1627,16 @@ "line-opacity": { "base": 1, "stops": [ - [ - 0, - 0.4 - ], - [ - 4, - 1 - ] + [0, 0.4], + [4, 1] ] }, "line-width": { "base": 1, "stops": [ - [ - 3, - 1 - ], - [ - 5, - 1.2 - ], - [ - 12, - 3 - ] + [3, 1], + [5, 1.2], + [12, 3] ] } } @@ -3295,14 +1647,7 @@ "source": "openmaptiles", "source-layer": "boundary", "minzoom": 5, - "filter": [ - "all", - [ - "==", - "admin_level", - 2 - ] - ], + "filter": ["all", ["==", "admin_level", 2]], "layout": { "line-cap": "round", "line-join": "round" @@ -3312,31 +1657,16 @@ "line-opacity": { "base": 1, "stops": [ - [ - 0, - 0.4 - ], - [ - 4, - 1 - ] + [0, 0.4], + [4, 1] ] }, "line-width": { "base": 1, "stops": [ - [ - 3, - 1 - ], - [ - 5, - 1.2 - ], - [ - 12, - 3 - ] + [3, 1], + [5, 1.2], + [12, 3] ] } } @@ -3346,19 +1676,10 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "waterway", - "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" @@ -3374,16 +1695,10 @@ "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 }, @@ -3399,31 +1714,14 @@ "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, "visibility": "none" }, @@ -3440,36 +1738,14 @@ "source": "openmaptiles", "source-layer": "poi", "minzoom": 15, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - ">=", - "rank", - 7 - ], - [ - "<", - "rank", - 20 - ] - ], + "filter": ["all", ["==", "$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": { @@ -3485,36 +1761,14 @@ "source": "openmaptiles", "source-layer": "poi", "minzoom": 14, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - ">=", - "rank", - 1 - ], - [ - "<", - "rank", - 7 - ] - ], + "filter": ["all", ["==", "$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, "visibility": "visible" }, @@ -3530,28 +1784,14 @@ "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": 14 }, "paint": { @@ -3567,31 +1807,18 @@ "source": "openmaptiles", "source-layer": "transportation_name", "maxzoom": 24, - "filter": [ - "all" - ], + "filter": ["all"], "layout": { "symbol-placement": "line", "text-anchor": "center", "text-field": "{name}", - "text-font": [ - "Roboto Regular" - ], - "text-offset": [ - 0, - 0.15 - ], + "text-font": ["Roboto Regular"], + "text-offset": [0, 0.15], "text-size": { "base": 1, "stops": [ - [ - 13, - 12 - ], - [ - 14, - 13 - ] + [13, 12], + [14, 13] ] }, "visibility": "visible" @@ -3609,39 +1836,21 @@ "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" - ] + [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, @@ -3653,37 +1862,17 @@ "type": "symbol", "source": "openmaptiles", "source-layer": "place", - "filter": [ - "all", - [ - "in", - "class", - "hamlet", - "island", - "islet", - "neighbourhood", - "suburb", - "quarter" - ] - ], + "filter": ["all", ["in", "class", "hamlet", "island", "islet", "neighbourhood", "suburb", "quarter"]], "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 - ] + [12, 10], + [15, 14] ] }, "text-transform": "uppercase" @@ -3699,31 +1888,16 @@ "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 - ] + [10, 12], + [15, 22] ] } }, @@ -3738,49 +1912,25 @@ "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, - "" - ] + [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-offset": [0, 0], "text-size": { "base": 1.2, "stops": [ - [ - 7, - 12 - ], - [ - 11, - 16 - ] + [7, 12], + [11, 16] ] } }, @@ -3796,49 +1946,25 @@ "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, - "" - ] + [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-offset": [0, 0], "text-size": { "base": 1.2, "stops": [ - [ - 7, - 14 - ], - [ - 11, - 24 - ] + [7, 14], + [11, 24] ] }, "icon-allow-overlap": true, @@ -3857,29 +1983,14 @@ "source-layer": "place", "minzoom": 0, "maxzoom": 6, - "filter": [ - "all", - [ - "==", - "class", - "state" - ] - ], + "filter": ["all", ["==", "class", "state"]], "layout": { "text-field": "{name_en}", - "text-font": [ - "Roboto Condensed Italic" - ], + "text-font": ["Roboto Condensed Italic"], "text-size": { "stops": [ - [ - 4, - 11 - ], - [ - 6, - 15 - ] + [4, 11], + [6, 15] ] }, "text-transform": "uppercase" @@ -3896,35 +2007,15 @@ "source": "openmaptiles", "source-layer": "place", "minzoom": 2.5, - "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 - ] + [3, 11], + [7, 17] ] }, "text-transform": "none" @@ -3942,35 +2033,15 @@ "source": "openmaptiles", "source-layer": "place", "minzoom": 2, - "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 - ] + [2, 11], + [5, 17] ] }, "text-transform": "none" @@ -3988,35 +2059,15 @@ "source": "openmaptiles", "source-layer": "place", "minzoom": 1, - "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 - ] + [1, 11], + [4, 17] ] }, "text-transform": "none" @@ -4034,19 +2085,10 @@ "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"