Created
December 2, 2024 15:33
-
-
Save trolleway/b82b130079544662ed5a47cc5bb03797 to your computer and use it in GitHub Desktop.
my mvt style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": 8, | |
| "name": "big font", | |
| "metadata": { | |
| "mapbox:type": "default", | |
| "mapbox:origin": "outdoors-v12", | |
| "mapbox:sdk-support": { | |
| "android": "11.0.0", | |
| "ios": "11.0.0", | |
| "js": "3.0.0" | |
| }, | |
| "mapbox:autocomposite": true, | |
| "mapbox:groups": { | |
| "Terrain, terrain-labels": { | |
| "name": "Terrain, terrain-labels", | |
| "collapsed": true | |
| }, | |
| "Transit, transit-labels": { | |
| "name": "Transit, transit-labels", | |
| "collapsed": true | |
| }, | |
| "Administrative boundaries, admin": { | |
| "name": "Administrative boundaries, admin", | |
| "collapsed": true | |
| }, | |
| "Land & water, built": { | |
| "name": "Land & water, built", | |
| "collapsed": true | |
| }, | |
| "Transit, bridges": {"name": "Transit, bridges", "collapsed": true}, | |
| "Terrain, surface": {"name": "Terrain, surface", "collapsed": true}, | |
| "Buildings, building-labels": { | |
| "name": "Buildings, building-labels", | |
| "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": true | |
| }, | |
| "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": false | |
| }, | |
| "Walking, cycling, etc., barriers-bridges": { | |
| "name": "Walking, cycling, etc., barriers-bridges", | |
| "collapsed": true | |
| }, | |
| "Place labels, place-labels": { | |
| "name": "Place labels, place-labels", | |
| "collapsed": true | |
| }, | |
| "Transit, ferries": {"name": "Transit, ferries", "collapsed": true}, | |
| "Transit, elevated": { | |
| "name": "Transit, elevated", | |
| "collapsed": true | |
| }, | |
| "Point of interest labels, poi-labels": { | |
| "name": "Point of interest labels, poi-labels", | |
| "collapsed": true | |
| }, | |
| "Walking, cycling, etc., tunnels": { | |
| "name": "Walking, cycling, etc., tunnels", | |
| "collapsed": true | |
| }, | |
| "Terrain, land": {"name": "Terrain, land", "collapsed": true}, | |
| "Road network, tunnels-case": { | |
| "name": "Road network, tunnels-case", | |
| "collapsed": true | |
| }, | |
| "Walking, cycling, etc., walking-cycling-labels": { | |
| "name": "Walking, cycling, etc., walking-cycling-labels", | |
| "collapsed": true | |
| }, | |
| "Walking, cycling, etc., surface": { | |
| "name": "Walking, cycling, etc., surface", | |
| "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 | |
| } | |
| }, | |
| "mapbox:uiParadigm": "layers", | |
| "mapbox:decompiler": { | |
| "id": "cli8zdgj102q701qu2w8b3d4s", | |
| "componentVersion": "16.0.0", | |
| "strata": [ | |
| { | |
| "id": "outdoors-v12", | |
| "order": [ | |
| ["land-and-water", "land"], | |
| ["land-and-water", "water"], | |
| ["terrain", "land"], | |
| ["land-and-water", "built"], | |
| ["transit", "built"], | |
| ["buildings", "built"], | |
| ["road-network", "tunnels-case"], | |
| ["walking-cycling", "tunnels"], | |
| ["road-network", "tunnels"], | |
| ["terrain", "surface"], | |
| ["transit", "ferries"], | |
| ["walking-cycling", "surface"], | |
| ["road-network", "surface"], | |
| ["transit", "surface"], | |
| ["road-network", "surface-icons"], | |
| ["walking-cycling", "barriers-bridges"], | |
| ["road-network", "bridges"], | |
| ["transit", "bridges"], | |
| ["buildings", "extruded"], | |
| ["transit", "elevated"], | |
| ["admin-boundaries", "admin"], | |
| ["terrain", "terrain-labels"], | |
| ["buildings", "building-labels"], | |
| ["road-network", "road-labels"], | |
| ["walking-cycling", "walking-cycling-labels"], | |
| ["transit", "ferry-aerialway-labels"], | |
| ["natural-features", "natural-labels"], | |
| ["point-of-interest-labels", "poi-labels"], | |
| ["transit", "transit-labels"], | |
| ["place-labels", "place-labels"] | |
| ] | |
| } | |
| ], | |
| "components": { | |
| "road-network": "16.0.0", | |
| "natural-features": "16.0.0", | |
| "place-labels": "16.0.0", | |
| "admin-boundaries": "16.0.0", | |
| "point-of-interest-labels": "16.0.0", | |
| "walking-cycling": "16.0.0", | |
| "transit": "16.0.0", | |
| "terrain": "16.0.0", | |
| "land-and-water": "16.0.0", | |
| "buildings": "16.0.0" | |
| }, | |
| "propConfig": { | |
| "road-network": { | |
| "colorRoad": "#cca39e", | |
| "crosswalks": true, | |
| "iconSaturation": -0.5, | |
| "colorRoadLabel": "hsl(0,0%, 0%)", | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "roadsSize": 1.5, | |
| "colorMotorwayTrunk": "hsl(25, 90%, 75%)", | |
| "colorPathOutline": "hsl(35, 80%, 48%)", | |
| "labelStyle": "Outdoors", | |
| "colorRoadOutline": "#6e6e59" | |
| }, | |
| "natural-features": { | |
| "poiIconBackground": "Circle", | |
| "poiIconScale": 0.8, | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "colorWater": "hsl(205, 75%, 70%)", | |
| "colorPoi": "hsl(340, 10%, 50%)", | |
| "density": 4 | |
| }, | |
| "place-labels": { | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "colorPlaceLabel": "hsl(230, 29%, 25%)", | |
| "settlementSubdivisionsDensity": 3, | |
| "settlementsMajorSize": 1.6, | |
| "settlementsMinorSize": 1.8, | |
| "settlementSubdivisionsSize": 1.7 | |
| }, | |
| "admin-boundaries": { | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "colorAdminBoundary": "hsl(350, 30%, 50%)", | |
| "admin0DashPattern": "Dash on zoom" | |
| }, | |
| "point-of-interest-labels": { | |
| "educationDensity": 2, | |
| "commercialServicesDensity": 2, | |
| "generalDensity": 2, | |
| "colorPoiEducation": "hsl(30, 60%, 40%)", | |
| "colorPoiFoodAndDrink": "hsl(35, 80%, 50%)", | |
| "sportAndLeisureDensity": 4, | |
| "artsAndEntertainmentDensity": 2, | |
| "poiIconScale": 0.8, | |
| "parkLikeDensity": 4, | |
| "colorPoi": "hsl(340, 10%, 50%)", | |
| "colorPoiParkLike": "hsl(100, 80%, 30%)", | |
| "foodAndDrinkDensity": 2, | |
| "historicDensity": 3, | |
| "colorPoiMedical": "hsl(10, 60%, 55%)", | |
| "placeLikeDensity": 2, | |
| "lodgingDensity": 2, | |
| "industrialDensity": 2, | |
| "storeLikeDensity": 2, | |
| "landmarkDensity": 3, | |
| "poiIconBackground": "Circle", | |
| "motoristDensity": 3, | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "buildingDensity": 2, | |
| "controlDensityByClass": true, | |
| "medicalDensity": 3, | |
| "religionDensity": 2, | |
| "foodAndDrinkStoresDensity": 3, | |
| "colorPoiSportAndLeisure": "hsl(210, 60%, 50%)", | |
| "publicFacilitiesDensity": 2, | |
| "visitorAmenitiesDensity": 4 | |
| }, | |
| "walking-cycling": { | |
| "walkingPathDashPattern": "Short dash", | |
| "controlDashStyle": true, | |
| "colorRoad": "#cca39e", | |
| "colorGreenspace": "hsl(98, 55%, 70%)", | |
| "colorPoi": "hsl(340, 10%, 50%)", | |
| "colorPoiParkLike": "hsl(100, 80%, 30%)", | |
| "colorRoadLabel": "hsl(0,0%, 0%)", | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "roadsSize": 1.5, | |
| "gatesFencesHedges": true, | |
| "trailDashPattern": "Long dash", | |
| "colorPathOutline": "hsl(35, 80%, 48%)", | |
| "cyclewayPisteDashPattern": "Solid", | |
| "colorRoadOutline": "#6e6e59" | |
| }, | |
| "transit": { | |
| "poiIconScale": 0.8, | |
| "colorPoi": "hsl(340, 10%, 50%)", | |
| "colorAirport": "hsl(230, 40%, 55%)", | |
| "iconSaturation": -0.5, | |
| "colorTransit": "hsl(230, 50%, 60%)", | |
| "poiIconBackground": "Rectangle", | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "colorWater": "hsl(205, 75%, 70%)", | |
| "roadsSize": 1.5, | |
| "colorRoadOutline": "#6e6e59" | |
| }, | |
| "terrain": { | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "colorGreenspace": "hsl(98, 55%, 70%)", | |
| "colorPoiParkLike": "hsl(100, 80%, 30%)", | |
| "colorPoi": "hsl(340, 10%, 50%)", | |
| "contours": true, | |
| "cliffs": true, | |
| "hillshadeStyle": "Outdoors" | |
| }, | |
| "land-and-water": { | |
| "colorEducation": "hsl(40, 45%, 78%)", | |
| "landStyle": "Outdoors", | |
| "colorGreenspace": "hsl(98, 55%, 70%)", | |
| "colorAirport": "hsl(230, 40%, 55%)", | |
| "colorIndustrialArea": "hsl(230, 20%, 85%)", | |
| "colorMedical": "hsl(20, 45%, 82%)", | |
| "transitionLandOnZoom": false, | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "colorWater": "hsl(205, 75%, 70%)", | |
| "colorCommercialArea": "hsl(55, 45%, 85%)", | |
| "bathymetry": true | |
| }, | |
| "buildings": { | |
| "colorBase": "hsl(60, 20%, 85%)", | |
| "colorBuilding": "hsl(50, 15%, 75%)", | |
| "colorUnderground": "hsl(260, 60%, 85%)", | |
| "underground": true, | |
| "buildingEntrances": true | |
| } | |
| } | |
| } | |
| }, | |
| "center": [38.710304457230336, 55.33876694708138], | |
| "zoom": 15.789049078355841, | |
| "bearing": 0, | |
| "pitch": 0, | |
| "fog": { | |
| "range": [1, 20], | |
| "color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 4, | |
| "hsl(200, 100%, 100%)", | |
| 6, | |
| "hsl(200, 50%, 90%)" | |
| ], | |
| "high-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 4, | |
| "hsl(200, 100%, 60%)", | |
| 6, | |
| "hsl(310, 60%, 80%)" | |
| ], | |
| "space-color": [ | |
| "interpolate", | |
| ["exponential", 1.2], | |
| ["zoom"], | |
| 4, | |
| "hsl(205, 10%, 10%)", | |
| 6, | |
| "hsl(205, 60%, 50%)" | |
| ], | |
| "horizon-blend": [ | |
| "interpolate", | |
| ["exponential", 1.2], | |
| ["zoom"], | |
| 4, | |
| 0.01, | |
| 6, | |
| 0.1 | |
| ], | |
| "star-intensity": [ | |
| "interpolate", | |
| ["exponential", 1.2], | |
| ["zoom"], | |
| 4, | |
| 0.1, | |
| 6, | |
| 0 | |
| ] | |
| }, | |
| "sources": { | |
| "composite": { | |
| "url": "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2", | |
| "type": "vector" | |
| } | |
| }, | |
| "sprite": "mapbox://sprites/trolleway/cli8zdgj102q701qu2w8b3d4s/bb9mbj04u5qpcecxgqgx1372l", | |
| "glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf", | |
| "projection": {"name": "globe"}, | |
| "layers": [ | |
| { | |
| "id": "land", | |
| "type": "background", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, land" | |
| }, | |
| "layout": {}, | |
| "paint": {"background-color": "hsl(60, 20%, 85%)"} | |
| }, | |
| { | |
| "id": "landcover", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, land" | |
| }, | |
| "source": "composite", | |
| "source-layer": "landcover", | |
| "maxzoom": 12, | |
| "layout": {}, | |
| "paint": { | |
| "fill-color": [ | |
| "match", | |
| ["get", "class"], | |
| "wood", | |
| "hsla(103, 50%, 60%, 0.8)", | |
| "scrub", | |
| "hsla(98, 47%, 68%, 0.6)", | |
| "crop", | |
| "hsla(68, 55%, 70%, 0.6)", | |
| "grass", | |
| "hsla(98, 50%, 74%, 0.6)", | |
| "snow", | |
| "hsl(205, 45%, 95%)", | |
| "hsl(98, 48%, 67%)" | |
| ], | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 8, | |
| 0.8, | |
| 12, | |
| 0 | |
| ], | |
| "fill-antialias": false | |
| } | |
| }, | |
| { | |
| "id": "national-park", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, land" | |
| }, | |
| "source": "composite", | |
| "source-layer": "landuse_overlay", | |
| "minzoom": 5, | |
| "filter": ["==", ["get", "class"], "national_park"], | |
| "layout": {}, | |
| "paint": { | |
| "fill-color": "hsl(98, 38%, 68%)", | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 5, | |
| 0, | |
| 6, | |
| 0.6, | |
| 12, | |
| 0.2 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "national-park_tint-band", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, land" | |
| }, | |
| "source": "composite", | |
| "source-layer": "landuse_overlay", | |
| "minzoom": 9, | |
| "filter": ["==", ["get", "class"], "national_park"], | |
| "layout": {}, | |
| "paint": { | |
| "line-color": "hsl(98, 38%, 68%)", | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 9, | |
| 1, | |
| 14, | |
| 8 | |
| ], | |
| "line-blur": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 9, | |
| 1, | |
| 14, | |
| 8 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "landuse", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, land" | |
| }, | |
| "source": "composite", | |
| "source-layer": "landuse", | |
| "minzoom": 5, | |
| "filter": [ | |
| "all", | |
| [">=", ["to-number", ["get", "sizerank"]], 0], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "agriculture", | |
| "wood", | |
| "grass", | |
| "scrub", | |
| "glacier", | |
| "pitch", | |
| "sand" | |
| ], | |
| ["step", ["zoom"], false, 11, true], | |
| "residential", | |
| ["step", ["zoom"], true, 10, false], | |
| ["park", "airport"], | |
| [ | |
| "step", | |
| ["zoom"], | |
| false, | |
| 8, | |
| ["case", ["==", ["get", "sizerank"], 1], true, false], | |
| 10, | |
| true | |
| ], | |
| ["facility", "industrial"], | |
| ["step", ["zoom"], false, 12, true], | |
| "rock", | |
| ["step", ["zoom"], false, 11, true], | |
| "cemetery", | |
| ["step", ["zoom"], false, 11, true], | |
| "school", | |
| ["step", ["zoom"], false, 11, true], | |
| "hospital", | |
| ["step", ["zoom"], false, 11, true], | |
| "commercial_area", | |
| ["step", ["zoom"], false, 11, true], | |
| false | |
| ], | |
| [ | |
| "<=", | |
| [ | |
| "-", | |
| ["to-number", ["get", "sizerank"]], | |
| [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0, | |
| 18, | |
| 14 | |
| ] | |
| ], | |
| 14 | |
| ] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "fill-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| "wood", | |
| "hsla(103, 50%, 60%, 0.8)", | |
| "scrub", | |
| "hsla(98, 47%, 68%, 0.6)", | |
| "agriculture", | |
| "hsla(98, 50%, 74%, 0.6)", | |
| "park", | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["garden", "playground", "zoo"], | |
| "hsl(98, 38%, 68%)", | |
| "hsl(98, 55%, 70%)" | |
| ], | |
| "grass", | |
| "hsla(98, 50%, 74%, 0.6)", | |
| "airport", | |
| "hsl(230, 40%, 82%)", | |
| "cemetery", | |
| "hsl(98, 45%, 75%)", | |
| "glacier", | |
| "hsl(205, 45%, 95%)", | |
| "hospital", | |
| "hsl(20, 45%, 82%)", | |
| "pitch", | |
| "hsl(88, 65%, 75%)", | |
| "sand", | |
| "hsl(69, 60%, 72%)", | |
| "rock", | |
| "hsl(60, 0%, 85%)", | |
| "school", | |
| "hsl(40, 45%, 78%)", | |
| "commercial_area", | |
| "hsl(55, 45%, 85%)", | |
| "residential", | |
| "hsl(60, 7%, 87%)", | |
| ["facility", "industrial"], | |
| "hsl(230, 20%, 85%)", | |
| "hsl(60, 22%, 72%)" | |
| ], | |
| 16, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| "wood", | |
| "hsla(103, 50%, 60%, 0.8)", | |
| "scrub", | |
| "hsla(98, 47%, 68%, 0.6)", | |
| "agriculture", | |
| "hsla(98, 50%, 74%, 0.6)", | |
| "park", | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["garden", "playground", "zoo"], | |
| "hsl(98, 38%, 68%)", | |
| "hsl(98, 55%, 70%)" | |
| ], | |
| "grass", | |
| "hsla(98, 50%, 74%, 0.6)", | |
| "airport", | |
| "hsl(230, 40%, 82%)", | |
| "cemetery", | |
| "hsl(98, 45%, 75%)", | |
| "glacier", | |
| "hsl(205, 45%, 95%)", | |
| "hospital", | |
| "hsl(20, 45%, 82%)", | |
| "pitch", | |
| "hsl(88, 65%, 75%)", | |
| "sand", | |
| "hsl(69, 60%, 72%)", | |
| "rock", | |
| "hsla(60, 0%, 85%, 0.5)", | |
| "school", | |
| "hsl(40, 45%, 78%)", | |
| "commercial_area", | |
| "hsla(55, 45%, 85%, 0.5)", | |
| ["facility", "industrial"], | |
| "hsl(230, 20%, 85%)", | |
| "hsl(60, 22%, 72%)" | |
| ] | |
| ], | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 8, | |
| ["match", ["get", "class"], "residential", 0.8, 0.2], | |
| 10, | |
| ["match", ["get", "class"], "residential", 0, 1] | |
| ], | |
| "fill-antialias": false | |
| } | |
| }, | |
| { | |
| "id": "pitch-outline", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, land" | |
| }, | |
| "source": "composite", | |
| "source-layer": "landuse", | |
| "minzoom": 15, | |
| "filter": ["==", ["get", "class"], "pitch"], | |
| "layout": {}, | |
| "paint": {"line-color": "hsl(88, 60%, 65%)"} | |
| }, | |
| { | |
| "id": "waterway-shadow", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, water" | |
| }, | |
| "source": "composite", | |
| "source-layer": "waterway", | |
| "minzoom": 10, | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 11, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 11, "round"] | |
| }, | |
| "paint": { | |
| "line-color": "hsl(224, 79%, 69%)", | |
| "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-translate": [ | |
| "interpolate", | |
| ["exponential", 1.2], | |
| ["zoom"], | |
| 7, | |
| ["literal", [0, 0]], | |
| 16, | |
| ["literal", [-1, -1]] | |
| ], | |
| "line-translate-anchor": "viewport", | |
| "line-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 8, | |
| 0, | |
| 8.5, | |
| 1 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "water-shadow", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, water" | |
| }, | |
| "source": "composite", | |
| "source-layer": "water", | |
| "minzoom": 10, | |
| "layout": {}, | |
| "paint": { | |
| "fill-color": "hsl(224, 79%, 69%)", | |
| "fill-translate": [ | |
| "interpolate", | |
| ["exponential", 1.2], | |
| ["zoom"], | |
| 7, | |
| ["literal", [0, 0]], | |
| 16, | |
| ["literal", [-1, -1]] | |
| ], | |
| "fill-translate-anchor": "viewport" | |
| } | |
| }, | |
| { | |
| "id": "waterway", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, water" | |
| }, | |
| "source": "composite", | |
| "source-layer": "waterway", | |
| "minzoom": 8, | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 11, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 11, "round"] | |
| }, | |
| "paint": { | |
| "line-color": "hsl(205, 75%, 70%)", | |
| "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 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "water", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, water" | |
| }, | |
| "source": "composite", | |
| "source-layer": "water", | |
| "layout": {}, | |
| "paint": {"fill-color": "hsl(205, 75%, 70%)"} | |
| }, | |
| { | |
| "id": "water-depth", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, water" | |
| }, | |
| "source": "composite", | |
| "source-layer": "depth", | |
| "maxzoom": 8, | |
| "layout": {}, | |
| "paint": { | |
| "fill-antialias": false, | |
| "fill-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 6, | |
| [ | |
| "interpolate", | |
| ["linear"], | |
| ["get", "min_depth"], | |
| 0, | |
| "hsla(205, 75%, 70%, 0.35)", | |
| 200, | |
| "hsla(205, 75%, 63%, 0.35)", | |
| 7000, | |
| "hsla(205, 75%, 56%, 0.35)" | |
| ], | |
| 8, | |
| [ | |
| "interpolate", | |
| ["linear"], | |
| ["get", "min_depth"], | |
| 0, | |
| "hsla(205, 75%, 70%, 0)", | |
| 200, | |
| "hsla(205, 75%, 63%, 0)", | |
| 7000, | |
| "hsla(205, 75%, 53%, 0)" | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "wetland", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, water" | |
| }, | |
| "source": "composite", | |
| "source-layer": "landuse_overlay", | |
| "minzoom": 5, | |
| "filter": [ | |
| "match", | |
| ["get", "class"], | |
| ["wetland", "wetland_noveg"], | |
| true, | |
| false | |
| ], | |
| "paint": { | |
| "fill-color": "hsl(194, 38%, 74%)", | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 10, | |
| 0.25, | |
| 10.5, | |
| 0.15 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "wetland-pattern", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, water" | |
| }, | |
| "source": "composite", | |
| "source-layer": "landuse_overlay", | |
| "minzoom": 5, | |
| "filter": [ | |
| "match", | |
| ["get", "class"], | |
| ["wetland", "wetland_noveg"], | |
| true, | |
| false | |
| ], | |
| "paint": { | |
| "fill-color": "hsl(194, 38%, 74%)", | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 10, | |
| 0, | |
| 10.5, | |
| 1 | |
| ], | |
| "fill-pattern": "wetland", | |
| "fill-translate-anchor": "viewport" | |
| } | |
| }, | |
| { | |
| "id": "hillshade", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "terrain", | |
| "mapbox:group": "Terrain, land" | |
| }, | |
| "source": "composite", | |
| "source-layer": "hillshade", | |
| "maxzoom": 16, | |
| "filter": [ | |
| "all", | |
| [ | |
| "step", | |
| ["zoom"], | |
| ["==", ["get", "class"], "shadow"], | |
| 11, | |
| true | |
| ], | |
| [ | |
| "match", | |
| ["get", "level"], | |
| 89, | |
| true, | |
| 78, | |
| ["step", ["zoom"], false, 5, true], | |
| 67, | |
| ["step", ["zoom"], false, 9, true], | |
| 56, | |
| ["step", ["zoom"], false, 6, true], | |
| 94, | |
| ["step", ["zoom"], false, 11, true], | |
| 90, | |
| ["step", ["zoom"], false, 12, true], | |
| false | |
| ] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "fill-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 14, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| "shadow", | |
| "hsla(66, 38%, 17%, 0.08)", | |
| "hsla(60, 20%, 95%, 0.14)" | |
| ], | |
| 16, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| "shadow", | |
| "hsla(66, 38%, 17%, 0)", | |
| "hsla(60, 20%, 95%, 0)" | |
| ] | |
| ], | |
| "fill-antialias": false | |
| } | |
| }, | |
| { | |
| "id": "contour-line", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "terrain", | |
| "mapbox:group": "Terrain, land" | |
| }, | |
| "source": "composite", | |
| "source-layer": "contour", | |
| "minzoom": 11, | |
| "filter": ["!=", ["get", "index"], -1], | |
| "layout": {}, | |
| "paint": { | |
| "line-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 11, | |
| ["match", ["get", "index"], [1, 2], 0.15, 0.3], | |
| 13, | |
| ["match", ["get", "index"], [1, 2], 0.3, 0.5] | |
| ], | |
| "line-color": "hsl(60, 10%, 35%)", | |
| "line-width": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 13, | |
| ["match", ["get", "index"], [1, 2], 0.5, 0.6], | |
| 16, | |
| ["match", ["get", "index"], [1, 2], 0.8, 1.2] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "land-structure-polygon", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, built" | |
| }, | |
| "source": "composite", | |
| "source-layer": "structure", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "land"], | |
| ["==", ["geometry-type"], "Polygon"] | |
| ], | |
| "layout": {}, | |
| "paint": {"fill-color": "hsl(60, 20%, 85%)"} | |
| }, | |
| { | |
| "id": "land-structure-line", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "land-and-water", | |
| "mapbox:group": "Land & water, built" | |
| }, | |
| "source": "composite", | |
| "source-layer": "structure", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "land"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-cap": "square"}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.99], | |
| ["zoom"], | |
| 14, | |
| 0.75, | |
| 20, | |
| 40 | |
| ], | |
| "line-color": "hsl(60, 20%, 85%)" | |
| } | |
| }, | |
| { | |
| "id": "aeroway-polygon", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, built" | |
| }, | |
| "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, 36%, 74%)", | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 10, | |
| 0, | |
| 11, | |
| 1 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "aeroway-line", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, built" | |
| }, | |
| "source": "composite", | |
| "source-layer": "aeroway", | |
| "minzoom": 9, | |
| "filter": ["==", ["geometry-type"], "LineString"], | |
| "paint": { | |
| "line-color": "hsl(230, 36%, 74%)", | |
| "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 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "building", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "buildings", | |
| "mapbox:group": "Buildings, built" | |
| }, | |
| "source": "composite", | |
| "source-layer": "building", | |
| "minzoom": 15, | |
| "filter": [ | |
| "all", | |
| ["!=", ["get", "type"], "building:part"], | |
| ["==", ["get", "underground"], "false"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "fill-color": "hsl(50, 15%, 75%)", | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| 0, | |
| 16, | |
| 1 | |
| ], | |
| "fill-outline-color": "hsl(60, 10%, 65%)" | |
| } | |
| }, | |
| { | |
| "id": "building-underground", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "buildings", | |
| "mapbox:group": "Buildings, built" | |
| }, | |
| "source": "composite", | |
| "source-layer": "building", | |
| "minzoom": 15, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "underground"], "true"], | |
| ["==", ["geometry-type"], "Polygon"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "fill-color": "hsl(260, 60%, 85%)", | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| 0, | |
| 16, | |
| 0.5 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-minor-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels-case" | |
| }, | |
| "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": "rgb(69, 69, 64)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 18, | |
| 10, | |
| 22, | |
| 100 | |
| ], | |
| "line-dasharray": [3, 3] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-street-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels-case" | |
| }, | |
| "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": "rgb(69, 69, 64)", | |
| "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] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-minor-link-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels-case" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["primary_link", "secondary_link", "tertiary_link"], | |
| true, | |
| false | |
| ], | |
| ["==", ["get", "structure"], "tunnel"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.8, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.4, | |
| 18, | |
| 18, | |
| 22, | |
| 180 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 11, 1] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-secondary-tertiary-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels-case" | |
| }, | |
| "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": "rgb(69, 69, 64)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0, | |
| 18, | |
| 26, | |
| 22, | |
| 260 | |
| ], | |
| "line-dasharray": [3, 3] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-primary-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels-case" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 10, | |
| "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": "rgb(69, 69, 64)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 28, | |
| 22, | |
| 280 | |
| ], | |
| "line-dasharray": [3, 3] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-major-link-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels-case" | |
| }, | |
| "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": "#cca39e", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.8, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-dasharray": [3, 3] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-motorway-trunk-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels-case" | |
| }, | |
| "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": "rgb(143, 143, 117)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 30, | |
| 22, | |
| 300 | |
| ], | |
| "line-dasharray": [3, 3] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-path-trail", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "tunnel"], | |
| ["==", ["get", "class"], "path"], | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["hiking", "mountain_bike", "trail"], | |
| true, | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "hsl(60, 32%, 66%)", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [5, 0.5]], | |
| 15, | |
| ["literal", [4, 0.5]], | |
| 16, | |
| ["literal", [4, 0.45]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-path-cycleway-piste", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "tunnel"], | |
| ["==", ["get", "class"], "path"], | |
| ["match", ["get", "type"], ["cycleway", "piste"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "hsl(60, 32%, 66%)", | |
| "line-dasharray": [10, 0] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-path", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "tunnel"], | |
| ["==", ["get", "class"], "path"], | |
| ["!=", ["get", "type"], "steps"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "hsl(60, 32%, 66%)", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 15, | |
| ["literal", [1.75, 1]], | |
| 16, | |
| ["literal", [1, 0.75]], | |
| 17, | |
| ["literal", [1, 0.5]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-steps", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "tunnel"], | |
| ["==", ["get", "type"], "steps"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 16, | |
| 1.6, | |
| 18, | |
| 6 | |
| ], | |
| "line-color": "hsl(60, 32%, 66%)", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 15, | |
| ["literal", [1.75, 1]], | |
| 16, | |
| ["literal", [1, 0.75]], | |
| 17, | |
| ["literal", [0.3, 0.3]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-pedestrian", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "tunnel"], | |
| ["==", ["get", "class"], "pedestrian"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.5, | |
| 18, | |
| 12 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 15, | |
| ["literal", [1.5, 0.4]], | |
| 16, | |
| ["literal", [1, 0.2]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-construction", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "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": "#6e6e59", | |
| "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]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-minor", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "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", | |
| "hsl(60, 22%, 80%)", | |
| "#cca39e" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-minor-link", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["primary_link", "secondary_link", "tertiary_link"], | |
| true, | |
| false | |
| ], | |
| ["==", ["get", "structure"], "tunnel"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 13, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 13, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.4, | |
| 18, | |
| 18, | |
| 22, | |
| 180 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "tunnel-major-link", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "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(15, 100%, 85%)", | |
| "hsl(35, 78%, 85%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-street", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "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", | |
| "hsl(60, 22%, 80%)", | |
| "#cca39e" | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 14, 1] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-street-low", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "maxzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "tunnel"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["street", "street_limited"], | |
| true, | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.5, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "tunnel-secondary-tertiary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "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": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "tunnel-primary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "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": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "tunnel-motorway-trunk", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "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(15, 100%, 85%)", | |
| "hsl(35, 78%, 85%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "tunnel-oneway-arrow-blue", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "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 | |
| ] | |
| ] | |
| ], | |
| "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 | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "tunnel-oneway-arrow-white", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, tunnels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "tunnel"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["motorway", "motorway_link", "trunk", "trunk_link"], | |
| true, | |
| false | |
| ], | |
| ["==", ["get", "oneway"], "true"] | |
| ], | |
| "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 | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "cliff", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "terrain", | |
| "mapbox:group": "Terrain, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "structure", | |
| "minzoom": 15, | |
| "filter": ["==", ["get", "class"], "cliff"], | |
| "layout": {"line-cap": "round", "line-join": "round"}, | |
| "paint": { | |
| "line-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| 0, | |
| 15.25, | |
| 1 | |
| ], | |
| "line-width": 10, | |
| "line-pattern": "cliff" | |
| } | |
| }, | |
| { | |
| "id": "ferry", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, ferries" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 8, | |
| "filter": ["==", ["get", "type"], "ferry"], | |
| "paint": { | |
| "line-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| "hsl(214, 68%, 63%)", | |
| 17, | |
| "hsl(239, 68%, 63%)" | |
| ], | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.5, | |
| 20, | |
| 1 | |
| ], | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 13, | |
| ["literal", [12, 4]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "ferry-auto", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, ferries" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 8, | |
| "filter": ["==", ["get", "type"], "ferry_auto"], | |
| "paint": { | |
| "line-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| "hsl(214, 68%, 63%)", | |
| 17, | |
| "hsl(239, 68%, 63%)" | |
| ], | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.5, | |
| 20, | |
| 1 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-pedestrian-polygon-fill", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["path", "pedestrian"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["case", ["has", "layer"], [">=", ["get", "layer"], 0], true], | |
| ["==", ["geometry-type"], "Polygon"] | |
| ], | |
| "paint": {"fill-color": "hsl(60, 20%, 85%)"} | |
| }, | |
| { | |
| "id": "road-pedestrian-polygon-pattern", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["path", "pedestrian"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["case", ["has", "layer"], [">=", ["get", "layer"], 0], true], | |
| ["==", ["geometry-type"], "Polygon"] | |
| ], | |
| "paint": { | |
| "fill-pattern": "pedestrian-polygon", | |
| "fill-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 16, | |
| 0, | |
| 17, | |
| 1 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-path-bg", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "path"], | |
| [ | |
| "step", | |
| ["zoom"], | |
| [ | |
| "!", | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["steps", "sidewalk", "crossing"], | |
| true, | |
| false | |
| ] | |
| ], | |
| 16, | |
| ["!=", ["get", "type"], "steps"] | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 2, | |
| 18, | |
| 7 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "type"], | |
| "piste", | |
| "hsl(215, 80%, 48%)", | |
| [ | |
| "mountain_bike", | |
| "hiking", | |
| "trail", | |
| "cycleway", | |
| "footway", | |
| "path", | |
| "bridleway" | |
| ], | |
| "hsl(35, 80%, 48%)", | |
| "rgb(85, 85, 83)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-steps-bg", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "type"], "steps"], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": "round"}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 2, | |
| 17, | |
| 4.6, | |
| 18, | |
| 7 | |
| ], | |
| "line-color": "hsl(35, 80%, 48%)", | |
| "line-opacity": 0.75 | |
| } | |
| }, | |
| { | |
| "id": "road-pedestrian-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "pedestrian"], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["case", ["has", "layer"], [">=", ["get", "layer"], 0], true], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 2, | |
| 18, | |
| 14.5 | |
| ], | |
| "line-color": "#6e6e59" | |
| } | |
| }, | |
| { | |
| "id": "road-path-trail", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "path"], | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["hiking", "mountain_bike", "trail"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [5, 0.5]], | |
| 15, | |
| ["literal", [4, 0.5]], | |
| 16, | |
| ["literal", [4, 0.45]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-path-cycleway-piste", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "path"], | |
| ["match", ["get", "type"], ["cycleway", "piste"], true, false], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [10, 0] | |
| } | |
| }, | |
| { | |
| "id": "road-path", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "path"], | |
| [ | |
| "step", | |
| ["zoom"], | |
| [ | |
| "!", | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["steps", "sidewalk", "crossing"], | |
| true, | |
| false | |
| ] | |
| ], | |
| 16, | |
| ["!=", ["get", "type"], "steps"] | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 13, | |
| 0.5, | |
| 14, | |
| 1, | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [4, 0.3]], | |
| 15, | |
| ["literal", [1.75, 0.3]], | |
| 16, | |
| ["literal", [1, 0.3]], | |
| 17, | |
| ["literal", [1, 0.25]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-steps", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "type"], "steps"], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": "round"}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 16, | |
| 1.6, | |
| 18, | |
| 6 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 15, | |
| ["literal", [1.75, 1]], | |
| 16, | |
| ["literal", [1, 0.75]], | |
| 17, | |
| ["literal", [0.3, 0.3]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-pedestrian", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "pedestrian"], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["case", ["has", "layer"], [">=", ["get", "layer"], 0], true], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.5, | |
| 18, | |
| 12 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 15, | |
| ["literal", [1.5, 0.4]], | |
| 16, | |
| ["literal", [1, 0.2]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "golf-hole-line", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "filter": ["==", ["get", "class"], "golf"], | |
| "paint": {"line-color": "hsl(98, 26%, 56%)"} | |
| }, | |
| { | |
| "id": "road-polygon", | |
| "type": "fill", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "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": "#cca39e", "fill-outline-color": "#6e6e59"} | |
| }, | |
| { | |
| "id": "turning-feature-outline", | |
| "type": "circle", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "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": "#cca39e", | |
| "circle-stroke-width": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| 0.8, | |
| 16, | |
| 1.2, | |
| 18, | |
| 2 | |
| ], | |
| "circle-stroke-color": "#6e6e59", | |
| "circle-pitch-alignment": "map" | |
| } | |
| }, | |
| { | |
| "id": "road-minor-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["track"], | |
| true, | |
| "service", | |
| ["step", ["zoom"], false, 14, true], | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.8, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "track", | |
| "hsl(35, 80%, 48%)", | |
| "#6e6e59" | |
| ], | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 18, | |
| 10, | |
| 22, | |
| 100 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-street-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["street", "street_limited"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.8, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.5, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 14, 1] | |
| } | |
| }, | |
| { | |
| "id": "road-minor-link-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["primary_link", "secondary_link", "tertiary_link"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.8, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.4, | |
| 18, | |
| 18, | |
| 22, | |
| 180 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 11, 1] | |
| } | |
| }, | |
| { | |
| "id": "road-secondary-tertiary-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 11, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["secondary", "tertiary"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.8, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0, | |
| 18, | |
| 26, | |
| 22, | |
| 260 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-primary-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 10, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "primary"], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 28, | |
| 22, | |
| 280 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-major-link-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["motorway_link", "trunk_link"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.8, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "rgb(143, 143, 117)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.8, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 11, 1] | |
| } | |
| }, | |
| { | |
| "id": "road-motorway-trunk-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 3, | |
| "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"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "rgb(143, 143, 117)", | |
| "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 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "turning-feature", | |
| "type": "circle", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "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": "#cca39e", | |
| "circle-pitch-alignment": "map" | |
| } | |
| }, | |
| { | |
| "id": "road-construction", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "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": "#cca39e", | |
| "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]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-minor", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["track"], | |
| true, | |
| "service", | |
| ["step", ["zoom"], false, 14, true], | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 18, | |
| 10, | |
| 22, | |
| 100 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "road-minor-link", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["primary_link", "secondary_link", "tertiary_link"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 13, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 13, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.4, | |
| 18, | |
| 18, | |
| 22, | |
| 180 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "road-major-link", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["motorway_link", "trunk_link"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 13, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 13, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.8, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "motorway_link", | |
| "hsl(15, 100%, 75%)", | |
| "hsl(35, 89%, 75%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-street", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["street", "street_limited"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.5, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "street_limited", | |
| "hsl(60, 22%, 80%)", | |
| "#cca39e" | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 14, 1] | |
| } | |
| }, | |
| { | |
| "id": "road-street-low", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 11, | |
| "maxzoom": 14, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["street", "street_limited"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.5, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "road-secondary-tertiary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 9, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["secondary", "tertiary"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0, | |
| 18, | |
| 26, | |
| 22, | |
| 260 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "road-primary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 6, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "primary"], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 28, | |
| 22, | |
| 280 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "road-motorway-trunk", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 3, | |
| "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"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 13, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 13, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 30, | |
| 22, | |
| 300 | |
| ], | |
| "line-color": [ | |
| "step", | |
| ["zoom"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| "motorway", | |
| "hsl(15, 88%, 69%)", | |
| "trunk", | |
| "hsl(35, 81%, 59%)", | |
| "hsl(60, 18%, 85%)" | |
| ], | |
| 9, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| "motorway", | |
| "hsl(15, 100%, 75%)", | |
| "hsl(35, 89%, 75%)" | |
| ] | |
| ], | |
| "line-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 3, | |
| 0, | |
| 3.5, | |
| 1 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-rail", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, surface" | |
| }, | |
| "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, | |
| "hsl(75, 25%, 68%)", | |
| 16, | |
| "rgb(138, 138, 138)" | |
| ], | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.5, | |
| 20, | |
| 1 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-rail-tracks", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, surface" | |
| }, | |
| "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, | |
| "hsl(75, 25%, 68%)", | |
| 16, | |
| "rgb(138, 138, 138)" | |
| ], | |
| "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 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "level-crossing", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface-icons" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "filter": ["==", ["get", "class"], "level_crossing"], | |
| "layout": { | |
| "icon-image": "level-crossing", | |
| "icon-rotation-alignment": "map", | |
| "icon-allow-overlap": true, | |
| "icon-ignore-placement": true | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "road-oneway-arrow-blue", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface-icons" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "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] | |
| ], | |
| "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 | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "road-oneway-arrow-white", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface-icons" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "oneway"], "true"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["motorway", "trunk", "motorway_link", "trunk_link"], | |
| true, | |
| false | |
| ], | |
| ["match", ["get", "structure"], ["none", "ford"], true, false] | |
| ], | |
| "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 | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "crosswalks", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, surface-icons" | |
| }, | |
| "source": "composite", | |
| "source-layer": "structure", | |
| "minzoom": 17, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "type"], "crosswalk"], | |
| ["==", ["geometry-type"], "Point"] | |
| ], | |
| "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 | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "gate-fence-hedge", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "structure", | |
| "minzoom": 16, | |
| "filter": [ | |
| "match", | |
| ["get", "class"], | |
| ["gate", "fence", "hedge"], | |
| true, | |
| false | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "hedge", | |
| "hsl(98, 32%, 56%)", | |
| "hsl(60, 25%, 63%)" | |
| ], | |
| "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] | |
| } | |
| }, | |
| { | |
| "id": "bridge-path-bg", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["get", "class"], "path"], | |
| [ | |
| "step", | |
| ["zoom"], | |
| [ | |
| "!", | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["steps", "sidewalk", "crossing"], | |
| true, | |
| false | |
| ] | |
| ], | |
| 16, | |
| ["!=", ["get", "type"], "steps"] | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 2, | |
| 18, | |
| 7 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "type"], | |
| "piste", | |
| "hsl(215, 80%, 48%)", | |
| [ | |
| "mountain_bike", | |
| "hiking", | |
| "trail", | |
| "cycleway", | |
| "footway", | |
| "path", | |
| "bridleway" | |
| ], | |
| "hsl(35, 80%, 48%)", | |
| "rgb(85, 85, 83)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-steps-bg", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "type"], "steps"], | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 2, | |
| 17, | |
| 4.6, | |
| 18, | |
| 7 | |
| ], | |
| "line-color": "hsl(35, 80%, 48%)", | |
| "line-opacity": 0.75 | |
| } | |
| }, | |
| { | |
| "id": "bridge-pedestrian-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["get", "class"], "pedestrian"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 2, | |
| 18, | |
| 14.5 | |
| ], | |
| "line-color": "#6e6e59" | |
| } | |
| }, | |
| { | |
| "id": "bridge-path-trail", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["get", "class"], "path"], | |
| [ | |
| "match", | |
| ["get", "type"], | |
| ["hiking", "mountain_bike", "trail"], | |
| true, | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [5, 0.5]], | |
| 15, | |
| ["literal", [4, 0.5]], | |
| 16, | |
| ["literal", [4, 0.45]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-path-cycleway-piste", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["get", "class"], "path"], | |
| ["match", ["get", "type"], ["cycleway", "piste"], true, false], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [10, 0] | |
| } | |
| }, | |
| { | |
| "id": "bridge-path", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["get", "class"], "path"], | |
| ["!=", ["get", "type"], "steps"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 18, | |
| 4 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [4, 0.3]], | |
| 15, | |
| ["literal", [1.75, 0.3]], | |
| 16, | |
| ["literal", [1, 0.3]], | |
| 17, | |
| ["literal", [1, 0.25]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-steps", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "type"], "steps"], | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 15, | |
| 1, | |
| 16, | |
| 1.6, | |
| 18, | |
| 6 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 15, | |
| ["literal", [1.75, 1]], | |
| 16, | |
| ["literal", [1, 0.75]], | |
| 17, | |
| ["literal", [0.3, 0.3]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-pedestrian", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["get", "class"], "pedestrian"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.5, | |
| 18, | |
| 12 | |
| ], | |
| "line-color": "#cca39e", | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [1, 0]], | |
| 15, | |
| ["literal", [1.5, 0.4]], | |
| 16, | |
| ["literal", [1, 0.2]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "gate-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., barriers-bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "structure", | |
| "minzoom": 16, | |
| "filter": ["==", ["get", "class"], "gate"], | |
| "layout": { | |
| "icon-image": [ | |
| "match", | |
| ["get", "type"], | |
| "gate", | |
| "gate", | |
| "lift_gate", | |
| "lift-gate", | |
| "" | |
| ] | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "bridge-minor-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": [ | |
| "match", | |
| ["get", "class"], | |
| "track", | |
| "hsl(35, 80%, 48%)", | |
| "#6e6e59" | |
| ], | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 18, | |
| 10, | |
| 22, | |
| 100 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-street-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": [ | |
| "match", | |
| ["get", "class"], | |
| "track", | |
| "hsl(35, 80%, 48%)", | |
| "#6e6e59" | |
| ], | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.5, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 14, 1] | |
| } | |
| }, | |
| { | |
| "id": "bridge-minor-link-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["primary_link", "secondary_link", "tertiary_link"], | |
| true, | |
| false | |
| ], | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.8, | |
| 22, | |
| 2 | |
| ], | |
| "line-color": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.4, | |
| 18, | |
| 18, | |
| 22, | |
| 180 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 11, 1] | |
| } | |
| }, | |
| { | |
| "id": "bridge-secondary-tertiary-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0, | |
| 18, | |
| 26, | |
| 22, | |
| 260 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 10, 1] | |
| } | |
| }, | |
| { | |
| "id": "bridge-primary-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 10, | |
| "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": "#6e6e59", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 28, | |
| 22, | |
| 280 | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 10, 1] | |
| } | |
| }, | |
| { | |
| "id": "bridge-major-link-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": "rgb(143, 143, 117)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.8, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-motorway-trunk-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": "rgb(143, 143, 117)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 30, | |
| 22, | |
| 300 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-construction", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": "#6e6e59", | |
| "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]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-minor", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 18, | |
| 10, | |
| 22, | |
| 100 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "bridge-minor-link", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["primary_link", "secondary_link", "tertiary_link"], | |
| true, | |
| false | |
| ], | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.4, | |
| 18, | |
| 18, | |
| 22, | |
| 180 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "bridge-major-link", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 13, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.8, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "motorway_link", | |
| "hsl(15, 100%, 75%)", | |
| "hsl(35, 89%, 75%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-street", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["street", "street_limited"], | |
| true, | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.5, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "street_limited", | |
| "hsl(60, 22%, 80%)", | |
| "#cca39e" | |
| ], | |
| "line-opacity": ["step", ["zoom"], 0, 14, 1] | |
| } | |
| }, | |
| { | |
| "id": "bridge-street-low", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "maxzoom": 14, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["street", "street_limited"], | |
| true, | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
| "line-join": ["step", ["zoom"], "miter", 14, "round"] | |
| }, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.5, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "bridge-secondary-tertiary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["secondary", "tertiary"], | |
| true, | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0, | |
| 18, | |
| 26, | |
| 22, | |
| 260 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "bridge-primary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| ["==", ["get", "class"], "primary"], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 28, | |
| 22, | |
| 280 | |
| ], | |
| "line-color": "#cca39e" | |
| } | |
| }, | |
| { | |
| "id": "bridge-motorway-trunk", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 30, | |
| 22, | |
| 300 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "motorway", | |
| "hsl(15, 100%, 75%)", | |
| "hsl(35, 89%, 75%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-major-link-2-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": "rgb(143, 143, 117)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.8, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-motorway-trunk-2-case", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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": "rgb(143, 143, 117)", | |
| "line-gap-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 30, | |
| 22, | |
| 300 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-major-link-2", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 13, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 12, | |
| 0.8, | |
| 18, | |
| 20, | |
| 22, | |
| 200 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "motorway_link", | |
| "hsl(15, 100%, 75%)", | |
| "hsl(35, 89%, 75%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-motorway-trunk-2", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "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"] | |
| ], | |
| "layout": {"line-cap": ["step", ["zoom"], "butt", 14, "round"]}, | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 3, | |
| 0.8, | |
| 18, | |
| 30, | |
| 22, | |
| 300 | |
| ], | |
| "line-color": [ | |
| "match", | |
| ["get", "class"], | |
| "motorway", | |
| "hsl(15, 100%, 75%)", | |
| "hsl(35, 89%, 75%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-oneway-arrow-blue", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "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 | |
| ] | |
| ] | |
| ], | |
| "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 | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "bridge-oneway-arrow-white", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, bridges" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "structure"], "bridge"], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["motorway", "trunk", "motorway_link", "trunk_link"], | |
| true, | |
| false | |
| ], | |
| ["==", ["get", "oneway"], "true"] | |
| ], | |
| "layout": { | |
| "symbol-placement": "line", | |
| "icon-image": "oneway-white-small", | |
| "symbol-spacing": 200, | |
| "icon-rotation-alignment": "map", | |
| "icon-allow-overlap": true, | |
| "icon-ignore-placement": true | |
| }, | |
| "paint": {} | |
| }, | |
| { | |
| "id": "bridge-rail", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, bridges" | |
| }, | |
| "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, | |
| "hsl(75, 25%, 68%)", | |
| 16, | |
| "rgb(138, 138, 138)" | |
| ], | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 0.5, | |
| 20, | |
| 1 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "bridge-rail-tracks", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, bridges" | |
| }, | |
| "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, | |
| "hsl(75, 25%, 68%)", | |
| 16, | |
| "rgb(138, 138, 138)" | |
| ], | |
| "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 | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "aerialway", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, elevated" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": ["==", ["get", "class"], "aerialway"], | |
| "paint": { | |
| "line-color": "hsl(230, 50%, 60%)", | |
| "line-width": [ | |
| "interpolate", | |
| ["exponential", 1.5], | |
| ["zoom"], | |
| 14, | |
| 1, | |
| 20, | |
| 2 | |
| ], | |
| "line-dasharray": [4, 1] | |
| } | |
| }, | |
| { | |
| "id": "admin-1-boundary-bg", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "admin-boundaries", | |
| "mapbox:group": "Administrative boundaries, admin" | |
| }, | |
| "source": "composite", | |
| "source-layer": "admin", | |
| "minzoom": 7, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "admin_level"], 1], | |
| ["==", ["get", "maritime"], "false"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false] | |
| ], | |
| "paint": { | |
| "line-color": "hsl(350, 90%, 88%)", | |
| "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] | |
| } | |
| }, | |
| { | |
| "id": "admin-0-boundary-bg", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "admin-boundaries", | |
| "mapbox:group": "Administrative boundaries, admin" | |
| }, | |
| "source": "composite", | |
| "source-layer": "admin", | |
| "minzoom": 1, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "admin_level"], 0], | |
| ["==", ["get", "maritime"], "false"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false] | |
| ], | |
| "paint": { | |
| "line-width": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 3, | |
| 4, | |
| 12, | |
| 8 | |
| ], | |
| "line-color": "hsl(350, 90%, 88%)", | |
| "line-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 3, | |
| 0, | |
| 4, | |
| 0.5 | |
| ], | |
| "line-blur": ["interpolate", ["linear"], ["zoom"], 3, 0, 12, 2] | |
| } | |
| }, | |
| { | |
| "id": "admin-1-boundary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "admin-boundaries", | |
| "mapbox:group": "Administrative boundaries, admin" | |
| }, | |
| "source": "composite", | |
| "source-layer": "admin", | |
| "minzoom": 2, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "admin_level"], 1], | |
| ["==", ["get", "maritime"], "false"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [2, 0]], | |
| 7, | |
| ["literal", [2, 2, 6, 2]] | |
| ], | |
| "line-width": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 3, | |
| 0.3, | |
| 12, | |
| 1.5 | |
| ], | |
| "line-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 2, | |
| 0, | |
| 3, | |
| 1 | |
| ], | |
| "line-color": "hsl(350, 30%, 55%)" | |
| } | |
| }, | |
| { | |
| "id": "admin-0-boundary", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "admin-boundaries", | |
| "mapbox:group": "Administrative boundaries, admin" | |
| }, | |
| "source": "composite", | |
| "source-layer": "admin", | |
| "minzoom": 1, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "admin_level"], 0], | |
| ["==", ["get", "disputed"], "false"], | |
| ["==", ["get", "maritime"], "false"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false] | |
| ], | |
| "layout": {}, | |
| "paint": { | |
| "line-color": "hsl(350, 30%, 50%)", | |
| "line-width": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 3, | |
| 0.5, | |
| 12, | |
| 2 | |
| ], | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [2, 0]], | |
| 7, | |
| ["literal", [2, 2, 6, 2]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "admin-0-boundary-disputed", | |
| "type": "line", | |
| "metadata": { | |
| "mapbox:featureComponent": "admin-boundaries", | |
| "mapbox:group": "Administrative boundaries, admin" | |
| }, | |
| "source": "composite", | |
| "source-layer": "admin", | |
| "minzoom": 1, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "disputed"], "true"], | |
| ["==", ["get", "admin_level"], 0], | |
| ["==", ["get", "maritime"], "false"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false] | |
| ], | |
| "paint": { | |
| "line-color": "hsl(350, 30%, 50%)", | |
| "line-width": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 3, | |
| 0.5, | |
| 12, | |
| 2 | |
| ], | |
| "line-dasharray": [ | |
| "step", | |
| ["zoom"], | |
| ["literal", [3, 2, 5]], | |
| 7, | |
| ["literal", [2, 1.5]] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "contour-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "terrain", | |
| "mapbox:group": "Terrain, terrain-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "contour", | |
| "minzoom": 11, | |
| "filter": [ | |
| "any", | |
| ["==", ["get", "index"], 10], | |
| ["==", ["get", "index"], 5] | |
| ], | |
| "layout": { | |
| "text-field": ["concat", ["get", "ele"], " m"], | |
| "symbol-placement": "line", | |
| "text-pitch-alignment": "viewport", | |
| "text-max-angle": 25, | |
| "text-padding": 5, | |
| "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], | |
| "text-size": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 15, | |
| 9.5, | |
| 20, | |
| 12 | |
| ] | |
| }, | |
| "paint": { | |
| "text-color": "hsl(60, 10%, 35%)", | |
| "text-halo-width": 1, | |
| "text-halo-color": "hsl(60, 10%, 85%)" | |
| } | |
| }, | |
| { | |
| "id": "building-entrance", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "buildings", | |
| "mapbox:group": "Buildings, building-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "structure", | |
| "minzoom": 18, | |
| "filter": ["==", ["get", "class"], "entrance"], | |
| "layout": { | |
| "icon-image": "marker", | |
| "text-field": ["get", "ref"], | |
| "text-size": 10, | |
| "text-offset": [0, -0.5], | |
| "text-font": ["DIN Pro Italic", "Arial Unicode MS Regular"] | |
| }, | |
| "paint": { | |
| "text-color": "hsl(60, 8%, 38%)", | |
| "text-halo-color": "hsl(60, 13%, 77%)", | |
| "text-halo-width": 1, | |
| "icon-opacity": 0.4 | |
| } | |
| }, | |
| { | |
| "id": "building-number-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "buildings", | |
| "mapbox:group": "Buildings, building-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "housenum_label", | |
| "minzoom": 17, | |
| "layout": { | |
| "text-field": ["get", "house_num"], | |
| "text-font": ["DIN Pro Italic", "Arial Unicode MS Regular"], | |
| "text-padding": 4, | |
| "text-max-width": 7, | |
| "text-size": 10 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(60, 8%, 38%)", | |
| "text-halo-color": "hsl(60, 13%, 77%)", | |
| "text-halo-width": 1 | |
| } | |
| }, | |
| { | |
| "id": "block-number-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "buildings", | |
| "mapbox:group": "Buildings, building-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "place_label", | |
| "minzoom": 16, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "settlement_subdivision"], | |
| ["==", ["get", "type"], "block"] | |
| ], | |
| "layout": { | |
| "text-field": ["get", "name"], | |
| "text-font": ["DIN Pro Italic", "Arial Unicode MS Regular"], | |
| "text-max-width": 7, | |
| "text-size": 11 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(60, 18%, 44%)", | |
| "text-halo-color": "hsl(60, 17%, 84%)", | |
| "text-halo-width": 0.5, | |
| "text-halo-blur": 0.5 | |
| } | |
| }, | |
| { | |
| "id": "road-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, road-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 10, | |
| "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", | |
| "track" | |
| ], | |
| true, | |
| false | |
| ], | |
| 15, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["path", "pedestrian", "golf", "ferry", "aerialway"], | |
| false, | |
| true | |
| ] | |
| ] | |
| ], | |
| "layout": { | |
| "text-size": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 10, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "motorway", | |
| "trunk", | |
| "primary", | |
| "secondary", | |
| "tertiary" | |
| ], | |
| 15, | |
| [ | |
| "motorway_link", | |
| "trunk_link", | |
| "primary_link", | |
| "secondary_link", | |
| "tertiary_link", | |
| "street", | |
| "street_limited", | |
| "track" | |
| ], | |
| 13.5, | |
| 9.75 | |
| ], | |
| 18, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "motorway", | |
| "trunk", | |
| "primary", | |
| "secondary", | |
| "tertiary" | |
| ], | |
| 24, | |
| [ | |
| "motorway_link", | |
| "trunk_link", | |
| "primary_link", | |
| "secondary_link", | |
| "tertiary_link", | |
| "street", | |
| "street_limited", | |
| "track" | |
| ], | |
| 21, | |
| 19.5 | |
| ] | |
| ], | |
| "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_en"], ["get", "name"]], | |
| "text-letter-spacing": 0.01 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(0,0%, 0%)", | |
| "text-halo-color": [ | |
| "match", | |
| ["get", "class"], | |
| ["motorway", "trunk"], | |
| "hsla(60, 25%, 100%, 0.75)", | |
| "hsl(60, 25%, 100%)" | |
| ], | |
| "text-halo-width": 1, | |
| "text-halo-blur": 1 | |
| } | |
| }, | |
| { | |
| "id": "road-intersection", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, road-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 15, | |
| "filter": [ | |
| "all", | |
| ["==", ["get", "class"], "intersection"], | |
| ["has", "name"] | |
| ], | |
| "layout": { | |
| "text-field": ["coalesce", ["get", "name_en"], ["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"] | |
| }, | |
| "paint": {"text-color": "hsl(230, 36%, 64%)"} | |
| }, | |
| { | |
| "id": "road-number-shield", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, road-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 6, | |
| "filter": [ | |
| "all", | |
| [ | |
| "case", | |
| ["has", "reflen"], | |
| ["<=", ["get", "reflen"], 6], | |
| ["has", "shield_beta"] | |
| ], | |
| [ | |
| "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 | |
| ] | |
| ], | |
| "layout": { | |
| "text-size": 9, | |
| "icon-image": [ | |
| "case", | |
| ["has", "shield_beta"], | |
| [ | |
| "coalesce", | |
| [ | |
| "image", | |
| [ | |
| "concat", | |
| ["get", "shield_beta"], | |
| "-", | |
| ["to-string", ["get", "reflen"]] | |
| ] | |
| ], | |
| [ | |
| "image", | |
| [ | |
| "concat", | |
| ["get", "shield"], | |
| "-", | |
| ["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, | |
| 400, | |
| 14, | |
| 600 | |
| ], | |
| "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 | |
| }, | |
| "paint": { | |
| "text-color": [ | |
| "case", | |
| ["has", "shield_beta"], | |
| [ | |
| "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%, 100%)", | |
| "yellow", | |
| "hsl(50, 63%, 70%)", | |
| "orange", | |
| "hsl(25, 63%, 75%)", | |
| "blue", | |
| "hsl(230, 36%, 44%)", | |
| "red", | |
| "hsl(0, 54%, 59%)", | |
| "green", | |
| "hsl(140, 46%, 37%)", | |
| "hsl(230, 11%, 13%)" | |
| ], | |
| "hsl(230, 11%, 13%)" | |
| ], | |
| [ | |
| "match", | |
| ["get", "shield_text_color"], | |
| "white", | |
| "hsl(0, 0%, 100%)", | |
| "yellow", | |
| "hsl(50, 63%, 70%)", | |
| "orange", | |
| "hsl(25, 63%, 75%)", | |
| "blue", | |
| "hsl(230, 36%, 44%)", | |
| "red", | |
| "hsl(0, 54%, 59%)", | |
| "green", | |
| "hsl(140, 46%, 37%)", | |
| "hsl(230, 11%, 13%)" | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "road-exit-shield", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "road-network", | |
| "mapbox:group": "Road network, road-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "motorway_junction", | |
| "minzoom": 14, | |
| "filter": ["all", ["has", "reflen"], ["<=", ["get", "reflen"], 9]], | |
| "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"] | |
| }, | |
| "paint": { | |
| "text-color": "hsl(0, 0%, 100%)", | |
| "text-translate": [0, 0] | |
| } | |
| }, | |
| { | |
| "id": "path-pedestrian-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., walking-cycling-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 12, | |
| "filter": [ | |
| "all", | |
| ["case", ["has", "layer"], [">=", ["get", "layer"], 0], true], | |
| [ | |
| "step", | |
| ["zoom"], | |
| ["match", ["get", "class"], ["pedestrian"], true, false], | |
| 15, | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["path", "pedestrian"], | |
| true, | |
| false | |
| ] | |
| ] | |
| ], | |
| "layout": { | |
| "text-size": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 10, | |
| ["match", ["get", "class"], "pedestrian", 13.5, 9.75], | |
| 18, | |
| ["match", ["get", "class"], "pedestrian", 21, 19.5] | |
| ], | |
| "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_en"], ["get", "name"]], | |
| "text-letter-spacing": 0.01 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(0,0%, 0%)", | |
| "text-halo-color": "hsl(60, 25%, 100%)", | |
| "text-halo-width": 1, | |
| "text-halo-blur": 1 | |
| } | |
| }, | |
| { | |
| "id": "golf-hole-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "walking-cycling", | |
| "mapbox:group": "Walking, cycling, etc., walking-cycling-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 16, | |
| "filter": ["==", ["get", "class"], "golf"], | |
| "layout": { | |
| "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
| "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], | |
| "text-size": 12 | |
| }, | |
| "paint": { | |
| "text-halo-color": "hsl(98, 60%, 55%)", | |
| "text-halo-width": 0.5, | |
| "text-halo-blur": 0.5, | |
| "text-color": "hsl(100, 80%, 18%)" | |
| } | |
| }, | |
| { | |
| "id": "ferry-aerialway-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, ferry-aerialway-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "road", | |
| "minzoom": 15, | |
| "filter": [ | |
| "match", | |
| ["get", "class"], | |
| "aerialway", | |
| true, | |
| "ferry", | |
| true, | |
| false | |
| ], | |
| "layout": { | |
| "text-size": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 10, | |
| 9.75, | |
| 18, | |
| 19.5 | |
| ], | |
| "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_en"], ["get", "name"]], | |
| "text-letter-spacing": 0.01 | |
| }, | |
| "paint": { | |
| "text-color": [ | |
| "match", | |
| ["get", "class"], | |
| "ferry", | |
| "hsl(205, 43%, 100%)", | |
| "hsl(230, 50%, 60%)" | |
| ], | |
| "text-halo-color": [ | |
| "match", | |
| ["get", "class"], | |
| "ferry", | |
| "hsl(205, 75%, 70%)", | |
| "hsl(60, 20%, 100%)" | |
| ], | |
| "text-halo-width": 1, | |
| "text-halo-blur": 1 | |
| } | |
| }, | |
| { | |
| "id": "waterway-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "natural-features", | |
| "mapbox:group": "Natural features, natural-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "natural_label", | |
| "minzoom": 13, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "canal", | |
| "river", | |
| "stream", | |
| "disputed_canal", | |
| "disputed_river", | |
| "disputed_stream" | |
| ], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "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_en"], ["get", "name"]] | |
| }, | |
| "paint": { | |
| "text-color": "hsl(205, 43%, 90%)", | |
| "text-halo-color": "hsla(60, 17%, 84%, 0.5)" | |
| } | |
| }, | |
| { | |
| "id": "natural-line-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "natural-features", | |
| "mapbox:group": "Natural features, natural-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "natural_label", | |
| "minzoom": 4, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "glacier", | |
| "landform", | |
| "disputed_glacier", | |
| "disputed_landform" | |
| ], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| ["<=", ["get", "filterrank"], 4], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "layout": { | |
| "text-size": [ | |
| "step", | |
| ["zoom"], | |
| ["step", ["get", "sizerank"], 18, 5, 12], | |
| 17, | |
| ["step", ["get", "sizerank"], 18, 13, 12] | |
| ], | |
| "text-max-angle": 30, | |
| "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
| "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], | |
| "symbol-placement": "line-center", | |
| "text-pitch-alignment": "viewport" | |
| }, | |
| "paint": { | |
| "text-halo-width": 0.5, | |
| "text-halo-color": "hsl(60, 17%, 84%)", | |
| "text-halo-blur": 0.5, | |
| "text-color": "hsl(340, 10%, 38%)" | |
| } | |
| }, | |
| { | |
| "id": "natural-point-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "natural-features", | |
| "mapbox:group": "Natural features, natural-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "natural_label", | |
| "minzoom": 4, | |
| "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", "US"], true, false], | |
| false | |
| ], | |
| ["<=", ["get", "filterrank"], 4], | |
| ["==", ["geometry-type"], "Point"] | |
| ], | |
| "layout": { | |
| "text-size": [ | |
| "step", | |
| ["zoom"], | |
| ["step", ["get", "sizerank"], 18, 5, 12], | |
| 17, | |
| ["step", ["get", "sizerank"], 18, 13, 12] | |
| ], | |
| "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.8]] | |
| ], | |
| 17, | |
| [ | |
| "step", | |
| ["get", "sizerank"], | |
| ["literal", [0, 0]], | |
| 13, | |
| ["literal", [0, 0.8]] | |
| ] | |
| ], | |
| "text-anchor": [ | |
| "step", | |
| ["zoom"], | |
| ["step", ["get", "sizerank"], "center", 5, "top"], | |
| 17, | |
| ["step", ["get", "sizerank"], "center", 13, "top"] | |
| ], | |
| "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]] | |
| }, | |
| "paint": { | |
| "icon-opacity": [ | |
| "step", | |
| ["zoom"], | |
| ["step", ["get", "sizerank"], 0, 5, 1], | |
| 17, | |
| ["step", ["get", "sizerank"], 0, 13, 1] | |
| ], | |
| "text-halo-color": "hsl(60, 20%, 100%)", | |
| "text-halo-width": 0.5, | |
| "text-halo-blur": 0.5, | |
| "text-color": "hsl(340, 10%, 38%)" | |
| } | |
| }, | |
| { | |
| "id": "water-line-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "natural-features", | |
| "mapbox:group": "Natural features, natural-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "natural_label", | |
| "minzoom": 1, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "bay", | |
| "ocean", | |
| "reservoir", | |
| "sea", | |
| "water", | |
| "disputed_bay", | |
| "disputed_ocean", | |
| "disputed_reservoir", | |
| "disputed_sea", | |
| "disputed_water" | |
| ], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| ["==", ["geometry-type"], "LineString"] | |
| ], | |
| "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_en"], ["get", "name"]] | |
| }, | |
| "paint": { | |
| "text-color": [ | |
| "match", | |
| ["get", "class"], | |
| ["bay", "ocean", "sea"], | |
| "hsl(205, 71%, 90%)", | |
| "hsl(205, 43%, 90%)" | |
| ], | |
| "text-halo-color": "hsla(60, 17%, 84%, 0.5)" | |
| } | |
| }, | |
| { | |
| "id": "water-point-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "natural-features", | |
| "mapbox:group": "Natural features, natural-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "natural_label", | |
| "minzoom": 1, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "bay", | |
| "ocean", | |
| "reservoir", | |
| "sea", | |
| "water", | |
| "disputed_bay", | |
| "disputed_ocean", | |
| "disputed_reservoir", | |
| "disputed_sea", | |
| "disputed_water" | |
| ], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| ["==", ["geometry-type"], "Point"] | |
| ], | |
| "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_en"], ["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 | |
| ] | |
| }, | |
| "paint": { | |
| "text-color": [ | |
| "match", | |
| ["get", "class"], | |
| ["bay", "ocean", "sea"], | |
| "hsl(205, 71%, 90%)", | |
| "hsl(205, 43%, 90%)" | |
| ], | |
| "text-halo-color": "hsla(60, 17%, 84%, 0.5)" | |
| } | |
| }, | |
| { | |
| "id": "poi-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "point-of-interest-labels", | |
| "mapbox:group": "Point of interest labels, poi-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "poi_label", | |
| "minzoom": 6, | |
| "filter": [ | |
| "<=", | |
| ["get", "filterrank"], | |
| [ | |
| "+", | |
| ["step", ["zoom"], 0, 16, 1, 17, 2], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| "food_and_drink_stores", | |
| 3, | |
| "historic", | |
| 3, | |
| "landmark", | |
| 3, | |
| "medical", | |
| 3, | |
| "motorist", | |
| 3, | |
| "park_like", | |
| 4, | |
| "sport_and_leisure", | |
| 4, | |
| "visitor_amenities", | |
| 4, | |
| 2 | |
| ] | |
| ] | |
| ], | |
| "layout": { | |
| "text-size": [ | |
| "step", | |
| ["zoom"], | |
| ["step", ["get", "sizerank"], 18, 5, 12], | |
| 17, | |
| ["step", ["get", "sizerank"], 18, 13, 12] | |
| ], | |
| "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.8]] | |
| ], | |
| 17, | |
| [ | |
| "step", | |
| ["get", "sizerank"], | |
| ["literal", [0, 0]], | |
| 13, | |
| ["literal", [0, 0.8]] | |
| ] | |
| ], | |
| "text-anchor": [ | |
| "step", | |
| ["zoom"], | |
| ["step", ["get", "sizerank"], "center", 5, "top"], | |
| 17, | |
| ["step", ["get", "sizerank"], "center", 13, "top"] | |
| ], | |
| "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]] | |
| }, | |
| "paint": { | |
| "icon-opacity": [ | |
| "step", | |
| ["zoom"], | |
| ["step", ["get", "sizerank"], 0, 5, 1], | |
| 17, | |
| ["step", ["get", "sizerank"], 0, 13, 1] | |
| ], | |
| "text-halo-color": "hsl(60, 20%, 100%)", | |
| "text-halo-width": 0.5, | |
| "text-halo-blur": 0.5, | |
| "text-color": [ | |
| "match", | |
| ["get", "class"], | |
| "food_and_drink", | |
| "hsl(35, 80%, 38%)", | |
| "park_like", | |
| "hsl(100, 80%, 18%)", | |
| "education", | |
| "hsl(30, 60%, 28%)", | |
| "medical", | |
| "hsl(10, 60%, 43%)", | |
| "sport_and_leisure", | |
| "hsl(210, 60%, 38%)", | |
| "hsl(340, 10%, 38%)" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "transit-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, transit-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "transit_stop_label", | |
| "minzoom": 12, | |
| "filter": [ | |
| "step", | |
| ["zoom"], | |
| [ | |
| "all", | |
| ["<=", ["get", "filterrank"], 4], | |
| [ | |
| "match", | |
| ["get", "mode"], | |
| "rail", | |
| true, | |
| "metro_rail", | |
| true, | |
| false | |
| ], | |
| ["!=", ["get", "stop_type"], "entrance"] | |
| ], | |
| 14, | |
| [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "mode"], | |
| "rail", | |
| true, | |
| "metro_rail", | |
| true, | |
| false | |
| ], | |
| ["!=", ["get", "stop_type"], "entrance"] | |
| ], | |
| 15, | |
| [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "mode"], | |
| "rail", | |
| true, | |
| "metro_rail", | |
| true, | |
| "ferry", | |
| true, | |
| "light_rail", | |
| true, | |
| false | |
| ], | |
| ["!=", ["get", "stop_type"], "entrance"] | |
| ], | |
| 16, | |
| [ | |
| "all", | |
| ["match", ["get", "mode"], "bus", false, true], | |
| ["!=", ["get", "stop_type"], "entrance"] | |
| ], | |
| 17, | |
| ["!=", ["get", "stop_type"], "entrance"], | |
| 19, | |
| true | |
| ], | |
| "layout": { | |
| "text-size": 12, | |
| "icon-image": ["get", "network"], | |
| "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], | |
| "text-justify": [ | |
| "match", | |
| ["get", "stop_type"], | |
| "entrance", | |
| "left", | |
| "center" | |
| ], | |
| "text-offset": [ | |
| "match", | |
| ["get", "stop_type"], | |
| "entrance", | |
| ["literal", [1, 0]], | |
| ["literal", [0, 0.8]] | |
| ], | |
| "text-anchor": [ | |
| "match", | |
| ["get", "stop_type"], | |
| "entrance", | |
| "left", | |
| "top" | |
| ], | |
| "text-field": [ | |
| "step", | |
| ["zoom"], | |
| "", | |
| 13, | |
| [ | |
| "match", | |
| ["get", "mode"], | |
| ["rail", "metro_rail"], | |
| ["coalesce", ["get", "name_en"], ["get", "name"]], | |
| "" | |
| ], | |
| 14, | |
| [ | |
| "match", | |
| ["get", "mode"], | |
| ["bus", "bicycle"], | |
| "", | |
| ["coalesce", ["get", "name_en"], ["get", "name"]] | |
| ], | |
| 18, | |
| ["coalesce", ["get", "name_en"], ["get", "name"]] | |
| ], | |
| "text-letter-spacing": 0.01, | |
| "text-max-width": [ | |
| "match", | |
| ["get", "stop_type"], | |
| "entrance", | |
| 15, | |
| 9 | |
| ] | |
| }, | |
| "paint": { | |
| "text-halo-color": "hsl(60, 20%, 100%)", | |
| "text-color": [ | |
| "match", | |
| ["get", "network"], | |
| "tokyo-metro", | |
| "hsl(180, 30%, 30%)", | |
| "mexico-city-metro", | |
| "hsl(25, 63%, 63%)", | |
| [ | |
| "barcelona-metro", | |
| "delhi-metro", | |
| "hong-kong-mtr", | |
| "milan-metro", | |
| "osaka-subway" | |
| ], | |
| "hsl(0, 57%, 47%)", | |
| ["boston-t", "washington-metro"], | |
| "hsl(230, 11%, 20%)", | |
| [ | |
| "chongqing-rail-transit", | |
| "kiev-metro", | |
| "singapore-mrt", | |
| "taipei-metro" | |
| ], | |
| "hsl(140, 56%, 25%)", | |
| "hsl(230, 50%, 60%)" | |
| ], | |
| "text-halo-blur": 0.5, | |
| "text-halo-width": 0.5 | |
| } | |
| }, | |
| { | |
| "id": "airport-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "transit", | |
| "mapbox:group": "Transit, transit-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "airport_label", | |
| "minzoom": 8, | |
| "filter": [ | |
| "match", | |
| ["get", "class"], | |
| ["military", "civil", "disputed_military", "disputed_civil"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| "layout": { | |
| "text-line-height": 1.1, | |
| "text-size": ["step", ["get", "sizerank"], 18, 9, 12], | |
| "icon-image": ["get", "maki"], | |
| "text-font": ["DIN Pro Medium", "Arial Unicode MS Regular"], | |
| "text-offset": [0, 0.8], | |
| "text-rotation-alignment": "viewport", | |
| "text-anchor": "top", | |
| "text-field": [ | |
| "step", | |
| ["get", "sizerank"], | |
| [ | |
| "case", | |
| ["has", "ref"], | |
| [ | |
| "concat", | |
| ["get", "ref"], | |
| " -\n", | |
| ["coalesce", ["get", "name_en"], ["get", "name"]] | |
| ], | |
| ["coalesce", ["get", "name_en"], ["get", "name"]] | |
| ], | |
| 15, | |
| ["get", "ref"] | |
| ], | |
| "text-letter-spacing": 0.01, | |
| "text-max-width": 9 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(230, 40%, 55%)", | |
| "text-halo-color": "hsl(60, 20%, 100%)", | |
| "text-halo-width": 1 | |
| } | |
| }, | |
| { | |
| "id": "settlement-subdivision-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "place-labels", | |
| "mapbox:group": "Place labels, place-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "place_label", | |
| "minzoom": 10, | |
| "maxzoom": 15, | |
| "filter": [ | |
| "all", | |
| [ | |
| "match", | |
| ["get", "class"], | |
| [ | |
| "settlement_subdivision", | |
| "disputed_settlement_subdivision" | |
| ], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| ["<=", ["get", "filterrank"], 3] | |
| ], | |
| "layout": { | |
| "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
| "text-transform": "uppercase", | |
| "text-font": ["DIN Pro Regular", "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", | |
| 18.7, | |
| 17.849999999999998 | |
| ], | |
| 15, | |
| ["match", ["get", "type"], "suburb", 25.5, 23.8] | |
| ] | |
| }, | |
| "paint": { | |
| "text-halo-color": "hsla(60, 25%, 100%, 0.75)", | |
| "text-halo-width": 1, | |
| "text-color": "hsl(230, 29%, 36%)", | |
| "text-halo-blur": 0.5 | |
| } | |
| }, | |
| { | |
| "id": "settlement-minor-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "place-labels", | |
| "mapbox:group": "Place labels, place-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "place_label", | |
| "minzoom": 2, | |
| "maxzoom": 13, | |
| "filter": [ | |
| "all", | |
| ["<=", ["get", "filterrank"], 3], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["settlement", "disputed_settlement"], | |
| ["match", ["get", "worldview"], ["all", "US"], 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] | |
| ] | |
| ], | |
| "layout": { | |
| "text-line-height": 1.1, | |
| "text-size": [ | |
| "interpolate", | |
| ["cubic-bezier", 0.2, 0, 0.9, 1], | |
| ["zoom"], | |
| 3, | |
| ["step", ["get", "symbolrank"], 19.8, 9, 18], | |
| 6, | |
| ["step", ["get", "symbolrank"], 25.2, 9, 21.6, 12, 18], | |
| 8, | |
| [ | |
| "step", | |
| ["get", "symbolrank"], | |
| 28.8, | |
| 9, | |
| 25.2, | |
| 12, | |
| 21.6, | |
| 15, | |
| 18 | |
| ], | |
| 13, | |
| [ | |
| "step", | |
| ["get", "symbolrank"], | |
| 39.6, | |
| 9, | |
| 36, | |
| 12, | |
| 28.8, | |
| 15, | |
| 25.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 Regular", "Arial Unicode MS Regular"], | |
| "text-justify": "auto", | |
| "text-anchor": [ | |
| "step", | |
| ["zoom"], | |
| ["get", "text_anchor"], | |
| 8, | |
| "center" | |
| ], | |
| "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
| "text-max-width": 7 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(230, 29%, 0%)", | |
| "text-halo-color": "hsl(60, 25%, 100%)", | |
| "text-halo-width": 1, | |
| "text-halo-blur": 1 | |
| } | |
| }, | |
| { | |
| "id": "settlement-major-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "place-labels", | |
| "mapbox:group": "Place labels, place-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "place_label", | |
| "minzoom": 2, | |
| "maxzoom": 15, | |
| "filter": [ | |
| "all", | |
| ["<=", ["get", "filterrank"], 3], | |
| [ | |
| "match", | |
| ["get", "class"], | |
| ["settlement", "disputed_settlement"], | |
| ["match", ["get", "worldview"], ["all", "US"], 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] | |
| ] | |
| ], | |
| "layout": { | |
| "text-line-height": 1.1, | |
| "text-size": [ | |
| "interpolate", | |
| ["cubic-bezier", 0.2, 0, 0.9, 1], | |
| ["zoom"], | |
| 3, | |
| ["step", ["get", "symbolrank"], 20.8, 6, 17.6], | |
| 6, | |
| [ | |
| "step", | |
| ["get", "symbolrank"], | |
| 28.8, | |
| 6, | |
| 25.6, | |
| 7, | |
| 22.400000000000002 | |
| ], | |
| 8, | |
| [ | |
| "step", | |
| ["get", "symbolrank"], | |
| 32, | |
| 9, | |
| 25.6, | |
| 10, | |
| 22.400000000000002 | |
| ], | |
| 15, | |
| [ | |
| "step", | |
| ["get", "symbolrank"], | |
| 38.400000000000006, | |
| 9, | |
| 32, | |
| 12, | |
| 25.6, | |
| 15, | |
| 22.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 Medium", "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_en"], ["get", "name"]], | |
| "text-max-width": 7 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(230, 29%, 0%)", | |
| "text-halo-color": "hsl(60, 25%, 100%)", | |
| "text-halo-width": 1, | |
| "text-halo-blur": 1 | |
| } | |
| }, | |
| { | |
| "id": "state-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "place-labels", | |
| "mapbox:group": "Place labels, place-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "place_label", | |
| "minzoom": 3, | |
| "maxzoom": 9, | |
| "filter": [ | |
| "match", | |
| ["get", "class"], | |
| ["state", "disputed_state"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| "layout": { | |
| "text-size": [ | |
| "interpolate", | |
| ["cubic-bezier", 0.85, 0.7, 0.65, 1], | |
| ["zoom"], | |
| 4, | |
| ["step", ["get", "symbolrank"], 9, 6, 8, 7, 7], | |
| 9, | |
| ["step", ["get", "symbolrank"], 21, 6, 16, 7, 14] | |
| ], | |
| "text-transform": "uppercase", | |
| "text-font": ["DIN Pro Bold", "Arial Unicode MS Bold"], | |
| "text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
| "text-letter-spacing": 0.15, | |
| "text-max-width": 6 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(230, 29%, 0%)", | |
| "text-halo-color": "hsl(60, 25%, 100%)", | |
| "text-halo-width": 1, | |
| "text-opacity": 0.5 | |
| } | |
| }, | |
| { | |
| "id": "country-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "place-labels", | |
| "mapbox:group": "Place labels, place-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "place_label", | |
| "minzoom": 1, | |
| "maxzoom": 10, | |
| "filter": [ | |
| "match", | |
| ["get", "class"], | |
| ["country", "disputed_country"], | |
| ["match", ["get", "worldview"], ["all", "US"], true, false], | |
| false | |
| ], | |
| "layout": { | |
| "icon-image": "", | |
| "text-field": ["coalesce", ["get", "name_en"], ["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"], 11, 4, 9, 5, 8], | |
| 9, | |
| ["step", ["get", "symbolrank"], 22, 4, 19, 5, 17] | |
| ] | |
| }, | |
| "paint": { | |
| "icon-opacity": [ | |
| "step", | |
| ["zoom"], | |
| ["case", ["has", "text_anchor"], 1, 0], | |
| 7, | |
| 0 | |
| ], | |
| "text-color": "hsl(230, 29%, 0%)", | |
| "text-halo-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 2, | |
| "hsla(60, 25%, 100%, 0.75)", | |
| 3, | |
| "hsl(60, 25%, 100%)" | |
| ], | |
| "text-halo-width": 1.25 | |
| } | |
| }, | |
| { | |
| "id": "continent-label", | |
| "type": "symbol", | |
| "metadata": { | |
| "mapbox:featureComponent": "place-labels", | |
| "mapbox:group": "Place labels, place-labels" | |
| }, | |
| "source": "composite", | |
| "source-layer": "natural_label", | |
| "minzoom": 0.75, | |
| "maxzoom": 3, | |
| "filter": ["==", ["get", "class"], "continent"], | |
| "layout": { | |
| "text-field": ["coalesce", ["get", "name_en"], ["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 | |
| }, | |
| "paint": { | |
| "text-color": "hsl(230, 29%, 0%)", | |
| "text-halo-color": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 0, | |
| "hsla(60, 25%, 100%, 0.75)", | |
| 3, | |
| "hsl(60, 25%, 100%)" | |
| ], | |
| "text-halo-width": 1.5, | |
| "text-opacity": [ | |
| "interpolate", | |
| ["linear"], | |
| ["zoom"], | |
| 0, | |
| 0.8, | |
| 1.5, | |
| 0.5, | |
| 2.5, | |
| 0 | |
| ] | |
| } | |
| } | |
| ], | |
| "created": "2023-05-29T15:04:31.981Z", | |
| "modified": "2023-05-29T20:21:00.693Z", | |
| "id": "cli8zdgj102q701qu2w8b3d4s", | |
| "owner": "trolleway", | |
| "visibility": "private", | |
| "protected": false, | |
| "draft": false | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment