diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-17 18:06:01 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-17 18:06:01 +0100 |
| commit | e6cff4e94e16deaebcfa986d5943caf4c69b7f6c (patch) | |
| tree | a54f4e2c260eec37b9bbb24d35903032550713ed /src/frontend | |
| parent | ef86a09ee8d8fc287b382cf9092af8726b44ceae (diff) | |
Implement showing traffic density with municipal data
Diffstat (limited to 'src/frontend')
| -rw-r--r-- | src/frontend/app/root.css | 11 | ||||
| -rw-r--r-- | src/frontend/app/routes/map.tsx | 5 | ||||
| -rw-r--r-- | src/frontend/public/maps/styles/openfreemap-dark.json | 3395 | ||||
| -rw-r--r-- | src/frontend/public/maps/styles/openfreemap-light.json | 4932 |
4 files changed, 7705 insertions, 638 deletions
diff --git a/src/frontend/app/root.css b/src/frontend/app/root.css index e832e96..6331140 100644 --- a/src/frontend/app/root.css +++ b/src/frontend/app/root.css @@ -54,8 +54,8 @@ --text-color: #ffffff; --subtitle-color: #bbbbbb; --border-color: #444444; - --button-background-color: #1e88e5; - --button-hover-background-color: #1565c0; + --button-background-color: #1f93f2; + --button-hover-background-color: #1872d9; --button-disabled-background-color: #555555; --star-color: #ffcc00; --message-background-color: #333333; @@ -144,16 +144,17 @@ body { } .navigation-bar__link svg { - width: 1.75rem; - height: 1.75rem; + width: 1.5rem; + height: 1.5rem; margin-bottom: 5px; fill: none; stroke-width: 2; } .navigation-bar__link span { - font-size: 14px; + font-size: 13px; line-height: 1; + font-family: system-ui; } .navigation-bar__link.active { diff --git a/src/frontend/app/routes/map.tsx b/src/frontend/app/routes/map.tsx index 40be174..d520e5a 100644 --- a/src/frontend/app/routes/map.tsx +++ b/src/frontend/app/routes/map.tsx @@ -2,7 +2,7 @@ import StopDataProvider, { type Stop } from "../data/StopDataProvider"; import "./map.css"; import { useEffect, useRef, useState } from "react"; -import { useApp } from "../AppContext"; +import { useApp } from "~/AppContext"; import Map, { AttributionControl, GeolocateControl, @@ -163,6 +163,7 @@ export default function StopMap() { <Layer id="stops" type="symbol" + minzoom={13} source="stops-source" layout={{ "icon-image": [ @@ -171,7 +172,7 @@ export default function StopMap() { `stop-${region}-cancelled`, `stop-${region}`, ], - "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.7, 18, 1.0], + "icon-size": ["interpolate", ["linear"], ["zoom"], 13, 0.4, 14, 0.7, 18, 1.0], "icon-allow-overlap": true, "icon-ignore-placement": true, }} diff --git a/src/frontend/public/maps/styles/openfreemap-dark.json b/src/frontend/public/maps/styles/openfreemap-dark.json index 8e78862..1a46976 100644 --- a/src/frontend/public/maps/styles/openfreemap-dark.json +++ b/src/frontend/public/maps/styles/openfreemap-dark.json @@ -1 +1,3394 @@ -{"version":8,"sources":{"ne2_shaded":{"maxzoom":6,"tileSize":256,"tiles":["https://tiles.openfreemap.org/natural_earth/ne2sr/{z}/{x}/{y}.png"],"type":"raster"},"openmaptiles":{"type":"vector","url":"https://tiles.openfreemap.org/planet"}},"sprite":"https://tiles.openfreemap.org/sprites/ofm_f384/ofm","glyphs":"https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":"rgb(242,243,240)"}},{"id":"park","type":"fill","source":"openmaptiles","source-layer":"park","filter":["match",["geometry-type"],["MultiPolygon","Polygon"],true,false],"paint":{"fill-color":"rgb(230, 233, 229)"}},{"id":"water","type":"fill","source":"openmaptiles","source-layer":"water","filter":["all",["match",["geometry-type"],["MultiPolygon","Polygon"],true,false],["!=",["get","brunnel"],"tunnel"]],"paint":{"fill-antialias":true,"fill-color":"rgb(194, 200, 202)"}},{"id":"landcover_ice_shelf","type":"fill","source":"openmaptiles","source-layer":"landcover","maxzoom":8,"filter":["all",["match",["geometry-type"],["MultiPolygon","Polygon"],true,false],["==",["get","subclass"],"ice_shelf"]],"paint":{"fill-color":"hsl(0,0%,98%)","fill-opacity":0.7}},{"id":"landcover_glacier","type":"fill","source":"openmaptiles","source-layer":"landcover","maxzoom":8,"filter":["all",["match",["geometry-type"],["MultiPolygon","Polygon"],true,false],["==",["get","subclass"],"glacier"]],"paint":{"fill-color":"hsl(0,0%,98%)","fill-opacity":["interpolate",["linear"],["zoom"],0,1,8,0.5]}},{"id":"landuse_residential","type":"fill","source":"openmaptiles","source-layer":"landuse","maxzoom":16,"filter":["all",["match",["geometry-type"],["MultiPolygon","Polygon"],true,false],["==",["get","class"],"residential"]],"paint":{"fill-color":"rgb(234, 234, 230)","fill-opacity":["interpolate",["exponential",0.6],["zoom"],8,0.8,9,0.6]}},{"id":"landcover_wood","type":"fill","source":"openmaptiles","source-layer":"landcover","minzoom":10,"filter":["all",["match",["geometry-type"],["MultiPolygon","Polygon"],true,false],["==",["get","class"],"wood"]],"paint":{"fill-color":"rgb(220,224,220)","fill-opacity":["interpolate",["linear"],["zoom"],8,0,12,1]}},{"id":"waterway","type":"line","source":"openmaptiles","source-layer":"waterway","filter":["match",["geometry-type"],["LineString","MultiLineString"],true,false],"paint":{"line-color":"hsl(195,17%,78%)"}},{"id":"building","type":"fill","source":"openmaptiles","source-layer":"building","minzoom":12,"paint":{"fill-antialias":true,"fill-color":"rgb(234, 234, 229)","fill-outline-color":"rgb(219, 219, 218)"}},{"id":"tunnel_motorway_casing","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":6,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["==",["get","brunnel"],"tunnel"],["==",["get","class"],"motorway"]]],"layout":{"line-cap":"butt","line-join":"miter"},"paint":{"line-color":"rgb(213, 213, 213)","line-opacity":1,"line-width":["interpolate",["exponential",1.4],["zoom"],5.8,0,6,3,20,40]}},{"id":"tunnel_motorway_inner","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":6,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["==",["get","brunnel"],"tunnel"],["==",["get","class"],"motorway"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"rgb(234,234,234)","line-width":["interpolate",["exponential",1.4],["zoom"],4,2,6,1.3,20,30]}},{"id":"aeroway-taxiway","type":"line","source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["match",["get","class"],["taxiway"],true,false],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsl(0,0%,88%)","line-opacity":1,"line-width":["interpolate",["exponential",1.55],["zoom"],13,1.8,20,20]}},{"id":"aeroway-runway-casing","type":"line","source":"openmaptiles","source-layer":"aeroway","minzoom":11,"filter":["match",["get","class"],["runway"],true,false],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsl(0,0%,88%)","line-opacity":1,"line-width":["interpolate",["exponential",1.5],["zoom"],11,6,17,55]}},{"id":"aeroway-area","type":"fill","source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["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]}},{"id":"aeroway-runway","type":"line","source":"openmaptiles","source-layer":"aeroway","minzoom":11,"filter":["all",["match",["get","class"],["runway"],true,false],["match",["geometry-type"],["LineString","MultiLineString"],true,false]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-opacity":1,"line-width":["interpolate",["exponential",1.5],["zoom"],11,4,17,50]}},{"id":"road_area_pier","type":"fill","source":"openmaptiles","source-layer":"transportation","filter":["all",["match",["geometry-type"],["MultiPolygon","Polygon"],true,false],["==",["get","class"],"pier"]],"paint":{"fill-antialias":true,"fill-color":"rgb(242,243,240)"}},{"id":"road_pier","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","class"],["pier"],true,false]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"rgb(242,243,240)","line-width":["interpolate",["exponential",1.2],["zoom"],15,1,17,4]}},{"id":"highway_path","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["==",["get","class"],"path"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"rgb(234, 234, 234)","line-opacity":0.9,"line-width":["interpolate",["exponential",1.2],["zoom"],13,1,20,10]}},{"id":"highway_minor","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":8,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","class"],["minor","service","track"],true,false]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsl(0,0%,88%)","line-opacity":0.9,"line-width":["interpolate",["exponential",1.55],["zoom"],13,1.8,20,20]}},{"id":"highway_major_casing","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":11,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","class"],["primary","secondary","tertiary","trunk"],true,false]],"layout":{"line-cap":"butt","line-join":"miter"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[12,0],"line-width":["interpolate",["exponential",1.3],["zoom"],10,3,20,23]}},{"id":"highway_major_inner","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":11,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","class"],["primary","secondary","tertiary","trunk"],true,false]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fff","line-width":["interpolate",["exponential",1.3],["zoom"],10,2,20,20]}},{"id":"highway_major_subtle","type":"line","source":"openmaptiles","source-layer":"transportation","maxzoom":11,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","class"],["primary","secondary","tertiary","trunk"],true,false]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsla(0,0%,85%,0.69)","line-width":2}},{"id":"highway_motorway_casing","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":6,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["match",["get","brunnel"],["bridge","tunnel"],false,true],["==",["get","class"],"motorway"]]],"layout":{"line-cap":"butt","line-join":"miter"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[2,0],"line-opacity":1,"line-width":["interpolate",["exponential",1.4],["zoom"],5.8,0,6,3,20,40]}},{"id":"highway_motorway_inner","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":6,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["match",["get","brunnel"],["bridge","tunnel"],false,true],["==",["get","class"],"motorway"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":["interpolate",["linear"],["zoom"],5.8,"hsla(0,0%,85%,0.53)",6,"#fff"],"line-width":["interpolate",["exponential",1.4],["zoom"],4,2,6,1.3,20,30]}},{"id":"highway_motorway_subtle","type":"line","source":"openmaptiles","source-layer":"transportation","maxzoom":6,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["==",["get","class"],"motorway"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsla(0,0%,85%,0.53)","line-width":["interpolate",["exponential",1.4],["zoom"],4,2,6,1.3]}},{"id":"railway_transit","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["==",["get","class"],"transit"],["match",["get","brunnel"],["tunnel"],false,true]]],"layout":{"line-join":"round"},"paint":{"line-color":"#dddddd","line-width":3}},{"id":"railway_transit_dashline","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["==",["get","class"],"transit"],["match",["get","brunnel"],["tunnel"],false,true]]],"layout":{"line-join":"round"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":2}},{"id":"railway_service","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["==",["get","class"],"rail"],["has","service"]]],"layout":{"line-join":"round"},"paint":{"line-color":"#dddddd","line-width":3}},{"id":"railway_service_dashline","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["==",["get","class"],"rail"],["has","service"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":2}},{"id":"railway","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["!",["has","service"]],["==",["get","class"],"rail"]]],"layout":{"line-join":"round"},"paint":{"line-color":"#dddddd","line-width":["interpolate",["exponential",1.3],["zoom"],16,3,20,7]}},{"id":"railway_dashline","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["!",["has","service"]],["==",["get","class"],"rail"]]],"layout":{"line-join":"round"},"paint":{"line-color":"#fafafa","line-dasharray":[3,3],"line-width":["interpolate",["exponential",1.3],["zoom"],16,2,20,6]}},{"id":"highway_motorway_bridge_casing","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":6,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["==",["get","brunnel"],"bridge"],["==",["get","class"],"motorway"]]],"layout":{"line-cap":"butt","line-join":"miter"},"paint":{"line-color":"rgb(213, 213, 213)","line-dasharray":[2,0],"line-opacity":1,"line-width":["interpolate",["exponential",1.4],["zoom"],5.8,0,6,5,20,45]}},{"id":"highway_motorway_bridge_inner","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":6,"filter":["all",["match",["geometry-type"],["LineString","MultiLineString"],true,false],["all",["==",["get","brunnel"],"bridge"],["==",["get","class"],"motorway"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":["interpolate",["linear"],["zoom"],5.8,"hsla(0,0%,85%,0.53)",6,"#fff"],"line-width":["interpolate",["exponential",1.4],["zoom"],4,2,6,1.3,20,30]}},{"id":"boundary_3","type":"line","source":"openmaptiles","source-layer":"boundary","minzoom":8,"filter":["all",[">=",["get","admin_level"],3],["<=",["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]}},{"id":"boundary_2","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["==",["get","admin_level"],2],["!=",["get","maritime"],1],["!=",["get","disputed"],1],["!",["has","claimed_by"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsl(0,0%,70%)","line-opacity":["interpolate",["linear"],["zoom"],0,0.4,4,1],"line-width":["interpolate",["linear"],["zoom"],3,1,5,1.2,12,3]}},{"id":"boundary_disputed","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["!=",["get","maritime"],1],["==",["get","disputed"],1]],"paint":{"line-color":"hsl(0,0%,70%)","line-dasharray":[1,2],"line-width":["interpolate",["linear"],["zoom"],3,1,5,1.2,12,3]}},{"id":"waterway_line_label","type":"symbol","source":"openmaptiles","source-layer":"waterway","minzoom":10,"filter":["match",["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"],"text-letter-spacing":0.2,"text-max-width":5,"text-size":14},"paint":{"text-color":"hsl(0,0%,66%)","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water_name_point_label","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["match",["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"],"text-letter-spacing":0.2,"text-max-width":5,"text-size":["interpolate",["linear"],["zoom"],0,10,8,14]},"paint":{"text-color":"#495e91","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"water_name_line_label","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["match",["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"],"text-letter-spacing":0.2,"text-max-width":5,"text-size":14},"paint":{"text-color":"#495e91","text-halo-color":"rgba(255,255,255,0.7)","text-halo-width":1.5}},{"id":"highway-name-path","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15.5,"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"],"text-rotation-alignment":"map","text-size":["interpolate",["linear"],["zoom"],13,12,14,13]},"paint":{"text-color":"hsl(30,0%,62%)","text-halo-color":"#f8f4f0","text-halo-width":0.5}},{"id":"highway-name-minor","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15,"filter":["all",["match",["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"],"text-rotation-alignment":"map","text-size":["interpolate",["linear"],["zoom"],13,12,14,13]},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-name-major","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":12.2,"filter":["match",["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]},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-width":1}},{"id":"highway-shield-non-us","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":11,"filter":["all",["<=",["get","ref_length"],6],["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","network"],["us-highway","us-interstate","us-state"],false,true]],"layout":{"icon-image":["concat","road_",["get","ref_length"]],"icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":["step",["zoom"],"point",11,"line"],"symbol-spacing":200,"text-field":["to-string",["get","ref"]],"text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10}},{"id":"highway-shield-us-interstate","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":11,"filter":["all",["<=",["get","ref_length"],6],["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","network"],["us-interstate"],true,false]],"layout":{"icon-image":["concat",["get","network"],"_",["get","ref_length"]],"icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":["step",["zoom"],"point",7,"line",8,"line"],"symbol-spacing":200,"text-field":["to-string",["get","ref"]],"text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10}},{"id":"road_shield_us","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":12,"filter":["all",["<=",["get","ref_length"],6],["match",["geometry-type"],["LineString","MultiLineString"],true,false],["match",["get","network"],["us-highway","us-state"],true,false]],"layout":{"icon-image":["concat",["get","network"],"_",["get","ref_length"]],"icon-rotation-alignment":"viewport","icon-size":1,"symbol-placement":["step",["zoom"],"point",11,"line"],"symbol-spacing":200,"text-field":["to-string",["get","ref"]],"text-font":["Noto Sans Regular"],"text-rotation-alignment":"viewport","text-size":10}},{"id":"airport","type":"symbol","source":"openmaptiles","source-layer":"aerodrome_label","minzoom":11,"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"],"text-max-width":9,"text-offset":[0,0.6],"text-optional":true,"text-padding":2,"text-size":12},"paint":{"text-color":"#666","text-halo-blur":0.5,"text-halo-color":"#ffffff","text-halo-width":1}},{"id":"label_other","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":8,"filter":["match",["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"],"text-letter-spacing":0.1,"text-max-width":9,"text-size":["interpolate",["linear"],["zoom"],8,9,12,10],"text-transform":"uppercase"},"paint":{"text-color":"#333","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_village","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":9,"filter":["==",["get","class"],"village"],"layout":{"icon-allow-overlap":true,"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"],"text-max-width":8,"text-size":["interpolate",["exponential",1.2],["zoom"],7,10,11,12]},"paint":{"text-color":"#000","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_town","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":6,"filter":["==",["get","class"],"town"],"layout":{"icon-allow-overlap":true,"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"],"text-max-width":8,"text-size":["interpolate",["exponential",1.2],["zoom"],7,12,11,14]},"paint":{"text-color":"#000","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_state","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":5,"maxzoom":8,"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"],"text-letter-spacing":0.2,"text-max-width":9,"text-size":["interpolate",["linear"],["zoom"],5,10,8,14],"text-transform":"uppercase"},"paint":{"text-color":"#333","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_city","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":3,"filter":["all",["==",["get","class"],"city"],["!=",["get","capital"],2]],"layout":{"icon-allow-overlap":true,"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"],"text-max-width":8,"text-offset":[0,-0.1],"text-size":["interpolate",["exponential",1.2],["zoom"],4,11,7,13,11,18]},"paint":{"text-color":"#000","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_city_capital","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":3,"filter":["all",["==",["get","class"],"city"],["==",["get","capital"],2]],"layout":{"icon-allow-overlap":true,"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"],"text-max-width":8,"text-offset":[0,-0.2],"text-size":["interpolate",["exponential",1.2],["zoom"],4,12,7,14,11,20]},"paint":{"text-color":"#000","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_country_3","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":2,"maxzoom":9,"filter":["all",["==",["get","class"],"country"],[">=",["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"],"text-max-width":6.25,"text-size":["interpolate",["linear"],["zoom"],3,9,7,17]},"paint":{"text-color":"#000","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_country_2","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":9,"filter":["all",["==",["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"],"text-max-width":6.25,"text-size":["interpolate",["linear"],["zoom"],2,9,5,17]},"paint":{"text-color":"#000","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"label_country_1","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":9,"filter":["all",["==",["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"],"text-max-width":6.25,"text-size":["interpolate",["linear"],["zoom"],1,9,4,17]},"paint":{"text-color":"#000","text-halo-blur":1,"text-halo-color":"#fff","text-halo-width":1}}]} +{ + "version": 8, + "sources": { + "openmaptiles": { + "type": "vector", + "url": "https://tiles.openfreemap.org/planet" + }, + "vigo_traffic": { + "type": "geojson", + "data": "/api/traffic" + } + }, + "sprite": "https://tiles.openfreemap.org/sprites/ofm_f384/ofm", + "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf", + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "rgb(242,243,240)" + } + }, + { + "id": "park", + "type": "fill", + "source": "openmaptiles", + "source-layer": "park", + "filter": [ + "match", + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + "paint": { + "fill-color": "rgb(230, 233, 229)" + } + }, + { + "id": "water", + "type": "fill", + "source": "openmaptiles", + "source-layer": "water", + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + [ + "!=", + [ + "get", + "brunnel" + ], + "tunnel" + ] + ], + "paint": { + "fill-antialias": true, + "fill-color": "rgb(194, 200, 202)" + } + }, + { + "id": "landcover_ice_shelf", + "type": "fill", + "source": "openmaptiles", + "source-layer": "landcover", + "maxzoom": 8, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + [ + "==", + [ + "get", + "subclass" + ], + "ice_shelf" + ] + ], + "paint": { + "fill-color": "hsl(0,0%,98%)", + "fill-opacity": 0.7 + } + }, + { + "id": "landcover_glacier", + "type": "fill", + "source": "openmaptiles", + "source-layer": "landcover", + "maxzoom": 8, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + [ + "==", + [ + "get", + "subclass" + ], + "glacier" + ] + ], + "paint": { + "fill-color": "hsl(0,0%,98%)", + "fill-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 0, + 1, + 8, + 0.5 + ] + } + }, + { + "id": "landuse_residential", + "type": "fill", + "source": "openmaptiles", + "source-layer": "landuse", + "maxzoom": 16, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + [ + "==", + [ + "get", + "class" + ], + "residential" + ] + ], + "paint": { + "fill-color": "rgb(234, 234, 230)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 0.6 + ], + [ + "zoom" + ], + 8, + 0.8, + 9, + 0.6 + ] + } + }, + { + "id": "landcover_wood", + "type": "fill", + "source": "openmaptiles", + "source-layer": "landcover", + "minzoom": 10, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + [ + "==", + [ + "get", + "class" + ], + "wood" + ] + ], + "paint": { + "fill-color": "rgb(220,224,220)", + "fill-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 8, + 0, + 12, + 1 + ] + } + }, + { + "id": "waterway", + "type": "line", + "source": "openmaptiles", + "source-layer": "waterway", + "filter": [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + "paint": { + "line-color": "hsl(195,17%,78%)" + } + }, + { + "id": "building", + "type": "fill", + "source": "openmaptiles", + "source-layer": "building", + "minzoom": 12, + "paint": { + "fill-antialias": true, + "fill-color": "rgb(234, 234, 229)", + "fill-outline-color": "rgb(219, 219, 218)" + } + }, + { + "id": "tunnel_motorway_casing", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 6, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "==", + [ + "get", + "brunnel" + ], + "tunnel" + ], + [ + "==", + [ + "get", + "class" + ], + "motorway" + ] + ] + ], + "layout": { + "line-cap": "butt", + "line-join": "miter" + }, + "paint": { + "line-color": "rgb(213, 213, 213)", + "line-opacity": 1, + "line-width": [ + "interpolate", + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], + 5.8, + 0, + 6, + 3, + 20, + 40 + ] + } + }, + { + "id": "tunnel_motorway_inner", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 6, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "==", + [ + "get", + "brunnel" + ], + "tunnel" + ], + [ + "==", + [ + "get", + "class" + ], + "motorway" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "rgb(234,234,234)", + "line-width": [ + "interpolate", + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], + 4, + 2, + 6, + 1.3, + 20, + 30 + ] + } + }, + { + "id": "aeroway-taxiway", + "type": "line", + "source": "openmaptiles", + "source-layer": "aeroway", + "minzoom": 12, + "filter": [ + "match", + [ + "get", + "class" + ], + [ + "taxiway" + ], + true, + false + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0,0%,88%)", + "line-opacity": 1, + "line-width": [ + "interpolate", + [ + "exponential", + 1.55 + ], + [ + "zoom" + ], + 13, + 1.8, + 20, + 20 + ] + } + }, + { + "id": "aeroway-runway-casing", + "type": "line", + "source": "openmaptiles", + "source-layer": "aeroway", + "minzoom": 11, + "filter": [ + "match", + [ + "get", + "class" + ], + [ + "runway" + ], + true, + false + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0,0%,88%)", + "line-opacity": 1, + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 11, + 6, + 17, + 55 + ] + } + }, + { + "id": "aeroway-area", + "type": "fill", + "source": "openmaptiles", + "source-layer": "aeroway", + "minzoom": 4, + "filter": [ + "all", + [ + "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 + ] + } + }, + { + "id": "aeroway-runway", + "type": "line", + "source": "openmaptiles", + "source-layer": "aeroway", + "minzoom": 11, + "filter": [ + "all", + [ + "match", + [ + "get", + "class" + ], + [ + "runway" + ], + true, + false + ], + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "rgba(255, 255, 255, 1)", + "line-opacity": 1, + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 11, + 4, + 17, + 50 + ] + } + }, + { + "id": "road_area_pier", + "type": "fill", + "source": "openmaptiles", + "source-layer": "transportation", + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + [ + "==", + [ + "get", + "class" + ], + "pier" + ] + ], + "paint": { + "fill-antialias": true, + "fill-color": "rgb(242,243,240)" + } + }, + { + "id": "road_pier", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "class" + ], + [ + "pier" + ], + true, + false + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "rgb(242,243,240)", + "line-width": [ + "interpolate", + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], + 15, + 1, + 17, + 4 + ] + } + }, + { + "id": "highway_path", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "==", + [ + "get", + "class" + ], + "path" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "rgb(234, 234, 234)", + "line-opacity": 0.9, + "line-width": [ + "interpolate", + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], + 13, + 1, + 20, + 10 + ] + } + }, + { + "id": "highway_minor", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 8, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "class" + ], + [ + "minor", + "service", + "track" + ], + true, + false + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0,0%,88%)", + "line-opacity": 0.9, + "line-width": [ + "interpolate", + [ + "exponential", + 1.55 + ], + [ + "zoom" + ], + 13, + 1.8, + 20, + 20 + ] + } + }, + { + "id": "highway_major_casing", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 11, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], + true, + false + ] + ], + "layout": { + "line-cap": "butt", + "line-join": "miter" + }, + "paint": { + "line-color": "rgb(213, 213, 213)", + "line-dasharray": [ + 12, + 0 + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], + 10, + 3, + 20, + 23 + ] + } + }, + { + "id": "highway_major_inner", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 11, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], + true, + false + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "#fff", + "line-width": [ + "interpolate", + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], + 10, + 2, + 20, + 20 + ] + } + }, + { + "id": "highway_major_subtle", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "maxzoom": 11, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], + true, + false + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "hsla(0,0%,85%,0.69)", + "line-width": 2 + } + }, + { + "id": "highway_motorway_casing", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 6, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "match", + [ + "get", + "brunnel" + ], + [ + "bridge", + "tunnel" + ], + false, + true + ], + [ + "==", + [ + "get", + "class" + ], + "motorway" + ] + ] + ], + "layout": { + "line-cap": "butt", + "line-join": "miter" + }, + "paint": { + "line-color": "rgb(213, 213, 213)", + "line-dasharray": [ + 2, + 0 + ], + "line-opacity": 1, + "line-width": [ + "interpolate", + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], + 5.8, + 0, + 6, + 3, + 20, + 40 + ] + } + }, + { + "id": "highway_motorway_inner", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 6, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "match", + [ + "get", + "brunnel" + ], + [ + "bridge", + "tunnel" + ], + false, + true + ], + [ + "==", + [ + "get", + "class" + ], + "motorway" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 5.8, + "hsla(0,0%,85%,0.53)", + 6, + "#fff" + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], + 4, + 2, + 6, + 1.3, + 20, + 30 + ] + } + }, + { + "id": "highway_motorway_subtle", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "maxzoom": 6, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "==", + [ + "get", + "class" + ], + "motorway" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "hsla(0,0%,85%,0.53)", + "line-width": [ + "interpolate", + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], + 4, + 2, + 6, + 1.3 + ] + } + }, + { + "id": "railway_transit", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 16, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "==", + [ + "get", + "class" + ], + "transit" + ], + [ + "match", + [ + "get", + "brunnel" + ], + [ + "tunnel" + ], + false, + true + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#dddddd", + "line-width": 3 + } + }, + { + "id": "railway_transit_dashline", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 16, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "==", + [ + "get", + "class" + ], + "transit" + ], + [ + "match", + [ + "get", + "brunnel" + ], + [ + "tunnel" + ], + false, + true + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#fafafa", + "line-dasharray": [ + 3, + 3 + ], + "line-width": 2 + } + }, + { + "id": "railway_service", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 16, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "==", + [ + "get", + "class" + ], + "rail" + ], + [ + "has", + "service" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#dddddd", + "line-width": 3 + } + }, + { + "id": "railway_service_dashline", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 16, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "==", + [ + "get", + "class" + ], + "rail" + ], + [ + "has", + "service" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#fafafa", + "line-dasharray": [ + 3, + 3 + ], + "line-width": 2 + } + }, + { + "id": "railway", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 13, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "!", + [ + "has", + "service" + ] + ], + [ + "==", + [ + "get", + "class" + ], + "rail" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#dddddd", + "line-width": [ + "interpolate", + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], + 16, + 3, + 20, + 7 + ] + } + }, + { + "id": "railway_dashline", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 13, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "!", + [ + "has", + "service" + ] + ], + [ + "==", + [ + "get", + "class" + ], + "rail" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#fafafa", + "line-dasharray": [ + 3, + 3 + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], + 16, + 2, + 20, + 6 + ] + } + }, + { + "id": "highway_motorway_bridge_casing", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 6, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], + [ + "==", + [ + "get", + "class" + ], + "motorway" + ] + ] + ], + "layout": { + "line-cap": "butt", + "line-join": "miter" + }, + "paint": { + "line-color": "rgb(213, 213, 213)", + "line-dasharray": [ + 2, + 0 + ], + "line-opacity": 1, + "line-width": [ + "interpolate", + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], + 5.8, + 0, + 6, + 5, + 20, + 45 + ] + } + }, + { + "id": "highway_motorway_bridge_inner", + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "minzoom": 6, + "filter": [ + "all", + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "all", + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], + [ + "==", + [ + "get", + "class" + ], + "motorway" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 5.8, + "hsla(0,0%,85%,0.53)", + 6, + "#fff" + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], + 4, + 2, + 6, + 1.3, + 20, + 30 + ] + } + }, + { + "id": "boundary_3", + "type": "line", + "source": "openmaptiles", + "source-layer": "boundary", + "minzoom": 8, + "filter": [ + "all", + [ + ">=", + [ + "get", + "admin_level" + ], + 3 + ], + [ + "<=", + [ + "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 + ] + } + }, + { + "id": "boundary_2", + "type": "line", + "source": "openmaptiles", + "source-layer": "boundary", + "filter": [ + "all", + [ + "==", + [ + "get", + "admin_level" + ], + 2 + ], + [ + "!=", + [ + "get", + "maritime" + ], + 1 + ], + [ + "!=", + [ + "get", + "disputed" + ], + 1 + ], + [ + "!", + [ + "has", + "claimed_by" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0,0%,70%)", + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 0, + 0.4, + 4, + 1 + ], + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 3, + 1, + 5, + 1.2, + 12, + 3 + ] + } + }, + { + "id": "boundary_disputed", + "type": "line", + "source": "openmaptiles", + "source-layer": "boundary", + "filter": [ + "all", + [ + "!=", + [ + "get", + "maritime" + ], + 1 + ], + [ + "==", + [ + "get", + "disputed" + ], + 1 + ] + ], + "paint": { + "line-color": "hsl(0,0%,70%)", + "line-dasharray": [ + 1, + 2 + ], + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 3, + 1, + 5, + 1.2, + 12, + 3 + ] + } + }, + { + "id": "waterway_line_label", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "waterway", + "minzoom": 10, + "filter": [ + "match", + [ + "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" + ], + "text-letter-spacing": 0.2, + "text-max-width": 5, + "text-size": 14 + }, + "paint": { + "text-color": "hsl(0,0%,66%)", + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 1.5 + } + }, + { + "id": "water_name_point_label", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "water_name", + "filter": [ + "match", + [ + "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" + ], + "text-letter-spacing": 0.2, + "text-max-width": 5, + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 0, + 10, + 8, + 14 + ] + }, + "paint": { + "text-color": "#495e91", + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 1.5 + } + }, + { + "id": "water_name_line_label", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "water_name", + "filter": [ + "match", + [ + "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" + ], + "text-letter-spacing": 0.2, + "text-max-width": 5, + "text-size": 14 + }, + "paint": { + "text-color": "#495e91", + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 1.5 + } + }, + { + "id": "highway-name-path", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "transportation_name", + "minzoom": 15.5, + "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" + ], + "text-rotation-alignment": "map", + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 13, + 12, + 14, + 13 + ] + }, + "paint": { + "text-color": "hsl(30,0%,62%)", + "text-halo-color": "#f8f4f0", + "text-halo-width": 0.5 + } + }, + { + "id": "highway-name-minor", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "transportation_name", + "minzoom": 15, + "filter": [ + "all", + [ + "match", + [ + "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" + ], + "text-rotation-alignment": "map", + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 13, + 12, + 14, + 13 + ] + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-width": 1 + } + }, + { + "id": "highway-name-major", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "transportation_name", + "minzoom": 12.2, + "filter": [ + "match", + [ + "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 + ] + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-width": 1 + } + }, + { + "id": "highway-shield-non-us", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "transportation_name", + "minzoom": 11, + "filter": [ + "all", + [ + "<=", + [ + "get", + "ref_length" + ], + 6 + ], + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "network" + ], + [ + "us-highway", + "us-interstate", + "us-state" + ], + false, + true + ] + ], + "layout": { + "icon-image": [ + "concat", + "road_", + [ + "get", + "ref_length" + ] + ], + "icon-rotation-alignment": "viewport", + "icon-size": 1, + "symbol-placement": [ + "step", + [ + "zoom" + ], + "point", + 11, + "line" + ], + "symbol-spacing": 200, + "text-field": [ + "to-string", + [ + "get", + "ref" + ] + ], + "text-font": [ + "Noto Sans Regular" + ], + "text-rotation-alignment": "viewport", + "text-size": 10 + } + }, + { + "id": "highway-shield-us-interstate", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "transportation_name", + "minzoom": 11, + "filter": [ + "all", + [ + "<=", + [ + "get", + "ref_length" + ], + 6 + ], + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "network" + ], + [ + "us-interstate" + ], + true, + false + ] + ], + "layout": { + "icon-image": [ + "concat", + [ + "get", + "network" + ], + "_", + [ + "get", + "ref_length" + ] + ], + "icon-rotation-alignment": "viewport", + "icon-size": 1, + "symbol-placement": [ + "step", + [ + "zoom" + ], + "point", + 7, + "line", + 8, + "line" + ], + "symbol-spacing": 200, + "text-field": [ + "to-string", + [ + "get", + "ref" + ] + ], + "text-font": [ + "Noto Sans Regular" + ], + "text-rotation-alignment": "viewport", + "text-size": 10 + } + }, + { + "id": "road_shield_us", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "transportation_name", + "minzoom": 12, + "filter": [ + "all", + [ + "<=", + [ + "get", + "ref_length" + ], + 6 + ], + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "network" + ], + [ + "us-highway", + "us-state" + ], + true, + false + ] + ], + "layout": { + "icon-image": [ + "concat", + [ + "get", + "network" + ], + "_", + [ + "get", + "ref_length" + ] + ], + "icon-rotation-alignment": "viewport", + "icon-size": 1, + "symbol-placement": [ + "step", + [ + "zoom" + ], + "point", + 11, + "line" + ], + "symbol-spacing": 200, + "text-field": [ + "to-string", + [ + "get", + "ref" + ] + ], + "text-font": [ + "Noto Sans Regular" + ], + "text-rotation-alignment": "viewport", + "text-size": 10 + } + }, + { + "id": "airport", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "aerodrome_label", + "minzoom": 11, + "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" + ], + "text-max-width": 9, + "text-offset": [ + 0, + 0.6 + ], + "text-optional": true, + "text-padding": 2, + "text-size": 12 + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, + { + "id": "label_other", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "minzoom": 8, + "filter": [ + "match", + [ + "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" + ], + "text-letter-spacing": 0.1, + "text-max-width": 9, + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 8, + 9, + 12, + 10 + ], + "text-transform": "uppercase" + }, + "paint": { + "text-color": "#333", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_village", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "minzoom": 9, + "filter": [ + "==", + [ + "get", + "class" + ], + "village" + ], + "layout": { + "icon-allow-overlap": true, + "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" + ], + "text-max-width": 8, + "text-size": [ + "interpolate", + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], + 7, + 10, + 11, + 12 + ] + }, + "paint": { + "text-color": "#000", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_town", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "minzoom": 6, + "filter": [ + "==", + [ + "get", + "class" + ], + "town" + ], + "layout": { + "icon-allow-overlap": true, + "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" + ], + "text-max-width": 8, + "text-size": [ + "interpolate", + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], + 7, + 12, + 11, + 14 + ] + }, + "paint": { + "text-color": "#000", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_state", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "minzoom": 5, + "maxzoom": 8, + "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" + ], + "text-letter-spacing": 0.2, + "text-max-width": 9, + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 5, + 10, + 8, + 14 + ], + "text-transform": "uppercase" + }, + "paint": { + "text-color": "#333", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_city", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "minzoom": 3, + "filter": [ + "all", + [ + "==", + [ + "get", + "class" + ], + "city" + ], + [ + "!=", + [ + "get", + "capital" + ], + 2 + ] + ], + "layout": { + "icon-allow-overlap": true, + "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" + ], + "text-max-width": 8, + "text-offset": [ + 0, + -0.1 + ], + "text-size": [ + "interpolate", + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], + 4, + 11, + 7, + 13, + 11, + 18 + ] + }, + "paint": { + "text-color": "#000", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_city_capital", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "minzoom": 3, + "filter": [ + "all", + [ + "==", + [ + "get", + "class" + ], + "city" + ], + [ + "==", + [ + "get", + "capital" + ], + 2 + ] + ], + "layout": { + "icon-allow-overlap": true, + "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" + ], + "text-max-width": 8, + "text-offset": [ + 0, + -0.2 + ], + "text-size": [ + "interpolate", + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], + 4, + 12, + 7, + 14, + 11, + 20 + ] + }, + "paint": { + "text-color": "#000", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_country_3", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "minzoom": 2, + "maxzoom": 9, + "filter": [ + "all", + [ + "==", + [ + "get", + "class" + ], + "country" + ], + [ + ">=", + [ + "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" + ], + "text-max-width": 6.25, + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 3, + 9, + 7, + 17 + ] + }, + "paint": { + "text-color": "#000", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_country_2", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "maxzoom": 9, + "filter": [ + "all", + [ + "==", + [ + "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" + ], + "text-max-width": 6.25, + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 2, + 9, + 5, + 17 + ] + }, + "paint": { + "text-color": "#000", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "label_country_1", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "place", + "maxzoom": 9, + "filter": [ + "all", + [ + "==", + [ + "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" + ], + "text-max-width": 6.25, + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 1, + 9, + 4, + 17 + ] + }, + "paint": { + "text-color": "#000", + "text-halo-blur": 1, + "text-halo-color": "#fff", + "text-halo-width": 1 + } + }, + { + "id": "vigo_traffic", + "type": "line", + "source": "vigo_traffic", + "layout": {}, + "paint": { + "line-opacity": [ + "interpolate", + ["linear"], + ["get", "zoom"], + 0, 11, + 14, 1, + 16, 0.8, + 18, 0.6, + 22, 0.6 + ], + "line-color": [ + "match", + [ + "get", + "style" + ], + "#CONGESTION", + "hsl(70.7 100% 38%)", + + "#MUYDENSO", + "hsl(36.49 100% 50%)", + + "#DENSO", + "hsl(47.61 100% 49%)", + + "#FLUIDO", + "hsl(83.9 100% 40%)", + + "#MUYFLUIDO", + "hsl(161.25 100% 42%)", + + "hsl(0.0 0% 0%)" + ], + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 14, + 2, + 18, + 4 + ] + } + } + ] +} diff --git a/src/frontend/public/maps/styles/openfreemap-light.json b/src/frontend/public/maps/styles/openfreemap-light.json index cb528da..0141ce4 100644 --- a/src/frontend/public/maps/styles/openfreemap-light.json +++ b/src/frontend/public/maps/styles/openfreemap-light.json @@ -4,6 +4,10 @@ "openmaptiles": { "type": "vector", "url": "https://tiles.openfreemap.org/planet" + }, + "vigo_traffic": { + "type": "geojson", + "data": "/api/traffic" } }, "sprite": "https://tiles.openfreemap.org/sprites/ofm_f384/ofm", @@ -21,10 +25,29 @@ "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 + ] } }, { @@ -34,16 +57,26 @@ "source-layer": "landuse", "filter": [ "match", - ["get", "class"], - ["neighbourhood", "residential"], + [ + "get", + "class" + ], + [ + "neighbourhood", + "residential" + ], true, false ], "paint": { "fill-color": [ "interpolate", - ["linear"], - ["zoom"], + [ + "linear" + ], + [ + "zoom" + ], 12, "hsla(30,19%,90%,0.4)", 16, @@ -57,12 +90,23 @@ "source": "openmaptiles", "source-layer": "landuse", "maxzoom": 10, - "filter": ["==", ["get", "class"], "suburb"], + "filter": [ + "==", + [ + "get", + "class" + ], + "suburb" + ], "paint": { "fill-color": [ "interpolate", - ["linear"], - ["zoom"], + [ + "linear" + ], + [ + "zoom" + ], 8, "hsla(30,19%,90%,0.4)", 10, @@ -77,8 +121,26 @@ "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)" @@ -91,11 +153,29 @@ "source-layer": "landuse", "filter": [ "all", - ["match", ["geometry-type"], ["MultiPolygon", "Polygon"], true, false], [ "match", - ["get", "class"], - ["dam", "garages", "industrial"], + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], + true, + false + ], + [ + "match", + [ + "get", + "class" + ], + [ + "dam", + "garages", + "industrial" + ], true, false ] @@ -109,7 +189,14 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": ["==", ["get", "class"], "cemetery"], + "filter": [ + "==", + [ + "get", + "class" + ], + "cemetery" + ], "paint": { "fill-color": "#e0e4dd" } @@ -119,7 +206,14 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": ["==", ["get", "class"], "hospital"], + "filter": [ + "==", + [ + "get", + "class" + ], + "hospital" + ], "paint": { "fill-color": "#fde" } @@ -129,7 +223,14 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": ["==", ["get", "class"], "school"], + "filter": [ + "==", + [ + "get", + "class" + ], + "school" + ], "paint": { "fill-color": "#f0e8f8" } @@ -139,7 +240,14 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landuse", - "filter": ["==", ["get", "class"], "railway"], + "filter": [ + "==", + [ + "get", + "class" + ], + "railway" + ], "paint": { "fill-color": "hsla(30,19%,90%,0.4)" } @@ -151,8 +259,13 @@ "source-layer": "park", "filter": [ "match", - ["geometry-type"], - ["MultiPolygon", "Polygon"], + [ + "geometry-type" + ], + [ + "MultiPolygon", + "Polygon" + ], true, false ], @@ -160,8 +273,13 @@ "fill-color": "#d8e8c8", "fill-opacity": [ "interpolate", - ["exponential", 1.8], - ["zoom"], + [ + "exponential", + 1.8 + ], + [ + "zoom" + ], 9, 0.5, 12, @@ -174,9 +292,24 @@ "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)" @@ -187,7 +320,14 @@ "type": "fill", "source": "openmaptiles", "source-layer": "landcover", - "filter": ["==", ["get", "class"], "grass"], + "filter": [ + "==", + [ + "get", + "class" + ], + "grass" + ], "paint": { "fill-color": "#d8e8c8", "fill-opacity": 1 @@ -198,7 +338,14 @@ "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 @@ -212,19 +359,47 @@ "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" }, "paint": { "line-color": "#a0c8f0", - "line-dasharray": [2, 4], + "line-dasharray": [ + 2, + 4 + ], "line-width": [ "interpolate", - ["exponential", 1.3], - ["zoom"], + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], 13, 0.5, 20, @@ -239,8 +414,28 @@ "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" @@ -249,8 +444,13 @@ "line-color": "#a0c8f0", "line-width": [ "interpolate", - ["exponential", 1.3], - ["zoom"], + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], 13, 0.5, 20, @@ -265,19 +465,47 @@ "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" }, "paint": { "line-color": "#a0c8f0", - "line-dasharray": [4, 3], + "line-dasharray": [ + 4, + 3 + ], "line-width": [ "interpolate", - ["exponential", 1.3], - ["zoom"], + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], 13, 0.5, 20, @@ -292,9 +520,35 @@ "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" @@ -303,8 +557,13 @@ "line-color": "#a0c8f0", "line-width": [ "interpolate", - ["exponential", 1.3], - ["zoom"], + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], 13, 0.5, 20, @@ -319,20 +578,54 @@ "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" }, "paint": { "line-color": "#a0c8f0", - "line-dasharray": [4, 3], + "line-dasharray": [ + 4, + 3 + ], "line-width": [ "interpolate", - ["exponential", 1.3], - ["zoom"], + [ + "exponential", + 1.3 + ], + [ + "zoom" + ], 13, 0.5, 20, @@ -347,9 +640,30 @@ "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" @@ -358,8 +672,13 @@ "line-color": "#a0c8f0", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 10, 0.8, 20, @@ -374,20 +693,49 @@ "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" }, "paint": { "line-color": "#a0c8f0", - "line-dasharray": [3, 2.5], + "line-dasharray": [ + 3, + 2.5 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 10, 0.8, 20, @@ -402,8 +750,22 @@ "source-layer": "water", "filter": [ "all", - ["!=", ["get", "intermittent"], 1], - ["!=", ["get", "brunnel"], "tunnel"] + [ + "!=", + [ + "get", + "intermittent" + ], + 1 + ], + [ + "!=", + [ + "get", + "brunnel" + ], + "tunnel" + ] ], "paint": { "fill-color": "#AECFE2" @@ -414,7 +776,14 @@ "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 @@ -425,10 +794,29 @@ "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 + ] } }, { @@ -436,7 +824,14 @@ "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 @@ -451,8 +846,12 @@ "fill-antialias": true, "fill-color": [ "interpolate", - ["linear"], - ["zoom"], + [ + "linear" + ], + [ + "zoom" + ], 15.5, "#f2eae2", 16, @@ -467,16 +866,44 @@ "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"], + [ + "linear" + ], + [ + "zoom" + ], 14, - ["literal", [0, 0]], + [ + "literal", + [ + 0, + 0 + ] + ], 16, - ["literal", [-2, -2]] + [ + "literal", + [ + -2, + -2 + ] + ] ] } }, @@ -487,19 +914,46 @@ "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" }, "paint": { "line-color": "#cfcdca", - "line-dasharray": [0.5, 0.25], + "line-dasharray": [ + 0.5, + 0.25 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 15, 1, 16, @@ -516,20 +970,49 @@ "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" }, "paint": { "line-color": "rgba(200, 147, 102, 1)", - "line-dasharray": [0.5, 0.25], + "line-dasharray": [ + 0.5, + 0.25 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 1, 13, @@ -548,20 +1031,54 @@ "source-layer": "transportation", "filter": [ "all", - ["==", ["get", "brunnel"], "tunnel"], - ["==", ["get", "class"], "minor"] + [ + "==", + [ + "get", + "brunnel" + ], + "tunnel" + ], + [ + "==", + [ + "get", + "class" + ], + "minor" + ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#cfcdca", - "line-dasharray": [0.5, 0.25], - "line-opacity": ["interpolate", ["linear"], ["zoom"], 12, 0, 12.5, 1], + "line-dasharray": [ + 0.5, + 0.25 + ], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 12, + 0, + 12.5, + 1 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 0.5, 13, @@ -580,27 +1097,57 @@ "source-layer": "transportation", "filter": [ "all", - ["==", ["get", "brunnel"], "tunnel"], + [ + "==", + [ + "get", + "brunnel" + ], + "tunnel" + ], [ "match", - ["get", "class"], - ["primary", "secondary", "tertiary", "trunk"], + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], true, false ], - ["==", ["get", "ramp"], 1] + [ + "==", + [ + "get", + "ramp" + ], + 1 + ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#e9ac77", - "line-dasharray": [0.5, 0.25], + "line-dasharray": [ + 0.5, + 0.25 + ], "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 1, 13, @@ -619,21 +1166,55 @@ "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" }, "paint": { "line-color": "#e9ac77", - "line-dasharray": [0.5, 0.25], + "line-dasharray": [ + 0.5, + 0.25 + ], "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 8, 1.5, 20, @@ -648,9 +1229,35 @@ "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" @@ -659,8 +1266,13 @@ "line-color": "#e9ac77", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 5, 0.4, 6, @@ -679,20 +1291,49 @@ "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" }, "paint": { "line-color": "#e9ac77", - "line-dasharray": [0.5, 0.25], + "line-dasharray": [ + 0.5, + 0.25 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 5, 0.4, 6, @@ -713,21 +1354,48 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "brunnel"], "tunnel"], - ["==", ["get", "class"], "path"] + [ + "==", + [ + "get", + "brunnel" + ], + "tunnel" + ], + [ + "==", + [ + "get", + "class" + ], + "path" + ] ], "paint": { "line-color": "#cba", - "line-dasharray": [1.5, 0.75], + "line-dasharray": [ + 1.5, + 0.75 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 15, 1.2, 20, @@ -742,9 +1410,30 @@ "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" @@ -753,8 +1442,13 @@ "line-color": "rgba(244, 209, 158, 1)", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12.5, 0, 13, @@ -773,8 +1467,27 @@ "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" @@ -783,8 +1496,13 @@ "line-color": "#fff", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 15.5, 0, 16, @@ -801,15 +1519,37 @@ "source-layer": "transportation", "filter": [ "all", - ["==", ["get", "brunnel"], "tunnel"], + [ + "==", + [ + "get", + "brunnel" + ], + "tunnel" + ], [ "match", - ["get", "class"], - ["primary", "secondary", "tertiary", "trunk"], + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], true, false ], - ["==", ["get", "ramp"], 1] + [ + "==", + [ + "get", + "ramp" + ], + 1 + ] ], "layout": { "line-join": "round" @@ -818,8 +1558,13 @@ "line-color": "#fff4c6", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12.5, 0, 13, @@ -838,8 +1583,22 @@ "source-layer": "transportation", "filter": [ "all", - ["==", ["get", "brunnel"], "tunnel"], - ["==", ["get", "class"], "minor"] + [ + "==", + [ + "get", + "brunnel" + ], + "tunnel" + ], + [ + "==", + [ + "get", + "class" + ], + "minor" + ] ], "layout": { "line-join": "round" @@ -849,8 +1608,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 13.5, 0, 14, @@ -867,9 +1631,35 @@ "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" @@ -878,8 +1668,13 @@ "line-color": "#fff4c6", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 7, @@ -896,9 +1691,35 @@ "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" @@ -907,8 +1728,13 @@ "line-color": "#fff4c6", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 7, @@ -925,9 +1751,30 @@ "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" @@ -936,8 +1783,13 @@ "line-color": "#ffdaa6", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 7, @@ -954,16 +1806,38 @@ "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-dasharray": [ + 2, + 2 + ], "line-width": [ "interpolate", - ["exponential", 1.4], - ["zoom"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14, 0.4, 15, @@ -978,13 +1852,27 @@ "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" }, "paint": { "line-color": "rgba(108, 159, 182, 1)", - "line-dasharray": [2, 2], + "line-dasharray": [ + 2, + 2 + ], "line-width": 1.1 } }, @@ -994,7 +1882,18 @@ "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" @@ -1004,8 +1903,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.5], - ["zoom"], + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], 11, 2, 17, @@ -1019,7 +1923,18 @@ "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" @@ -1029,8 +1944,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.5], - ["zoom"], + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], 11, 5, 17, @@ -1046,12 +1966,47 @@ "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 + ] } }, { @@ -1062,11 +2017,27 @@ "minzoom": 4, "filter": [ "all", - ["match", ["get", "class"], ["taxiway"], true, false], [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "get", + "class" + ], + [ + "taxiway" + ], + true, + false + ], + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ] @@ -1077,11 +2048,28 @@ }, "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"], + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], 11, 1, 17, @@ -1097,11 +2085,27 @@ "minzoom": 4, "filter": [ "all", - ["match", ["get", "class"], ["runway"], true, false], [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "get", + "class" + ], + [ + "runway" + ], + true, + false + ], + [ + "match", + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ] @@ -1112,11 +2116,28 @@ }, "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"], + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], 11, 4, 17, @@ -1131,8 +2152,26 @@ "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, @@ -1148,12 +2187,28 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["match", ["get", "class"], ["pier"], true, false] + [ + "match", + [ + "get", + "class" + ], + [ + "pier" + ], + true, + false + ] ], "layout": { "line-cap": "round", @@ -1163,8 +2218,13 @@ "line-color": "#f8f4f0", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 15, 1, 17, @@ -1179,8 +2239,30 @@ "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, @@ -1196,9 +2278,35 @@ "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", @@ -1209,8 +2317,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 1, 13, @@ -1230,15 +2343,42 @@ "minzoom": 13, "filter": [ "all", - ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], [ "match", - ["get", "class"], - ["primary", "secondary", "tertiary", "trunk"], + [ + "get", + "brunnel" + ], + [ + "bridge", + "tunnel" + ], + false, + true + ], + [ + "match", + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], true, false ], - ["==", ["get", "ramp"], 1] + [ + "==", + [ + "get", + "ramp" + ], + 1 + ] ], "layout": { "line-cap": "round", @@ -1249,8 +2389,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 1, 13, @@ -1271,13 +2416,38 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["!=", ["get", "brunnel"], "tunnel"], - ["match", ["get", "class"], ["minor", "service", "track"], true, false] + [ + "!=", + [ + "get", + "brunnel" + ], + "tunnel" + ], + [ + "match", + [ + "get", + "class" + ], + [ + "minor", + "service", + "track" + ], + true, + false + ] ], "layout": { "line-cap": "round", @@ -1285,11 +2455,28 @@ }, "paint": { "line-color": "#cfcdca", - "line-opacity": ["interpolate", ["linear"], ["zoom"], 12, 0, 12.5, 1], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 12, + 0, + 12.5, + 1 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 0.5, 13, @@ -1308,9 +2495,40 @@ "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", @@ -1321,8 +2539,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 8, 1.5, 20, @@ -1338,9 +2561,39 @@ "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", @@ -1348,11 +2601,28 @@ }, "paint": { "line-color": "#e9ac77", - "line-opacity": ["interpolate", ["linear"], ["zoom"], 7, 0, 8, 1], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 7, + 0, + 8, + 1 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 7, 0, 8, @@ -1372,9 +2642,39 @@ "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", @@ -1382,11 +2682,28 @@ }, "paint": { "line-color": "#e9ac77", - "line-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 6, 1], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 5, + 0, + 6, + 1 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 5, 0, 6, @@ -1406,9 +2723,35 @@ "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", @@ -1416,11 +2759,28 @@ }, "paint": { "line-color": "#e9ac77", - "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0, 5, 1], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 4, + 0, + 5, + 1 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 4, 0, 5, @@ -1443,21 +2803,53 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], - ["==", ["get", "class"], "path"] + [ + "match", + [ + "get", + "brunnel" + ], + [ + "bridge", + "tunnel" + ], + false, + true + ], + [ + "==", + [ + "get", + "class" + ], + "path" + ] ], "paint": { "line-color": "#cba", - "line-dasharray": [1.5, 0.75], + "line-dasharray": [ + 1.5, + 0.75 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 15, 1.2, 20, @@ -1473,9 +2865,35 @@ "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", @@ -1485,8 +2903,13 @@ "line-color": "#fc8", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12.5, 0, 13, @@ -1506,15 +2929,42 @@ "minzoom": 13, "filter": [ "all", - ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], [ "match", - ["get", "class"], - ["primary", "secondary", "tertiary", "trunk"], + [ + "get", + "brunnel" + ], + [ + "bridge", + "tunnel" + ], + false, + true + ], + [ + "match", + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], true, false ], - ["==", ["get", "ramp"], 1] + [ + "==", + [ + "get", + "ramp" + ], + 1 + ] ], "layout": { "line-cap": "round", @@ -1524,8 +2974,13 @@ "line-color": "#fea", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12.5, 0, 13, @@ -1546,13 +3001,38 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["!=", ["get", "brunnel"], "tunnel"], - ["match", ["get", "class"], ["minor", "service", "track"], true, false] + [ + "!=", + [ + "get", + "brunnel" + ], + "tunnel" + ], + [ + "match", + [ + "get", + "class" + ], + [ + "minor", + "service", + "track" + ], + true, + false + ] ], "layout": { "line-cap": "round", @@ -1563,8 +3043,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 13.5, 0, 14, @@ -1581,9 +3066,40 @@ "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", @@ -1593,8 +3109,13 @@ "line-color": "#fea", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 8, @@ -1613,14 +3134,49 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["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": "round", @@ -1630,8 +3186,13 @@ "line-color": "#fea", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 8.5, 0, 9, @@ -1650,14 +3211,49 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], + true, + false + ], + [ + "match", + [ + "get", + "brunnel" + ], + [ + "bridge", + "tunnel" + ], + false, + true + ], + [ + "match", + [ + "get", + "class" + ], + [ + "trunk" + ], true, false ], - ["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], - ["match", ["get", "class"], ["trunk"], true, false], - ["!=", ["get", "ramp"], 1] + [ + "!=", + [ + "get", + "ramp" + ], + 1 + ] ], "layout": { "line-cap": "round", @@ -1667,8 +3263,13 @@ "line-color": "#fea", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 7, @@ -1688,14 +3289,45 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["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", @@ -1705,8 +3337,13 @@ "line-color": "#fc8", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 7, @@ -1725,20 +3362,48 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "class"], "transit"], - ["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"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14, 0.4, 20, @@ -1755,21 +3420,52 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "class"], "transit"], - ["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-dasharray": [ + 0.2, + 8 + ], "line-width": [ "interpolate", - ["exponential", 1.4], - ["zoom"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14.5, 0, 15, @@ -1788,20 +3484,40 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "class"], "rail"], - ["has", "service"] + [ + "==", + [ + "get", + "class" + ], + "rail" + ], + [ + "has", + "service" + ] ], "paint": { "line-color": "hsla(0,0%,73%,0.77)", "line-width": [ "interpolate", - ["exponential", 1.4], - ["zoom"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14, 0.4, 20, @@ -1818,21 +3534,44 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "class"], "rail"], - ["has", "service"] + [ + "==", + [ + "get", + "class" + ], + "rail" + ], + [ + "has", + "service" + ] ], "paint": { "line-color": "hsla(0,0%,73%,0.68)", - "line-dasharray": [0.2, 8], + "line-dasharray": [ + 0.2, + 8 + ], "line-width": [ "interpolate", - ["exponential", 1.4], - ["zoom"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14.5, 0, 15, @@ -1851,21 +3590,56 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["!", ["has", "service"]], - ["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"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14, 0.4, 15, @@ -1884,22 +3658,60 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["!", ["has", "service"]], - ["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-dasharray": [ + 0.2, + 8 + ], "line-width": [ "interpolate", - ["exponential", 1.4], - ["zoom"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14.5, 0, 15, @@ -1916,9 +3728,30 @@ "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" @@ -1928,8 +3761,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 1, 13, @@ -1948,15 +3786,37 @@ "source-layer": "transportation", "filter": [ "all", - ["==", ["get", "brunnel"], "bridge"], + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], [ "match", - ["get", "class"], - ["primary", "secondary", "tertiary", "trunk"], + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], true, false ], - ["==", ["get", "ramp"], 1] + [ + "==", + [ + "get", + "ramp" + ], + 1 + ] ], "layout": { "line-join": "round" @@ -1966,8 +3826,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 1, 13, @@ -1986,9 +3851,35 @@ "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" @@ -1998,8 +3889,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 5, 0.4, 7, @@ -2018,9 +3914,35 @@ "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" @@ -2029,8 +3951,13 @@ "line-color": "hsl(28,76%,67%)", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 5, 0.4, 6, @@ -2049,9 +3976,30 @@ "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" @@ -2060,8 +4008,13 @@ "line-color": "#e9ac77", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 5, 0.4, 6, @@ -2082,13 +4035,38 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "brunnel"], "bridge"], - ["match", ["get", "class"], ["minor", "service", "track"], true, false] + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], + [ + "match", + [ + "get", + "class" + ], + [ + "minor", + "service", + "track" + ], + true, + false + ] ], "layout": { "line-cap": "butt", @@ -2096,11 +4074,28 @@ }, "paint": { "line-color": "#cfcdca", - "line-opacity": ["interpolate", ["linear"], ["zoom"], 12, 0, 12.5, 1], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 12, + 0, + 12.5, + 1 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12, 0.5, 13, @@ -2121,20 +4116,44 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "brunnel"], "bridge"], - ["==", ["get", "class"], "path"] + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], + [ + "==", + [ + "get", + "class" + ], + "path" + ] ], "paint": { "line-color": "#f8f4f0", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 15, 1.2, 20, @@ -2151,21 +4170,48 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "brunnel"], "bridge"], - ["==", ["get", "class"], "path"] + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], + [ + "==", + [ + "get", + "class" + ], + "path" + ] ], "paint": { "line-color": "#cba", - "line-dasharray": [1.5, 0.75], + "line-dasharray": [ + 1.5, + 0.75 + ], "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 15, 1.2, 20, @@ -2180,9 +4226,30 @@ "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" @@ -2191,8 +4258,13 @@ "line-color": "#fc8", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12.5, 0, 13, @@ -2211,15 +4283,37 @@ "source-layer": "transportation", "filter": [ "all", - ["==", ["get", "brunnel"], "bridge"], + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], [ "match", - ["get", "class"], - ["primary", "secondary", "tertiary", "trunk"], + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], true, false ], - ["==", ["get", "ramp"], 1] + [ + "==", + [ + "get", + "ramp" + ], + 1 + ] ], "layout": { "line-join": "round" @@ -2228,8 +4322,13 @@ "line-color": "#fea", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 12.5, 0, 13, @@ -2250,13 +4349,38 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["==", ["get", "brunnel"], "bridge"], - ["match", ["get", "class"], ["minor", "service", "track"], true, false] + [ + "==", + [ + "get", + "brunnel" + ], + "bridge" + ], + [ + "match", + [ + "get", + "class" + ], + [ + "minor", + "service", + "track" + ], + true, + false + ] ], "layout": { "line-cap": "round", @@ -2267,8 +4391,13 @@ "line-opacity": 1, "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 13.5, 0, 14, @@ -2285,9 +4414,35 @@ "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" @@ -2296,8 +4451,13 @@ "line-color": "#fea", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 8, @@ -2314,9 +4474,35 @@ "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" @@ -2325,8 +4511,13 @@ "line-color": "#fea", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 7, @@ -2343,9 +4534,30 @@ "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" @@ -2354,8 +4566,13 @@ "line-color": "#fc8", "line-width": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 6.5, 0, 7, @@ -2372,15 +4589,34 @@ "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"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14, 0.4, 15, @@ -2397,16 +4633,38 @@ "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-dasharray": [ + 0.2, + 8 + ], "line-width": [ "interpolate", - ["exponential", 1.4], - ["zoom"], + [ + "exponential", + 1.4 + ], + [ + "zoom" + ], 14.5, 0, 15, @@ -2422,13 +4680,32 @@ "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 + ] } }, { @@ -2437,14 +4714,36 @@ "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-dasharray": [ + 2, + 3 + ], + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 11, + 3, + 19, + 5.5 + ] } }, { @@ -2455,16 +4754,66 @@ "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-dasharray": [ + 1, + 1 + ], + "line-width": [ + "interpolate", + [ + "linear", + 1 + ], + [ + "zoom" + ], + 7, + 1, + 11, + 2 + ] } }, { @@ -2474,10 +4823,37 @@ "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", @@ -2485,8 +4861,34 @@ }, "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 + ] } }, { @@ -2496,13 +4898,44 @@ "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-dasharray": [ + 1, + 2 + ], + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 3, + 1, + 5, + 1.2, + 12, + 3 + ] } }, { @@ -2513,10 +4946,20 @@ "minzoom": 15, "filter": [ "all", - ["==", ["get", "oneway"], 1], + [ + "==", + [ + "get", + "oneway" + ], + 1 + ], [ "match", - ["get", "class"], + [ + "get", + "class" + ], [ "minor", "motorway", @@ -2535,7 +4978,19 @@ "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 }, @@ -2551,10 +5006,20 @@ "minzoom": 15, "filter": [ "all", - ["==", ["get", "oneway"], -1], + [ + "==", + [ + "get", + "oneway" + ], + -1 + ], [ "match", - ["get", "class"], + [ + "get", + "class" + ], [ "minor", "motorway", @@ -2573,7 +5038,19 @@ "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 }, @@ -2589,8 +5066,13 @@ "minzoom": 10, "filter": [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], @@ -2599,11 +5081,37 @@ "symbol-spacing": 350, "text-field": [ "case", - ["has", "name:nonlatin"], - ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], - ["coalesce", ["get", "name_en"], ["get", "name"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + " ", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "text-font": ["Noto Sans Italic"], "text-letter-spacing": 0.2, "text-max-width": 5, "text-size": 14 @@ -2621,22 +5129,65 @@ "source-layer": "water_name", "filter": [ "match", - ["geometry-type"], - ["MultiPoint", "Point"], + [ + "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "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", @@ -2651,8 +5202,13 @@ "source-layer": "water_name", "filter": [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], @@ -2661,11 +5217,37 @@ "symbol-spacing": 350, "text-field": [ "case", - ["has", "name:nonlatin"], - ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], - ["coalesce", ["get", "name_en"], ["get", "name"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + " ", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "text-font": ["Noto Sans Italic"], "text-letter-spacing": 0.2, "text-max-width": 5, "text-size": 14 @@ -2684,28 +5266,94 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "text-font": ["Noto Sans Italic"], "text-max-width": 9, - "text-offset": [0, 0.6], + "text-offset": [ + 0, + 0.6 + ], "text-size": 12 }, "paint": { @@ -2723,29 +5371,102 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "text-font": ["Noto Sans Italic"], "text-max-width": 9, - "text-offset": [0, 0.6], + "text-offset": [ + 0, + 0.6 + ], "text-size": 12 }, "paint": { @@ -2763,30 +5484,110 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "text-font": ["Noto Sans Italic"], "text-max-width": 9, - "text-offset": [0, 0.6], + "text-offset": [ + 0, + 0.6 + ], "text-size": 12 }, "paint": { @@ -2801,20 +5602,67 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "text-font": ["Noto Sans Italic"], "text-max-width": 9, - "text-offset": [0.9, 0], + "text-offset": [ + 0.9, + 0 + ], "text-size": 12 }, "paint": { @@ -2830,18 +5678,63 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + " ", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Regular" ], - "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%)", @@ -2859,24 +5752,80 @@ "all", [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["match", ["get", "class"], ["minor", "service", "track"], 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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + " ", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Regular" ], - "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", @@ -2892,8 +5841,16 @@ "minzoom": 12.2, "filter": [ "match", - ["get", "class"], - ["primary", "secondary", "tertiary", "trunk"], + [ + "get", + "class" + ], + [ + "primary", + "secondary", + "tertiary", + "trunk" + ], true, false ], @@ -2901,13 +5858,51 @@ "symbol-placement": "line", "text-field": [ "case", - ["has", "name:nonlatin"], - ["concat", ["get", "name:latin"], " ", ["get", "name:nonlatin"]], - ["coalesce", ["get", "name_en"], ["get", "name"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + " ", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Regular" ], - "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", @@ -2923,30 +5918,72 @@ "minzoom": 8, "filter": [ "all", - ["\u003C=", ["get", "ref_length"], 6], + [ + "\u003C=", + [ + "get", + "ref_length" + ], + 6 + ], [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], [ "match", - ["get", "network"], - ["us-highway", "us-interstate", "us-state"], + [ + "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 } @@ -2959,29 +5996,76 @@ "minzoom": 7, "filter": [ "all", - ["\u003C=", ["get", "ref_length"], 6], + [ + "\u003C=", + [ + "get", + "ref_length" + ], + 6 + ], [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["match", ["get", "network"], ["us-interstate"], 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 } @@ -2994,29 +6078,75 @@ "minzoom": 9, "filter": [ "all", - ["\u003C=", ["get", "ref_length"], 6], + [ + "\u003C=", + [ + "get", + "ref_length" + ], + 6 + ], [ "match", - ["geometry-type"], - ["LineString", "MultiLineString"], + [ + "geometry-type" + ], + [ + "LineString", + "MultiLineString" + ], true, false ], - ["match", ["get", "network"], ["us-highway", "us-state"], 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 } @@ -3027,20 +6157,55 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Regular" ], - "text-font": ["Noto Sans Regular"], "text-max-width": 9, - "text-offset": [0, 0.6], + "text-offset": [ + 0, + 0.6 + ], "text-optional": true, "text-padding": 2, "text-size": 12 @@ -3060,22 +6225,70 @@ "minzoom": 8, "filter": [ "match", - ["get", "class"], - ["city", "continent", "country", "state", "town", "village"], + [ + "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "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": { @@ -3091,25 +6304,71 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Regular" ], - "text-font": ["Noto Sans Regular"], "text-max-width": 8, "text-size": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 7, 10, 11, @@ -3129,25 +6388,71 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Regular" ], - "text-font": ["Noto Sans Regular"], "text-max-width": 8, "text-size": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 7, 12, 11, @@ -3168,18 +6473,63 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Italic" ], - "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": { @@ -3197,28 +6547,84 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Regular" ], - "text-font": ["Noto Sans Regular"], "text-max-width": 8, - "text-offset": [0, -0.1], + "text-offset": [ + 0, + -0.1 + ], "text-size": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 4, 11, 7, @@ -3242,28 +6648,84 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Bold" ], - "text-font": ["Noto Sans Bold"], "text-max-width": 8, - "text-offset": [0, -0.2], + "text-offset": [ + 0, + -0.2 + ], "text-size": [ "interpolate", - ["exponential", 1.2], - ["zoom"], + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], 4, 12, 7, @@ -3288,19 +6750,71 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Bold" ], - "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", @@ -3317,19 +6831,71 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Bold" ], - "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", @@ -3346,19 +6912,71 @@ "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"]] + [ + "has", + "name:nonlatin" + ], + [ + "concat", + [ + "get", + "name:latin" + ], + "\n", + [ + "get", + "name:nonlatin" + ] + ], + [ + "coalesce", + [ + "get", + "name_en" + ], + [ + "get", + "name" + ] + ] + ], + "text-font": [ + "Noto Sans Bold" ], - "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", @@ -3366,6 +6984,60 @@ "text-halo-color": "#fff", "text-halo-width": 1 } + }, + { + "id": "vigo_traffic", + "type": "line", + "source": "vigo_traffic", + "layout": {}, + "paint": { + "line-opacity": [ + "interpolate", + ["linear"], + ["get", "zoom"], + 0, 11, + 14, 1, + 16, 0.8, + 18, 0.6, + 22, 0.6 + ], + "line-color": [ + "match", + [ + "get", + "style" + ], + "#CONGESTION", + "hsl(70.7 100% 38%)", + + "#MUYDENSO", + "hsl(36.49 100% 50%)", + + "#DENSO", + "hsl(47.61 100% 49%)", + + "#FLUIDO", + "hsl(83.9 100% 40%)", + + "#MUYFLUIDO", + "hsl(161.25 100% 42%)", + + "hsl(0.0 0% 0%)" + ], + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 14, + 2, + 18, + 4 + ] + } } ] } |
