From 50ee7232f3c98fe24a1f2e31dba9508cfec14887 Mon Sep 17 00:00:00 2001 From: gjj <Ganjj@probim.com.cn> Date: Fri, 21 Feb 2025 17:35:39 +0800 Subject: [PATCH] 模型预览 --- public/ref/style/darkblue.json | 2571 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 2,571 insertions(+), 0 deletions(-) diff --git a/public/ref/style/darkblue.json b/public/ref/style/darkblue.json new file mode 100644 index 0000000..cbd1a1b --- /dev/null +++ b/public/ref/style/darkblue.json @@ -0,0 +1,2571 @@ +{ + "version": 8, + "name": "深蓝科技", + "metadata": { + "mapbox:type": "default", + "mapbox:origin": "navigation-night-v1", + "mapbox:sdk-support": { "android": "10.6.0", "ios": "10.6.0", "js": "2.9.0" }, + "mapbox:autocomposite": true, + "mapbox:groups": { + "Transit, transit-labels": { "name": "Transit, transit-labels", "collapsed": true }, + "Administrative boundaries, admin": { "name": "Administrative boundaries, admin", "collapsed": false }, + "Land & water, built": { "name": "Land & water, built", "collapsed": true }, + "Transit, bridges": { "name": "Transit, bridges", "collapsed": true }, + "Transit, surface": { "name": "Transit, surface", "collapsed": true }, + "Land & water, land": { "name": "Land & water, land", "collapsed": true }, + "Road network, bridges": { "name": "Road network, bridges", "collapsed": true }, + "Road network, tunnels": { "name": "Road network, tunnels", "collapsed": true }, + "Road network, road-labels": { "name": "Road network, road-labels", "collapsed": false }, + "Buildings, built": { "name": "Buildings, built", "collapsed": true }, + "Natural features, natural-labels": { "name": "Natural features, natural-labels", "collapsed": true }, + "Road network, surface": { "name": "Road network, surface", "collapsed": true }, + "Walking, cycling, etc., barriers-bridges": { "name": "Walking, cycling, etc., barriers-bridges", "collapsed": true }, + "Place labels, place-labels": { "name": "Place labels, place-labels", "collapsed": false }, + "Transit, ferries": { "name": "Transit, ferries", "collapsed": true }, + "Transit, elevated": { "name": "Transit, elevated", "collapsed": true }, + "Buildings, extruded": { "name": "Buildings, extruded", "collapsed": true }, + "Point of interest labels, poi-labels": { "name": "Point of interest labels, poi-labels", "collapsed": false }, + "Road network, tunnels-case": { "name": "Road network, tunnels-case", "collapsed": true }, + "Transit, built": { "name": "Transit, built", "collapsed": true }, + "Road network, surface-icons": { "name": "Road network, surface-icons", "collapsed": true }, + "Land & water, water": { "name": "Land & water, water", "collapsed": true }, + "Transit, ferry-aerialway-labels": { "name": "Transit, ferry-aerialway-labels", "collapsed": true } + } + }, + "center": [116.40723286491766, 39.884181989706775], + "zoom": 17.58181390300712, + "bearing": -32.80000000000001, + "pitch": 85, + "light": { "anchor": ["step", ["zoom"], "map", 22, "map"] }, + "fog": { "color": "hsla(0, 0%, 100%, 0)", "high-color": "hsl(205, 35%, 25%)" }, + "sources": { "composite": { "url": "mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v8", "type": "vector" } }, + "sprite": "mapbox://sprites/mapbox/streets-v8", + "glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf", + "projection": { "name": "globe" }, + "layers": [ + { + "id": "land", + "type": "background", + "layout": {}, + "paint": { "background-color": ["interpolate", ["linear"], ["zoom"], 5, "hsl(220, 60%, 25%)", 7, "hsla(227, 86%, 6%, 0.9)"] }, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" } + }, + { + "layout": {}, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" }, + "maxzoom": 9, + "type": "fill", + "source": "composite", + "id": "landcover", + "paint": { + "fill-color": [ + "interpolate", + ["linear"], + ["zoom"], + 0, + ["match", ["get", "class"], "wood", "#2d4a86", ["snow"], "#ffffff", "#2d4a86"], + 22, + ["match", ["get", "class"], "wood", "#2d4a86", ["snow"], "#ffffff", "#2d4a86"] + ], + "fill-opacity": ["interpolate", ["exponential", 1.5], ["zoom"], 8, 0.4, 9, 0], + "fill-antialias": false + }, + "source-layer": "landcover" + }, + { + "minzoom": 5, + "layout": {}, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" }, + "filter": ["==", ["get", "class"], "national_park"], + "type": "fill", + "source": "composite", + "id": "national-park", + "paint": { "fill-color": "hsl(175, 60%, 21%)", "fill-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 6, 0.6, 12, 0.2] }, + "source-layer": "landuse_overlay" + }, + { + "minzoom": 5, + "layout": {}, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" }, + "filter": [ + "all", + [">=", ["to-number", ["get", "sizerank"]], 0], + [ + "match", + ["get", "class"], + ["agriculture", "wood", "grass", "scrub", "park", "airport", "glacier", "pitch", "sand"], + true, + "residential", + ["step", ["zoom"], true, 12, false], + ["facility", "industrial"], + ["step", ["zoom"], false, 12, true], + "cemetery", + true, + "school", + true, + "hospital", + true, + "commercial_area", + true, + "parking", + ["step", ["zoom"], false, 15, true], + false + ], + ["<=", ["-", ["to-number", ["get", "sizerank"]], ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0, 18, 14]], 14] + ], + "type": "fill", + "source": "composite", + "id": "landuse", + "paint": { + "fill-color": [ + "interpolate", + ["linear"], + ["zoom"], + 15, + [ + "match", + ["get", "class"], + "wood", + "hsla(180, 80%, 64%, 0.8)", + "scrub", + "hsla(175, 77%, 65%, 0.6)", + "agriculture", + "hsla(175, 80%, 69%, 0.6)", + "park", + "hsl(175, 85%, 23%)", + "grass", + "hsla(175, 80%, 69%, 0.6)", + "airport", + "hsl(230, 77%, 59%)", + "cemetery", + "hsl(175, 69%, 28%)", + "glacier", + "hsl(185, 60%, 60%)", + "hospital", + "hsl(250, 10%, 35%)", + "pitch", + "hsl(165, 95%, 25%)", + "sand", + "hsla(175, 90%, 69%, 0.05)", + "school", + "hsl(200, 10%, 30%)", + "commercial_area", + "hsl(215, 15%, 30%)", + "parking", + "hsl(215, 15%, 34%)", + "residential", + "hsla(230, 17%, 59%, 0)", + ["facility", "industrial"], + "hsl(230, 12%, 28%)", + "hsla(230, 33%, 62%, 0)" + ], + 16, + [ + "match", + ["get", "class"], + "wood", + "hsla(180, 80%, 64%, 0.8)", + "scrub", + "hsla(175, 77%, 65%, 0.6)", + "agriculture", + "hsla(175, 80%, 69%, 0.6)", + "park", + "hsl(175, 85%, 23%)", + "grass", + "hsla(175, 80%, 69%, 0.6)", + "airport", + "hsl(230, 77%, 59%)", + "cemetery", + "hsl(175, 69%, 28%)", + "glacier", + "hsl(185, 60%, 60%)", + "hospital", + "hsl(250, 10%, 35%)", + "pitch", + "hsl(165, 95%, 25%)", + "sand", + "hsla(175, 90%, 69%, 0.05)", + "school", + "hsl(200, 10%, 30%)", + "commercial_area", + "hsla(215, 15%, 30%, 0.5)", + "parking", + "hsl(215, 15%, 34%)", + ["facility", "industrial"], + "hsl(230, 12%, 28%)", + "hsla(230, 33%, 62%, 0)" + ] + ], + "fill-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + ["match", ["get", "class"], ["residential", "airport"], 0.8, 0.2], + 12, + ["match", ["get", "class"], "residential", 0, 1] + ] + }, + "source-layer": "landuse" + }, + { + "minzoom": 15, + "layout": {}, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, land" }, + "filter": ["==", ["get", "class"], "pitch"], + "type": "line", + "source": "composite", + "id": "pitch-outline", + "paint": { "line-color": "hsl(165, 90%, 18%)" }, + "source-layer": "landuse" + }, + { + "id": "waterway", + "type": "line", + "source": "composite", + "source-layer": "waterway", + "minzoom": 8, + "layout": { "line-cap": ["step", ["zoom"], "butt", 11, "round"], "line-join": "round" }, + "paint": { + "line-color": "hsl(185, 90%, 35%)", + "line-width": [ + "interpolate", + ["exponential", 1.3], + ["zoom"], + 9, + ["match", ["get", "class"], ["canal", "river"], 0.1, 0], + 20, + ["match", ["get", "class"], ["canal", "river"], 8, 3] + ], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 8, 0, 8.5, 1] + }, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, water" } + }, + { + "id": "water", + "type": "fill", + "source": "composite", + "source-layer": "water", + "layout": {}, + "paint": { "fill-color": ["interpolate", ["linear"], ["zoom"], 2, "hsl(224, 50%, 15%)", 10, "hsl(195, 90%, 45%)"] }, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, water" } + }, + { + "minzoom": 13, + "layout": {}, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, built" }, + "filter": ["all", ["==", ["get", "class"], "land"], ["==", ["geometry-type"], "Polygon"]], + "type": "fill", + "source": "composite", + "id": "land-structure-polygon", + "paint": { "fill-color": ["interpolate", ["linear"], ["zoom"], 9, "hsla(230, 32%, 78%, 0)", 11, "hsla(230, 30%, 65%, 0)"] }, + "source-layer": "structure" + }, + { + "minzoom": 13, + "layout": { "line-cap": "square" }, + "metadata": { "mapbox:featureComponent": "land-and-water", "mapbox:group": "Land & water, built" }, + "filter": ["all", ["==", ["get", "class"], "land"], ["==", ["geometry-type"], "LineString"]], + "type": "line", + "source": "composite", + "id": "land-structure-line", + "paint": { + "line-width": ["interpolate", ["exponential", 1.99], ["zoom"], 14, 0.75, 20, 40], + "line-color": ["interpolate", ["linear"], ["zoom"], 9, "hsla(230, 32%, 78%, 0)", 11, "hsla(230, 30%, 65%, 0)"] + }, + "source-layer": "structure" + }, + { + "id": "aeroway-polygon", + "type": "fill", + "source": "composite", + "source-layer": "aeroway", + "minzoom": 11, + "filter": ["all", ["match", ["get", "type"], ["runway", "taxiway", "helipad"], true, false], ["==", ["geometry-type"], "Polygon"]], + "paint": { "fill-color": "hsl(230, 68%, 68%)", "fill-opacity": ["interpolate", ["linear"], ["zoom"], 10, 0, 11, 1] }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, built" } + }, + { + "id": "aeroway-line", + "type": "line", + "source": "composite", + "source-layer": "aeroway", + "minzoom": 9, + "filter": ["==", ["geometry-type"], "LineString"], + "paint": { + "line-color": "hsl(230, 68%, 68%)", + "line-width": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 9, + ["match", ["get", "type"], "runway", 1, 0.5], + 18, + ["match", ["get", "type"], "runway", 80, 20] + ], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 10, 0, 11, 1] + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, built" } + }, + { + "minzoom": 15, + "layout": {}, + "metadata": { "mapbox:featureComponent": "buildings", "mapbox:group": "Buildings, built" }, + "filter": ["all", ["!=", ["get", "type"], "building:part"], ["==", ["get", "underground"], "false"]], + "type": "fill", + "source": "composite", + "id": "building", + "paint": { + "fill-color": "hsla(230, 27%, 59%, 0)", + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, 1], + "fill-outline-color": "hsla(230, 22%, 56%, 0)" + }, + "source-layer": "building" + }, + { + "id": "tunnel-minor-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["track"], true, "service", ["step", ["zoom"], false, 14, true], false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 4%, 19%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 18, 10, 22, 100], + "line-dasharray": [3, 3] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels-case" } + }, + { + "id": "tunnel-street-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 4%, 19%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], + "line-opacity": ["step", ["zoom"], 0, 14, 1], + "line-dasharray": [3, 3] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels-case" } + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels-case" }, + "filter": [ + "all", + ["match", ["get", "class"], ["primary_link", "secondary_link", "tertiary_link"], true, false], + ["==", ["get", "structure"], "tunnel"], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "tunnel-minor-link-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.4, 18, 18, 22, 180], + "line-opacity": ["step", ["zoom"], 0, 11, 1] + }, + "source-layer": "road" + }, + { + "id": "tunnel-secondary-tertiary-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 4%, 19%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0, 18, 26, 22, 260], + "line-dasharray": [3, 3] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels-case" } + }, + { + "id": "tunnel-primary-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 9, + "filter": ["all", ["==", ["get", "structure"], "tunnel"], ["==", ["get", "class"], "primary"], ["==", ["geometry-type"], "LineString"]], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 4%, 19%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 28, 22, 280], + "line-dasharray": [3, 3] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels-case" } + }, + { + "id": "tunnel-major-link-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 12, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsl(215, 20%, 35%)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200], + "line-dasharray": [3, 3] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels-case" } + }, + { + "id": "tunnel-motorway-trunk-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 11%, 44%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300], + "line-dasharray": [3, 3] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels-case" } + }, + { + "id": "tunnel-construction", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": ["all", ["==", ["get", "structure"], "tunnel"], ["==", ["get", "class"], "construction"], ["==", ["geometry-type"], "LineString"]], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 2, 18, 20, 22, 200], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-dasharray": [ + "step", + ["zoom"], + ["literal", [0.4, 0.8]], + 15, + ["literal", [0.3, 0.6]], + 16, + ["literal", [0.2, 0.3]], + 17, + ["literal", [0.2, 0.25]], + 18, + ["literal", [0.15, 0.15]] + ] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" } + }, + { + "id": "tunnel-minor", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["track"], true, "service", ["step", ["zoom"], false, 14, true], false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 18, 10, 22, 100], + "line-color": ["match", ["get", "class"], "street_limited", "hsla(230, 34%, 71%, 0)", "hsl(215, 20%, 35%)"] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" } + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 13, "round"], "line-join": ["step", ["zoom"], "miter", 13, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" }, + "filter": [ + "all", + ["match", ["get", "class"], ["primary_link", "secondary_link", "tertiary_link"], true, false], + ["==", ["get", "structure"], "tunnel"], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "tunnel-minor-link", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.4, 18, 18, 22, 180], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "id": "tunnel-major-link", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 12, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200], + "line-color": ["match", ["get", "class"], "motorway_link", "hsl(205, 50%, 65%)", "hsl(225, 55%, 65%)"] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" } + }, + { + "id": "tunnel-street", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], + "line-color": ["match", ["get", "class"], "street_limited", "hsla(230, 34%, 71%, 0)", "hsl(215, 20%, 35%)"], + "line-opacity": ["step", ["zoom"], 0, 14, 1] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" } + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" }, + "maxzoom": 14, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "tunnel-street-low", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "id": "tunnel-secondary-tertiary", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0, 18, 26, 22, 260], "line-color": "hsl(215, 20%, 35%)" }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" } + }, + { + "id": "tunnel-primary", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": ["all", ["==", ["get", "structure"], "tunnel"], ["==", ["get", "class"], "primary"], ["==", ["geometry-type"], "LineString"]], + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 28, 22, 280], "line-color": "hsl(215, 20%, 35%)" }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" } + }, + { + "id": "tunnel-motorway-trunk", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300], + "line-color": ["match", ["get", "class"], "motorway", "hsl(205, 50%, 65%)", "hsl(225, 55%, 65%)"] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" } + }, + { + "minzoom": 16, + "layout": { + "symbol-placement": "line", + "icon-image": ["step", ["zoom"], "oneway-small", 18, "oneway-large"], + "symbol-spacing": 200, + "icon-rotation-alignment": "map", + "icon-allow-overlap": true, + "icon-ignore-placement": true + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" }, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["==", ["get", "oneway"], "true"], + [ + "step", + ["zoom"], + ["match", ["get", "class"], ["primary", "secondary", "street", "street_limited", "tertiary"], true, false], + 16, + [ + "match", + ["get", "class"], + ["primary", "secondary", "tertiary", "street", "street_limited", "primary_link", "secondary_link", "tertiary_link", "service", "track"], + true, + false + ] + ] + ], + "type": "symbol", + "source": "composite", + "id": "tunnel-oneway-arrow-blue", + "paint": {}, + "source-layer": "road" + }, + { + "minzoom": 16, + "layout": { + "symbol-placement": "line", + "icon-image": ["step", ["zoom"], "oneway-white-small", 18, "oneway-white-large"], + "symbol-spacing": 200, + "icon-rotation-alignment": "map", + "icon-allow-overlap": true, + "icon-ignore-placement": true + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, tunnels" }, + "filter": [ + "all", + ["==", ["get", "structure"], "tunnel"], + ["match", ["get", "class"], ["motorway", "motorway_link", "trunk", "trunk_link"], true, false], + ["==", ["get", "oneway"], "true"] + ], + "type": "symbol", + "source": "composite", + "id": "tunnel-oneway-arrow-white", + "paint": {}, + "source-layer": "road" + }, + { + "id": "ferry", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 8, + "filter": ["==", ["get", "type"], "ferry"], + "paint": { + "line-color": ["interpolate", ["linear"], ["zoom"], 15, "hsl(194, 83%, 28%)", 17, "hsl(219, 83%, 28%)"], + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.5, 20, 1], + "line-dasharray": ["step", ["zoom"], ["literal", [1, 0]], 13, ["literal", [12, 4]]] + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, ferries" } + }, + { + "id": "ferry-auto", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 8, + "filter": ["==", ["get", "type"], "ferry_auto"], + "paint": { + "line-color": ["interpolate", ["linear"], ["zoom"], 15, "hsl(194, 83%, 28%)", 17, "hsl(219, 83%, 28%)"], + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.5, 20, 1] + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, ferries" } + }, + { + "id": "road-polygon", + "type": "fill", + "source": "composite", + "source-layer": "road", + "minzoom": 12, + "filter": [ + "all", + [ + "match", + ["get", "class"], + [ + "primary", + "secondary", + "tertiary", + "primary_link", + "secondary_link", + "tertiary_link", + "trunk", + "trunk_link", + "street", + "street_limited", + "track", + "service" + ], + true, + false + ], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "Polygon"] + ], + "paint": { "fill-color": "hsl(215, 20%, 35%)", "fill-outline-color": "hsla(217, 11%, 32%, 0)" }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" } + }, + { + "id": "turning-feature-outline", + "type": "circle", + "source": "composite", + "source-layer": "road", + "minzoom": 15, + "filter": ["all", ["match", ["get", "class"], ["turning_circle", "turning_loop"], true, false], ["==", ["geometry-type"], "Point"]], + "paint": { + "circle-radius": ["interpolate", ["exponential", 1.5], ["zoom"], 15, 4.5, 16, 8, 18, 20, 22, 200], + "circle-color": "hsl(215, 20%, 35%)", + "circle-stroke-width": ["interpolate", ["linear"], ["zoom"], 15, 0.8, 16, 1.2, 18, 2], + "circle-stroke-color": "hsla(217, 11%, 32%, 0)", + "circle-pitch-alignment": "map" + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" } + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["track"], true, "service", ["step", ["zoom"], false, 14, true], false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-minor-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 18, 10, 22, 100] + }, + "source-layer": "road" + }, + { + "minzoom": 14, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-street-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], + "line-opacity": ["step", ["zoom"], 0, 14, 1] + }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["primary_link", "secondary_link", "tertiary_link"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-minor-link-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.4, 18, 18, 22, 180], + "line-opacity": ["step", ["zoom"], 0, 11, 1] + }, + "source-layer": "road" + }, + { + "minzoom": 11, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-secondary-tertiary-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0, 18, 26, 22, 260] + }, + "source-layer": "road" + }, + { + "minzoom": 9, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["==", ["get", "class"], "primary"], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-primary-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 28, 22, 280] + }, + "source-layer": "road" + }, + { + "minzoom": 12, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-major-link-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 44%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200], + "line-opacity": ["step", ["zoom"], 0, 11, 1] + }, + "source-layer": "road" + }, + { + "minzoom": 3, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + [ + "step", + ["zoom"], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + 5, + ["all", ["match", ["get", "class"], ["motorway", "trunk"], true, false], ["match", ["get", "structure"], ["none", "ford"], true, false]] + ], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-motorway-trunk-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 11%, 44%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 3, 0, 3.5, 1] + }, + "source-layer": "road" + }, + { + "id": "turning-feature", + "type": "circle", + "source": "composite", + "source-layer": "road", + "minzoom": 15, + "filter": ["all", ["match", ["get", "class"], ["turning_circle", "turning_loop"], true, false], ["==", ["geometry-type"], "Point"]], + "paint": { + "circle-radius": ["interpolate", ["exponential", 1.5], ["zoom"], 15, 4.5, 16, 8, 18, 20, 22, 200], + "circle-color": "hsl(215, 20%, 35%)", + "circle-pitch-alignment": "map" + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" } + }, + { + "id": "road-construction", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + ["==", ["get", "class"], "construction"], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 2, 18, 20, 22, 200], + "line-color": "hsl(215, 20%, 35%)", + "line-dasharray": [ + "step", + ["zoom"], + ["literal", [0.4, 0.8]], + 15, + ["literal", [0.3, 0.6]], + 16, + ["literal", [0.2, 0.3]], + 17, + ["literal", [0.2, 0.25]], + 18, + ["literal", [0.15, 0.15]] + ] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" } + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["track"], true, "service", ["step", ["zoom"], false, 14, true], false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-minor", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 18, 10, 22, 100], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 12, + "layout": { "line-cap": ["step", ["zoom"], "butt", 13, "round"], "line-join": ["step", ["zoom"], "miter", 13, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["primary_link", "secondary_link", "tertiary_link"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-minor-link", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.4, 18, 18, 22, 180], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 12, + "layout": { "line-cap": ["step", ["zoom"], "butt", 13, "round"], "line-join": ["step", ["zoom"], "miter", 13, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-major-link", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200], + "line-color": ["match", ["get", "class"], "motorway_link", "hsl(205, 43%, 55%)", "hsl(225, 56%, 55%)"] + }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-street", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], + "line-color": ["match", ["get", "class"], "street_limited", "hsla(230, 34%, 71%, 0)", "hsl(215, 20%, 35%)"], + "line-opacity": ["step", ["zoom"], 0, 14, 1] + }, + "source-layer": "road" + }, + { + "minzoom": 11, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "maxzoom": 14, + "filter": [ + "all", + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-street-low", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 8, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-secondary-tertiary", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0, 18, 26, 22, 260], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 6, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + ["==", ["get", "class"], "primary"], + ["match", ["get", "structure"], ["none", "ford"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-primary", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 28, 22, 280], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 3, + "layout": { "line-cap": ["step", ["zoom"], "butt", 13, "round"], "line-join": ["step", ["zoom"], "miter", 13, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface" }, + "filter": [ + "all", + [ + "step", + ["zoom"], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + 5, + ["all", ["match", ["get", "class"], ["motorway", "trunk"], true, false], ["match", ["get", "structure"], ["none", "ford"], true, false]] + ], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "road-motorway-trunk", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300], + "line-color": [ + "step", + ["zoom"], + ["match", ["get", "class"], "motorway", "hsl(205, 65%, 49%)", "trunk", "hsl(225, 58%, 39%)", "hsla(230, 31%, 74%, 0)"], + 9, + ["match", ["get", "class"], "motorway", "hsl(205, 43%, 55%)", "hsl(225, 56%, 55%)"] + ], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 3, 0, 3.5, 1] + }, + "source-layer": "road" + }, + { + "id": "road-rail", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": ["all", ["match", ["get", "class"], ["major_rail", "minor_rail"], true, false], ["match", ["get", "structure"], ["none", "ford"], true, false]], + "paint": { + "line-color": ["interpolate", ["linear"], ["zoom"], 13, "hsla(245, 37%, 59%, 0)", 16, "hsla(217, 0%, 47%, 0)"], + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.5, 20, 1] + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, surface" } + }, + { + "id": "road-rail-tracks", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": ["all", ["match", ["get", "class"], ["major_rail", "minor_rail"], true, false], ["match", ["get", "structure"], ["none", "ford"], true, false]], + "paint": { + "line-color": ["interpolate", ["linear"], ["zoom"], 13, "hsla(245, 37%, 59%, 0)", 16, "hsla(217, 0%, 47%, 0)"], + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 4, 20, 8], + "line-dasharray": [0.1, 15], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 13.75, 0, 14, 1] + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, surface" } + }, + { + "minzoom": 16, + "layout": { "icon-image": "level-crossing", "icon-rotation-alignment": "map", "icon-allow-overlap": true, "icon-ignore-placement": true }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface-icons" }, + "filter": ["==", ["get", "class"], "level_crossing"], + "type": "symbol", + "source": "composite", + "id": "level-crossing", + "paint": {}, + "source-layer": "road" + }, + { + "minzoom": 16, + "layout": { + "symbol-placement": "line", + "icon-image": ["step", ["zoom"], "oneway-small", 18, "oneway-large"], + "symbol-spacing": 200, + "icon-rotation-alignment": "map", + "icon-allow-overlap": true, + "icon-ignore-placement": true + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface-icons" }, + "filter": [ + "all", + ["==", ["get", "oneway"], "true"], + [ + "step", + ["zoom"], + ["match", ["get", "class"], ["primary", "secondary", "tertiary", "street", "street_limited"], true, false], + 16, + [ + "match", + ["get", "class"], + ["primary", "secondary", "tertiary", "street", "street_limited", "primary_link", "secondary_link", "tertiary_link", "service", "track"], + true, + false + ] + ], + ["match", ["get", "structure"], ["none", "ford"], true, false] + ], + "type": "symbol", + "source": "composite", + "id": "road-oneway-arrow-blue", + "paint": {}, + "source-layer": "road" + }, + { + "minzoom": 16, + "layout": { + "symbol-placement": "line", + "icon-image": ["step", ["zoom"], "oneway-white-small", 18, "oneway-white-large"], + "symbol-spacing": 200, + "icon-rotation-alignment": "map", + "icon-allow-overlap": true, + "icon-ignore-placement": true + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface-icons" }, + "filter": [ + "all", + ["==", ["get", "oneway"], "true"], + ["match", ["get", "class"], ["motorway", "trunk", "motorway_link", "trunk_link"], true, false], + ["match", ["get", "structure"], ["none", "ford"], true, false] + ], + "type": "symbol", + "source": "composite", + "id": "road-oneway-arrow-white", + "paint": {}, + "source-layer": "road" + }, + { + "minzoom": 17, + "layout": { + "icon-size": ["interpolate", ["linear"], ["zoom"], 16, 0.1, 18, 0.2, 19, 0.5, 22, 1.5], + "icon-image": ["step", ["zoom"], "crosswalk-small", 18, "crosswalk-large"], + "icon-rotate": ["get", "direction"], + "icon-rotation-alignment": "map", + "icon-allow-overlap": true, + "icon-ignore-placement": true + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, surface-icons" }, + "filter": ["all", ["==", ["get", "type"], "crosswalk"], ["==", ["geometry-type"], "Point"]], + "type": "symbol", + "source": "composite", + "id": "crosswalks", + "paint": {}, + "source-layer": "structure" + }, + { + "minzoom": 16, + "layout": {}, + "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., barriers-bridges" }, + "filter": ["match", ["get", "class"], ["gate", "fence", "hedge"], true, false], + "type": "line", + "source": "composite", + "id": "gate-fence-hedge", + "paint": { + "line-color": ["match", ["get", "class"], "hedge", "hsl(175, 50%, 64%)", "hsla(230, 37%, 54%, 0)"], + "line-width": ["interpolate", ["linear"], ["zoom"], 16, 1, 20, 3], + "line-opacity": ["match", ["get", "class"], "gate", 0.5, 1], + "line-dasharray": [1, 2, 5, 2, 1, 2] + }, + "source-layer": "structure" + }, + { + "minzoom": 16, + "layout": { "icon-image": ["match", ["get", "type"], "gate", "gate", "lift_gate", "lift-gate", ""] }, + "metadata": { "mapbox:featureComponent": "walking-cycling", "mapbox:group": "Walking, cycling, etc., barriers-bridges" }, + "filter": ["==", ["get", "class"], "gate"], + "type": "symbol", + "source": "composite", + "id": "gate-label", + "paint": {}, + "source-layer": "structure" + }, + { + "id": "bridge-minor-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["track"], true, "service", ["step", ["zoom"], false, 14, true], false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 18, 10, 22, 100] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "id": "bridge-street-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], + "line-opacity": ["step", ["zoom"], 0, 14, 1] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "minzoom": 13, + "layout": { "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["match", ["get", "class"], ["primary_link", "secondary_link", "tertiary_link"], true, false], + ["==", ["get", "structure"], "bridge"], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-minor-link-case", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.4, 18, 18, 22, 180], + "line-opacity": ["step", ["zoom"], 0, 11, 1] + }, + "source-layer": "road" + }, + { + "id": "bridge-secondary-tertiary-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0, 18, 26, 22, 260], + "line-opacity": ["step", ["zoom"], 0, 10, 1] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "id": "bridge-primary-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 9, + "filter": ["all", ["==", ["get", "structure"], "bridge"], ["==", ["get", "class"], "primary"], ["==", ["geometry-type"], "LineString"]], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 28, 22, 280], + "line-opacity": ["step", ["zoom"], 0, 10, 1] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "id": "bridge-major-link-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 12, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["<=", ["get", "layer"], 1], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 44%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "id": "bridge-motorway-trunk-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + ["<=", ["get", "layer"], 1], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 11%, 44%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "id": "bridge-construction", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": ["all", ["==", ["get", "structure"], "bridge"], ["==", ["get", "class"], "construction"], ["==", ["geometry-type"], "LineString"]], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 2, 18, 20, 22, 200], + "line-color": "hsla(217, 11%, 32%, 0)", + "line-dasharray": [ + "step", + ["zoom"], + ["literal", [0.4, 0.8]], + 15, + ["literal", [0.3, 0.6]], + 16, + ["literal", [0.2, 0.3]], + 17, + ["literal", [0.2, 0.25]], + 18, + ["literal", [0.15, 0.15]] + ] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["track"], true, "service", ["step", ["zoom"], false, 14, true], false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-minor", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 18, 10, 22, 100], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": "round" }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["match", ["get", "class"], ["primary_link", "secondary_link", "tertiary_link"], true, false], + ["==", ["get", "structure"], "bridge"], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-minor-link", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.4, 18, 18, 22, 180], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 12, + "layout": { "line-cap": "round" }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["<=", ["get", "layer"], 1], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-major-link", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200], + "line-color": ["match", ["get", "class"], "motorway_link", "hsl(205, 43%, 55%)", "hsl(225, 56%, 55%)"] + }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-street", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], + "line-color": ["match", ["get", "class"], "street_limited", "hsla(230, 34%, 71%, 0)", "hsl(215, 20%, 35%)"], + "line-opacity": ["step", ["zoom"], 0, 14, 1] + }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"], "line-join": ["step", ["zoom"], "miter", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "maxzoom": 14, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["street", "street_limited"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-street-low", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.5, 18, 20, 22, 200], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["secondary", "tertiary"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-secondary-tertiary", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0, 18, 26, 22, 260], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": ["all", ["==", ["get", "structure"], "bridge"], ["==", ["get", "class"], "primary"], ["==", ["geometry-type"], "LineString"]], + "type": "line", + "source": "composite", + "id": "bridge-primary", + "paint": { "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 28, 22, 280], "line-color": "hsl(215, 20%, 35%)" }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": "round" }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + ["<=", ["get", "layer"], 1], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-motorway-trunk", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300], + "line-color": ["match", ["get", "class"], "motorway", "hsl(205, 43%, 55%)", "hsl(225, 56%, 55%)"] + }, + "source-layer": "road" + }, + { + "id": "bridge-major-link-2-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 12, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + [">=", ["get", "layer"], 2], + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.8, 22, 2], + "line-color": "hsla(217, 11%, 44%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "id": "bridge-motorway-trunk-2-case", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + [">=", ["get", "layer"], 2], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 22, 2], + "line-color": "hsla(217, 11%, 44%, 0)", + "line-gap-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" } + }, + { + "minzoom": 12, + "layout": { "line-cap": "round" }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + [">=", ["get", "layer"], 2], + ["match", ["get", "class"], ["motorway_link", "trunk_link"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-major-link-2", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0.8, 18, 20, 22, 200], + "line-color": ["match", ["get", "class"], "motorway_link", "hsl(205, 43%, 55%)", "hsl(225, 56%, 55%)"] + }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { "line-cap": ["step", ["zoom"], "butt", 14, "round"] }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + [">=", ["get", "layer"], 2], + ["match", ["get", "class"], ["motorway", "trunk"], true, false], + ["==", ["geometry-type"], "LineString"] + ], + "type": "line", + "source": "composite", + "id": "bridge-motorway-trunk-2", + "paint": { + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 3, 0.8, 18, 30, 22, 300], + "line-color": ["match", ["get", "class"], "motorway", "hsl(205, 43%, 55%)", "hsl(225, 56%, 55%)"] + }, + "source-layer": "road" + }, + { + "minzoom": 16, + "layout": { + "symbol-placement": "line", + "icon-image": ["step", ["zoom"], "oneway-small", 18, "oneway-large"], + "symbol-spacing": 200, + "icon-rotation-alignment": "map", + "icon-allow-overlap": true, + "icon-ignore-placement": true + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["==", ["get", "oneway"], "true"], + [ + "step", + ["zoom"], + ["match", ["get", "class"], ["primary", "secondary", "tertiary", "street", "street_limited"], true, false], + 16, + [ + "match", + ["get", "class"], + ["primary", "secondary", "tertiary", "street", "street_limited", "primary_link", "secondary_link", "tertiary_link", "service", "track"], + true, + false + ] + ] + ], + "type": "symbol", + "source": "composite", + "id": "bridge-oneway-arrow-blue", + "paint": {}, + "source-layer": "road" + }, + { + "minzoom": 16, + "layout": { + "symbol-placement": "line", + "icon-image": "oneway-white-small", + "symbol-spacing": 200, + "icon-rotation-alignment": "map", + "icon-allow-overlap": true, + "icon-ignore-placement": true + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, bridges" }, + "filter": [ + "all", + ["==", ["get", "structure"], "bridge"], + ["match", ["get", "class"], ["motorway", "trunk", "motorway_link", "trunk_link"], true, false], + ["==", ["get", "oneway"], "true"] + ], + "type": "symbol", + "source": "composite", + "id": "bridge-oneway-arrow-white", + "paint": {}, + "source-layer": "road" + }, + { + "id": "bridge-rail", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": ["all", ["==", ["get", "structure"], "bridge"], ["match", ["get", "class"], ["major_rail", "minor_rail"], true, false]], + "paint": { + "line-color": ["interpolate", ["linear"], ["zoom"], 13, "hsla(245, 37%, 59%, 0)", 16, "hsla(217, 0%, 47%, 0)"], + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 0.5, 20, 1] + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, bridges" } + }, + { + "id": "bridge-rail-tracks", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": ["all", ["==", ["get", "structure"], "bridge"], ["match", ["get", "class"], ["major_rail", "minor_rail"], true, false]], + "paint": { + "line-color": ["interpolate", ["linear"], ["zoom"], 13, "hsla(245, 37%, 59%, 0)", 16, "hsla(217, 0%, 47%, 0)"], + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 4, 20, 8], + "line-dasharray": [0.1, 15], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 13.75, 0, 14, 1] + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, bridges" } + }, + { + "id": "aerialway", + "type": "line", + "source": "composite", + "source-layer": "road", + "minzoom": 12, + "filter": ["==", ["get", "class"], "aerialway"], + "paint": { "line-color": "hsl(230, 54%, 85%)", "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 1, 20, 2], "line-dasharray": [4, 1] }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, elevated" } + }, + { + "minzoom": 7, + "layout": {}, + "metadata": { "mapbox:featureComponent": "admin-boundaries", "mapbox:group": "Administrative boundaries, admin" }, + "filter": ["all", ["==", ["get", "admin_level"], 1], ["==", ["get", "maritime"], "false"], ["match", ["get", "worldview"], ["all", "CN"], true, false]], + "type": "line", + "source": "composite", + "id": "admin-1-boundary-bg", + "paint": { + "line-color": "hsl(250, 30%, 79%)", + "line-width": ["interpolate", ["linear"], ["zoom"], 3, 3, 12, 6], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 7, 0, 8, 0.5], + "line-dasharray": [1, 0], + "line-blur": ["interpolate", ["linear"], ["zoom"], 3, 0, 12, 3] + }, + "source-layer": "admin" + }, + { + "minzoom": 1, + "layout": {}, + "metadata": { "mapbox:featureComponent": "admin-boundaries", "mapbox:group": "Administrative boundaries, admin" }, + "filter": ["all", ["==", ["get", "admin_level"], 0], ["==", ["get", "maritime"], "false"], ["match", ["get", "worldview"], ["all", "CN"], true, false]], + "type": "line", + "source": "composite", + "id": "admin-0-boundary-bg", + "paint": { + "line-width": ["interpolate", ["linear"], ["zoom"], 3, 4, 12, 8], + "line-color": "hsla(251, 31%, 79%, 0)", + "line-opacity": ["interpolate", ["linear"], ["zoom"], 3, 0, 4, 0.5], + "line-blur": ["interpolate", ["linear"], ["zoom"], 3, 0, 12, 2] + }, + "source-layer": "admin" + }, + { + "minzoom": 2, + "layout": {}, + "metadata": { "mapbox:featureComponent": "admin-boundaries", "mapbox:group": "Administrative boundaries, admin" }, + "filter": ["all", ["==", ["get", "admin_level"], 1], ["==", ["get", "maritime"], "false"], ["match", ["get", "worldview"], ["all", "CN"], true, false]], + "type": "line", + "source": "composite", + "id": "admin-1-boundary", + "paint": { + "line-dasharray": ["step", ["zoom"], ["literal", [2, 0]], 7, ["literal", [2, 2, 6, 2]]], + "line-width": ["interpolate", ["linear"], ["zoom"], 3, 0.5, 12, 1.5], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0, 3, 1], + "line-color": "hsl(215, 76%, 58%)" + }, + "source-layer": "admin" + }, + { + "minzoom": 1, + "layout": { "line-join": "round" }, + "metadata": { "mapbox:featureComponent": "admin-boundaries", "mapbox:group": "Administrative boundaries, admin" }, + "filter": [ + "all", + ["==", ["get", "admin_level"], 0], + ["==", ["get", "disputed"], "false"], + ["==", ["get", "maritime"], "false"], + ["match", ["get", "worldview"], ["all", "CN"], true, false] + ], + "type": "line", + "source": "composite", + "id": "admin-0-boundary", + "paint": { "line-color": "hsl(205, 50%, 45%)", "line-width": ["interpolate", ["linear"], ["zoom"], 2, 1.5, 12, 1.5], "line-dasharray": [10, 0] }, + "source-layer": "admin" + }, + { + "minzoom": 1, + "layout": {}, + "metadata": { "mapbox:featureComponent": "admin-boundaries", "mapbox:group": "Administrative boundaries, admin" }, + "filter": [ + "all", + ["==", ["get", "disputed"], "true"], + ["==", ["get", "admin_level"], 0], + ["==", ["get", "maritime"], "false"], + ["match", ["get", "worldview"], ["all", "CN"], true, false] + ], + "type": "line", + "source": "composite", + "id": "admin-0-boundary-disputed", + "paint": { + "line-color": "hsl(250, 10%, 65%)", + "line-width": ["interpolate", ["linear"], ["zoom"], 3, 0.5, 12, 2], + "line-dasharray": ["step", ["zoom"], ["literal", [3, 2, 5]], 7, ["literal", [2, 1.5]]] + }, + "source-layer": "admin" + }, + { + "minzoom": 10, + "layout": { + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "match", + ["get", "class"], + ["motorway", "trunk", "primary", "secondary", "tertiary"], + 11, + ["motorway_link", "trunk_link", "primary_link", "secondary_link", "tertiary_link", "street", "street_limited"], + 9.9, + 7.15 + ], + 18, + [ + "match", + ["get", "class"], + ["motorway", "trunk", "primary", "secondary", "tertiary"], + 17.6, + ["motorway_link", "trunk_link", "primary_link", "secondary_link", "tertiary_link", "street", "street_limited"], + 15.400000000000002, + 14.3 + ] + ], + "text-max-angle": 30, + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "symbol-placement": "line", + "text-padding": 1, + "text-rotation-alignment": "map", + "text-pitch-alignment": "viewport", + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-letter-spacing": 0.01 + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, road-labels" }, + "filter": [ + "all", + ["has", "name"], + [ + "step", + ["zoom"], + ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary", "tertiary"], true, false], + 12, + ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary", "tertiary", "street", "street_limited"], true, false], + 15, + ["match", ["get", "class"], ["path", "pedestrian", "golf", "ferry", "aerialway"], false, true] + ] + ], + "type": "symbol", + "source": "composite", + "id": "road-label", + "paint": { + "text-color": "#e6e6e6", + "text-halo-color": ["match", ["get", "class"], ["motorway", "trunk"], "hsla(230, 37%, 63%, 0.75)", "hsla(230, 37%, 63%, 0)"], + "text-halo-width": 1, + "text-halo-blur": 1 + }, + "source-layer": "road" + }, + { + "minzoom": 15, + "layout": { + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "icon-image": "intersection", + "icon-text-fit": "both", + "icon-text-fit-padding": [1, 2, 1, 2], + "text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 15, 9, 18, 12], + "text-font": ["DIN Pro Bold", "Arial Unicode MS Bold"] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, road-labels" }, + "filter": ["all", ["==", ["get", "class"], "intersection"], ["has", "name"]], + "type": "symbol", + "source": "composite", + "id": "road-intersection", + "paint": { "text-color": "hsl(230, 40%, 52%)" }, + "source-layer": "road" + }, + { + "minzoom": 6, + "layout": { + "text-size": 9, + "icon-image": [ + "case", + ["has", "shield_beta"], + [ + "coalesce", + ["image", ["concat", ["get", "shield_beta"], "-", ["to-string", ["get", "reflen"]]]], + ["image", ["concat", "default-", ["to-string", ["get", "reflen"]]]] + ], + ["concat", ["get", "shield"], "-", ["to-string", ["get", "reflen"]]] + ], + "icon-rotation-alignment": "viewport", + "text-max-angle": 38, + "symbol-spacing": ["interpolate", ["linear"], ["zoom"], 11, 1333.3333333333333, 14, 2000], + "text-font": ["DIN Pro Bold", "Arial Unicode MS Bold"], + "symbol-placement": ["step", ["zoom"], "point", 11, "line"], + "text-rotation-alignment": "viewport", + "text-field": ["get", "ref"], + "text-letter-spacing": 0.05, + "icon-padding": 6.66667 + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, road-labels" }, + "filter": [ + "all", + ["has", "reflen"], + ["<=", ["get", "reflen"], 6], + ["match", ["get", "class"], ["pedestrian", "service"], false, true], + [ + "step", + ["zoom"], + ["==", ["geometry-type"], "Point"], + 11, + [">", ["get", "len"], 5000], + 12, + [">", ["get", "len"], 2500], + 13, + [">", ["get", "len"], 1000], + 14, + true + ] + ], + "type": "symbol", + "source": "composite", + "id": "road-number-shield", + "paint": { + "text-color": [ + "case", + [ + "all", + ["has", "shield_text_color_beta"], + ["to-boolean", ["coalesce", ["image", ["concat", ["get", "shield_beta"], "-", ["to-string", ["get", "reflen"]]]], ""]] + ], + [ + "match", + ["get", "shield_text_color_beta"], + "white", + "hsl(0, 0%, 78%)", + "yellow", + "hsl(50, 70%, 54%)", + "orange", + "hsl(25, 70%, 61%)", + "blue", + "hsl(230, 40%, 32%)", + "red", + "hsl(0, 61%, 46%)", + "green", + "hsl(140, 52%, 29%)", + "hsl(230, 13%, 10%)" + ], + [ + "match", + ["get", "shield_text_color"], + "white", + "hsl(0, 0%, 78%)", + "yellow", + "hsl(50, 70%, 54%)", + "orange", + "hsl(25, 70%, 61%)", + "blue", + "hsl(230, 40%, 32%)", + "red", + "hsl(0, 61%, 46%)", + "green", + "hsl(140, 52%, 29%)", + "hsl(230, 13%, 10%)" + ] + ] + }, + "source-layer": "road" + }, + { + "minzoom": 14, + "layout": { + "text-field": ["get", "ref"], + "text-size": 9, + "icon-image": ["concat", "motorway-exit-", ["to-string", ["get", "reflen"]]], + "text-font": ["DIN Pro Bold", "Arial Unicode MS Bold"] + }, + "metadata": { "mapbox:featureComponent": "road-network", "mapbox:group": "Road network, road-labels" }, + "filter": ["all", ["has", "reflen"], ["<=", ["get", "reflen"], 9]], + "type": "symbol", + "source": "composite", + "id": "road-exit-shield", + "paint": { "text-color": "hsl(0, 0%, 78%)", "text-translate": [0, 0] }, + "source-layer": "motorway_junction" + }, + { + "minzoom": 15, + "layout": { + "text-size": ["interpolate", ["linear"], ["zoom"], 10, 8.450000000000001, 18, 16.900000000000002], + "text-max-angle": 30, + "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"], + "symbol-placement": "line", + "text-padding": 1, + "text-rotation-alignment": "map", + "text-pitch-alignment": "viewport", + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-letter-spacing": 0.01 + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, ferry-aerialway-labels" }, + "filter": ["match", ["get", "class"], "aerialway", true, "ferry", true, false], + "type": "symbol", + "source": "composite", + "id": "ferry-aerialway-label", + "paint": { + "text-color": ["match", ["get", "class"], "ferry", "hsl(185, 58%, 70%)", "hsl(230, 54%, 85%)"], + "text-halo-color": ["match", ["get", "class"], "ferry", "hsl(185, 90%, 35%)", "hsla(230, 32%, 99%, 0)"], + "text-halo-width": 1, + "text-halo-blur": 1 + }, + "source-layer": "road" + }, + { + "minzoom": 13, + "layout": { + "text-font": ["DIN Pro Italic", "Arial Unicode MS Regular"], + "text-max-angle": 30, + "symbol-spacing": ["interpolate", ["linear", 1], ["zoom"], 15, 250, 17, 400], + "text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 18, 18], + "symbol-placement": "line", + "text-pitch-alignment": "viewport", + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]] + }, + "metadata": { "mapbox:featureComponent": "natural-features", "mapbox:group": "Natural features, natural-labels" }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + ["canal", "river", "stream", "disputed_canal", "disputed_river", "disputed_stream"], + ["match", ["get", "worldview"], ["all", "CN"], true, false], + false + ], + ["==", ["geometry-type"], "LineString"] + ], + "type": "symbol", + "source": "composite", + "id": "waterway-label", + "paint": { "text-color": "hsl(185, 58%, 90%)", "text-halo-color": "hsla(230, 29%, 62%, 0.5)" }, + "source-layer": "natural_label" + }, + { + "minzoom": 4, + "layout": { + "text-size": [ + "step", + ["zoom"], + ["step", ["get", "sizerank"], 19.8, 5, 13.200000000000001], + 17, + ["step", ["get", "sizerank"], 19.8, 13, 13.200000000000001] + ], + "text-max-angle": 30, + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "symbol-placement": "line-center", + "text-pitch-alignment": "viewport" + }, + "metadata": { "mapbox:featureComponent": "natural-features", "mapbox:group": "Natural features, natural-labels" }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + ["glacier", "landform", "disputed_glacier", "disputed_landform"], + ["match", ["get", "worldview"], ["all", "CN"], true, false], + false + ], + ["<=", ["get", "filterrank"], 0], + ["==", ["geometry-type"], "LineString"] + ], + "type": "symbol", + "source": "composite", + "id": "natural-line-label", + "paint": { "text-halo-width": 0.5, "text-halo-color": "hsla(230, 29%, 62%, 0)", "text-halo-blur": 0.5, "text-color": "hsl(236, 50%, 95%)" }, + "source-layer": "natural_label" + }, + { + "minzoom": 4, + "layout": { + "text-size": [ + "step", + ["zoom"], + ["step", ["get", "sizerank"], 19.8, 5, 13.200000000000001], + 17, + ["step", ["get", "sizerank"], 19.8, 13, 13.200000000000001] + ], + "icon-image": ["get", "maki"], + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "text-offset": [ + "step", + ["zoom"], + ["step", ["get", "sizerank"], ["literal", [0, 0]], 5, ["literal", [0, 0.6499999999999999]]], + 17, + ["step", ["get", "sizerank"], ["literal", [0, 0]], 13, ["literal", [0, 0.75]]] + ], + "text-anchor": ["step", ["zoom"], ["step", ["get", "sizerank"], "center", 5, "top"], 17, ["step", ["get", "sizerank"], "center", 13, "top"]], + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]] + }, + "metadata": { "mapbox:featureComponent": "natural-features", "mapbox:group": "Natural features, natural-labels" }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + [ + "dock", + "glacier", + "landform", + "water_feature", + "wetland", + "disputed_dock", + "disputed_glacier", + "disputed_landform", + "disputed_water_feature", + "disputed_wetland" + ], + ["match", ["get", "worldview"], ["all", "CN"], true, false], + false + ], + ["<=", ["get", "filterrank"], 0], + ["==", ["geometry-type"], "Point"] + ], + "type": "symbol", + "source": "composite", + "id": "natural-point-label", + "paint": { + "icon-opacity": ["step", ["zoom"], ["step", ["get", "sizerank"], 0, 5, 1], 17, ["step", ["get", "sizerank"], 0, 13, 1]], + "text-halo-color": "hsla(230, 32%, 99%, 0)", + "text-halo-width": 0.5, + "text-halo-blur": 0.5, + "text-color": "hsl(236, 50%, 95%)" + }, + "source-layer": "natural_label" + }, + { + "minzoom": 1, + "layout": { + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 0, + ["*", ["-", 16, ["sqrt", ["get", "sizerank"]]], 1], + 22, + ["*", ["-", 22, ["sqrt", ["get", "sizerank"]]], 1] + ], + "text-max-angle": 30, + "text-letter-spacing": ["match", ["get", "class"], "ocean", 0.25, ["sea", "bay"], 0.15, 0], + "text-font": ["DIN Pro Italic", "Arial Unicode MS Regular"], + "symbol-placement": "line-center", + "text-pitch-alignment": "viewport", + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]] + }, + "metadata": { "mapbox:featureComponent": "natural-features", "mapbox:group": "Natural features, natural-labels" }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + ["bay", "ocean", "reservoir", "sea", "water", "disputed_bay", "disputed_ocean", "disputed_reservoir", "disputed_sea", "disputed_water"], + ["match", ["get", "worldview"], ["all", "CN"], true, false], + false + ], + ["==", ["geometry-type"], "LineString"] + ], + "type": "symbol", + "source": "composite", + "id": "water-line-label", + "paint": { + "text-color": ["match", ["get", "class"], ["bay", "ocean", "sea"], "hsl(185, 86%, 55%)", "hsl(185, 58%, 90%)"], + "text-halo-color": "hsla(230, 29%, 62%, 0.5)" + }, + "source-layer": "natural_label" + }, + { + "minzoom": 1, + "layout": { + "text-line-height": 1.3, + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 0, + ["*", ["-", 16, ["sqrt", ["get", "sizerank"]]], 1], + 22, + ["*", ["-", 22, ["sqrt", ["get", "sizerank"]]], 1] + ], + "text-font": ["DIN Pro Italic", "Arial Unicode MS Regular"], + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-letter-spacing": ["match", ["get", "class"], "ocean", 0.25, ["bay", "sea"], 0.15, 0.01], + "text-max-width": ["match", ["get", "class"], "ocean", 4, "sea", 5, ["bay", "water"], 7, 10] + }, + "metadata": { "mapbox:featureComponent": "natural-features", "mapbox:group": "Natural features, natural-labels" }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + ["bay", "ocean", "reservoir", "sea", "water", "disputed_bay", "disputed_ocean", "disputed_reservoir", "disputed_sea", "disputed_water"], + ["match", ["get", "worldview"], ["all", "CN"], true, false], + false + ], + ["==", ["geometry-type"], "Point"] + ], + "type": "symbol", + "source": "composite", + "id": "water-point-label", + "paint": { + "text-color": ["match", ["get", "class"], ["bay", "ocean", "sea"], "hsl(185, 86%, 55%)", "hsl(185, 58%, 90%)"], + "text-halo-color": "hsla(230, 29%, 62%, 0.5)" + }, + "source-layer": "natural_label" + }, + { + "minzoom": 6, + "layout": { + "text-size": [ + "step", + ["zoom"], + ["step", ["get", "sizerank"], 19.8, 5, 13.200000000000001], + 17, + ["step", ["get", "sizerank"], 19.8, 13, 13.200000000000001] + ], + "icon-image": ["case", ["has", "maki_beta"], ["coalesce", ["image", ["get", "maki_beta"]], ["image", ["get", "maki"]]], ["image", ["get", "maki"]]], + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "text-offset": [ + "step", + ["zoom"], + ["step", ["get", "sizerank"], ["literal", [0, 0]], 5, ["literal", [0, 0.8999999999999999]]], + 17, + ["step", ["get", "sizerank"], ["literal", [0, 0]], 13, ["literal", [0, 0.8999999999999999]]] + ], + "text-anchor": ["step", ["zoom"], ["step", ["get", "sizerank"], "center", 5, "top"], 17, ["step", ["get", "sizerank"], "center", 13, "top"]], + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "symbol-placement": "line" + }, + "metadata": { "mapbox:featureComponent": "point-of-interest-labels", "mapbox:group": "Point of interest labels, poi-labels" }, + "filter": [ + "<=", + ["get", "filterrank"], + ["+", ["step", ["zoom"], 0, 16, 1, 17, 2], ["match", ["get", "class"], "education", 1, "landmark", 2, "medical", 1, "motorist", 3, "park_like", 1, 0]] + ], + "type": "symbol", + "source": "composite", + "id": "poi-label", + "paint": { + "icon-opacity": ["step", ["zoom"], ["step", ["get", "sizerank"], 0, 5, 1], 17, ["step", ["get", "sizerank"], 0, 13, 1]], + "text-halo-color": "hsla(230, 32%, 99%, 0)", + "text-halo-width": 0.5, + "text-halo-blur": 0.5, + "text-color": ["match", ["get", "class"], "park_like", "hsl(150, 50%, 85%)", "medical", "hsl(0, 50%, 85%)", "hsl(236, 50%, 95%)"] + }, + "source-layer": "poi_label" + }, + { + "minzoom": 8, + "layout": { + "text-line-height": 1.1, + "text-size": ["step", ["get", "sizerank"], 19.8, 9, 13.200000000000001], + "icon-image": ["get", "maki"], + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "text-offset": [0, 0.8999999999999999], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": [ + "step", + ["get", "sizerank"], + [ + "case", + ["has", "ref"], + ["concat", ["get", "ref"], " -\n", ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]]], + ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]] + ], + 15, + ["get", "ref"] + ], + "text-letter-spacing": 0.01, + "text-max-width": 9 + }, + "metadata": { "mapbox:featureComponent": "transit", "mapbox:group": "Transit, transit-labels" }, + "filter": [ + "match", + ["get", "class"], + ["military", "civil", "disputed_military", "disputed_civil"], + ["match", ["get", "worldview"], ["all", "CN"], true, false], + false + ], + "type": "symbol", + "source": "composite", + "id": "airport-label", + "paint": { "text-color": "hsl(230, 77%, 60%)", "text-halo-color": "hsla(230, 32%, 99%, 0)", "text-halo-width": 1 }, + "source-layer": "airport_label" + }, + { + "minzoom": 10, + "layout": { + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-transform": "uppercase", + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "text-letter-spacing": ["match", ["get", "type"], "suburb", 0.15, 0.05], + "text-max-width": 7, + "text-padding": 3, + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0, 1, 1], + ["zoom"], + 11, + ["match", ["get", "type"], "suburb", 12.100000000000001, 11.55], + 15, + ["match", ["get", "type"], "suburb", 16.5, 15.400000000000002] + ] + }, + "metadata": { "mapbox:featureComponent": "place-labels", "mapbox:group": "Place labels, place-labels" }, + "maxzoom": 15, + "filter": [ + "all", + [ + "match", + ["get", "class"], + ["settlement_subdivision", "disputed_settlement_subdivision"], + ["match", ["get", "worldview"], ["all", "CN"], true, false], + false + ], + ["<=", ["get", "filterrank"], 1] + ], + "type": "symbol", + "source": "composite", + "id": "settlement-subdivision-label", + "paint": { "text-halo-color": "hsla(230, 37%, 63%, 0.75)", "text-halo-width": 1, "text-color": "hsl(215, 28%, 100%)", "text-halo-blur": 0.5 }, + "source-layer": "place_label" + }, + { + "minzoom": 2, + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + ["cubic-bezier", 0.2, 0, 0.9, 1], + ["zoom"], + 3, + ["step", ["get", "symbolrank"], 12.100000000000001, 9, 11], + 6, + ["step", ["get", "symbolrank"], 15.400000000000002, 9, 13.200000000000001, 12, 11], + 8, + ["step", ["get", "symbolrank"], 17.6, 9, 15.400000000000002, 12, 13.200000000000001, 15, 11], + 13, + ["step", ["get", "symbolrank"], 24.200000000000003, 9, 22, 12, 17.6, 15, 15.400000000000002] + ], + "text-radial-offset": ["step", ["zoom"], ["match", ["get", "capital"], 2, 0.6, 0.55], 8, 0], + "symbol-sort-key": ["get", "symbolrank"], + "icon-image": [ + "step", + ["zoom"], + ["case", ["==", ["get", "capital"], 2], "border-dot-13", ["step", ["get", "symbolrank"], "dot-11", 9, "dot-10", 11, "dot-9"]], + 8, + "" + ], + "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"], + "text-justify": "auto", + "text-anchor": ["step", ["zoom"], ["get", "text_anchor"], 8, "center"], + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-max-width": 7 + }, + "metadata": { "mapbox:featureComponent": "place-labels", "mapbox:group": "Place labels, place-labels" }, + "maxzoom": 13, + "filter": [ + "all", + ["<=", ["get", "filterrank"], 1], + ["match", ["get", "class"], ["settlement", "disputed_settlement"], ["match", ["get", "worldview"], ["all", "CN"], true, false], false], + [ + "step", + ["zoom"], + [">", ["get", "symbolrank"], 6], + 4, + [">=", ["get", "symbolrank"], 7], + 6, + [">=", ["get", "symbolrank"], 8], + 7, + [">=", ["get", "symbolrank"], 10], + 10, + [">=", ["get", "symbolrank"], 11], + 11, + [">=", ["get", "symbolrank"], 13], + 12, + [">=", ["get", "symbolrank"], 15] + ] + ], + "type": "symbol", + "source": "composite", + "id": "settlement-minor-label", + "paint": { "text-color": "hsl(215, 28%, 93%)", "text-halo-color": "hsla(230, 37%, 63%, 0)", "text-halo-width": 1, "text-halo-blur": 1 }, + "source-layer": "place_label" + }, + { + "minzoom": 2, + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + ["cubic-bezier", 0.2, 0, 0.9, 1], + ["zoom"], + 3, + ["step", ["get", "symbolrank"], 16.900000000000002, 6, 14.3], + 6, + ["step", ["get", "symbolrank"], 23.400000000000002, 6, 20.8, 7, 18.2], + 8, + ["step", ["get", "symbolrank"], 26, 9, 20.8, 10, 18.2], + 15, + ["step", ["get", "symbolrank"], 31.200000000000003, 9, 26, 12, 20.8, 15, 18.2] + ], + "text-radial-offset": ["step", ["zoom"], ["match", ["get", "capital"], 2, 0.6, 0.55], 8, 0], + "symbol-sort-key": ["get", "symbolrank"], + "icon-image": [ + "step", + ["zoom"], + ["case", ["==", ["get", "capital"], 2], "border-dot-13", ["step", ["get", "symbolrank"], "dot-11", 9, "dot-10", 11, "dot-9"]], + 8, + "" + ], + "text-font": ["DIN Pro Bold", "Arial Unicode MS Regular"], + "text-justify": [ + "step", + ["zoom"], + ["match", ["get", "text_anchor"], ["left", "bottom-left", "top-left"], "left", ["right", "bottom-right", "top-right"], "right", "center"], + 8, + "center" + ], + "text-anchor": ["step", ["zoom"], ["get", "text_anchor"], 8, "center"], + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-max-width": 7 + }, + "metadata": { "mapbox:featureComponent": "place-labels", "mapbox:group": "Place labels, place-labels" }, + "maxzoom": 15, + "filter": [ + "all", + ["<=", ["get", "filterrank"], 1], + ["match", ["get", "class"], ["settlement", "disputed_settlement"], ["match", ["get", "worldview"], ["all", "CN"], true, false], false], + [ + "step", + ["zoom"], + false, + 2, + ["<=", ["get", "symbolrank"], 6], + 4, + ["<", ["get", "symbolrank"], 7], + 6, + ["<", ["get", "symbolrank"], 8], + 7, + ["<", ["get", "symbolrank"], 10], + 10, + ["<", ["get", "symbolrank"], 11], + 11, + ["<", ["get", "symbolrank"], 13], + 12, + ["<", ["get", "symbolrank"], 15], + 13, + [">=", ["get", "symbolrank"], 11], + 14, + [">=", ["get", "symbolrank"], 15] + ] + ], + "type": "symbol", + "source": "composite", + "id": "settlement-major-label", + "paint": { "text-color": "hsl(215, 28%, 93%)", "text-halo-color": "hsla(230, 37%, 63%, 0)", "text-halo-width": 1, "text-halo-blur": 1 }, + "source-layer": "place_label" + }, + { + "minzoom": 3, + "layout": { + "text-size": [ + "interpolate", + ["cubic-bezier", 0.85, 0.7, 0.65, 1], + ["zoom"], + 4, + ["step", ["get", "symbolrank"], 10.799999999999999, 6, 9.6, 7, 8.4], + 9, + ["step", ["get", "symbolrank"], 25.2, 6, 19.2, 7, 16.8] + ], + "text-transform": "uppercase", + "text-font": ["DIN Pro Bold", "Arial Unicode MS Bold"], + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-letter-spacing": 0.15, + "text-max-width": 6 + }, + "metadata": { "mapbox:featureComponent": "place-labels", "mapbox:group": "Place labels, place-labels" }, + "maxzoom": 9, + "filter": ["match", ["get", "class"], ["state", "disputed_state"], ["match", ["get", "worldview"], ["all", "CN"], true, false], false], + "type": "symbol", + "source": "composite", + "id": "state-label", + "paint": { "text-color": "hsl(215, 28%, 93%)", "text-halo-color": "hsla(230, 37%, 63%, 0)", "text-halo-width": 1, "text-opacity": 0.5 }, + "source-layer": "place_label" + }, + { + "minzoom": 1, + "layout": { + "icon-image": "", + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-line-height": 1.1, + "text-max-width": 6, + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "text-radial-offset": ["step", ["zoom"], 0.6, 8, 0], + "text-justify": [ + "step", + ["zoom"], + ["match", ["get", "text_anchor"], ["left", "bottom-left", "top-left"], "left", ["right", "bottom-right", "top-right"], "right", "center"], + 7, + "auto" + ], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.2, 0, 0.7, 1], + ["zoom"], + 1, + ["step", ["get", "symbolrank"], 12.1, 4, 9.9, 5, 8.8], + 9, + ["step", ["get", "symbolrank"], 30.799999999999997, 4, 26.599999999999998, 5, 23.799999999999997] + ] + }, + "metadata": { "mapbox:featureComponent": "place-labels", "mapbox:group": "Place labels, place-labels" }, + "maxzoom": 10, + "filter": ["match", ["get", "class"], ["country", "disputed_country"], ["match", ["get", "worldview"], ["all", "CN"], true, false], false], + "type": "symbol", + "source": "composite", + "id": "country-label", + "paint": { + "icon-opacity": ["step", ["zoom"], ["case", ["has", "text_anchor"], 1, 0], 7, 0], + "text-color": "hsl(215, 28%, 93%)", + "text-halo-color": ["interpolate", ["linear"], ["zoom"], 2, "hsla(230, 37%, 63%, 0.75)", 3, "hsla(230, 37%, 63%, 0)"], + "text-halo-width": 1.25 + }, + "source-layer": "place_label" + }, + { + "minzoom": 0.75, + "layout": { + "text-field": ["coalesce", ["get", "name_zh-Hans"], ["get", "name"]], + "text-line-height": 1.1, + "text-max-width": 6, + "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], + "text-size": ["interpolate", ["exponential", 0.5], ["zoom"], 0, 10, 2.5, 15], + "text-transform": "uppercase", + "text-letter-spacing": 0.05 + }, + "metadata": { "mapbox:featureComponent": "place-labels", "mapbox:group": "Place labels, place-labels" }, + "maxzoom": 3, + "filter": ["==", ["get", "class"], "continent"], + "type": "symbol", + "source": "composite", + "id": "continent-label", + "paint": { + "text-color": "hsl(215, 28%, 93%)", + "text-halo-color": ["interpolate", ["linear"], ["zoom"], 0, "hsla(230, 37%, 63%, 0.75)", 3, "hsla(230, 37%, 63%, 0)"], + "text-halo-width": 1.5, + "text-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.8, 1.5, 0.5, 2.5, 0] + }, + "source-layer": "natural_label" + } + ], + "created": "2022-11-11T07:06:36.814Z", + "modified": "2022-11-15T10:20:07.721Z", + "id": "clac5oby2000c14o27c4d529k", + "owner": "Vothing", + "visibility": "private", + "protected": false, + "draft": false +} -- Gitblit v1.9.3