summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/local_style.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/local_style.json')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/local_style.json11780
1 files changed, 5359 insertions, 6421 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/local_style.json b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/local_style.json
index 6c5b68f5be..2e24eeee42 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/local_style.json
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/local_style.json
@@ -1,641 +1,374 @@
{
"version": 8,
- "name": "Dark",
+ "name": "Mapbox Dark",
"metadata": {
- "mapbox:autocomposite": true,
"mapbox:type": "default",
+ "mapbox:origin": "dark-v10",
+ "mapbox:autocomposite": true,
"mapbox:groups": {
- "1444934828655.3389": {
- "name": "Aeroways",
- "collapsed": true
- },
- "1444933322393.2852": {
- "name": "POI labels (scalerank 1)",
- "collapsed": true
- },
"1444855786460.0557": {
"name": "Roads",
"collapsed": true
},
- "1444856071629.7817": {
- "name": "Place labels",
- "collapsed": true
- },
"1444934295202.7542": {
"name": "Admin boundaries",
"collapsed": true
},
- "1444856151690.9143": {
- "name": "State labels",
- "collapsed": true
- },
- "1444933721429.3076": {
- "name": "Road labels",
- "collapsed": true
- },
- "1444933358918.2366": {
- "name": "POI labels (scalerank 2)",
- "collapsed": true
- },
- "1444933808272.805": {
- "name": "Water labels",
- "collapsed": true
- },
- "1444933372896.5967": {
- "name": "POI labels (scalerank 3)",
- "collapsed": true
- },
"1444855799204.86": {
"name": "Bridges",
"collapsed": true
},
- "1444856087950.3635": {
- "name": "Marine labels",
- "collapsed": true
- },
- "1456969573402.7817": {
- "name": "Hillshading",
- "collapsed": true
- },
- "1444856869758.2375": {
- "name": "Wetlands",
- "collapsed": true
- },
- "1444862510685.128": {
- "name": "City labels",
- "collapsed": true
- },
"1444855769305.6016": {
"name": "Tunnels",
"collapsed": true
- },
- "1456970288113.8113": {
- "name": "Landcover",
- "collapsed": true
- },
- "1444856144497.7825": {
- "name": "Country labels",
- "collapsed": true
}
}
},
"sources": {
"composite": {
- "url": "mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v7",
+ "url": "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2",
"type": "vector"
}
},
- "sprite": "mapbox://sprites/ivovandongen/ciri9u6sk0005gjng30fkpx2o",
+ "sprite": "mapbox://sprites/mapbox/dark-v10",
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
"layers": [
{
- "id": "background",
+ "id": "land",
"type": "background",
- "interactive": true,
"layout": {},
"paint": {
"background-color": "hsl(55, 1%, 20%)"
}
},
{
- "id": "landcover_wood",
+ "id": "landcover",
"type": "fill",
- "metadata": {
- "mapbox:group": "1456970288113.8113"
- },
"source": "composite",
"source-layer": "landcover",
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "==",
- "class",
- "wood"
- ],
- "layout": {},
- "paint": {
- "fill-color": "hsl(55, 1%, 20%)",
- "fill-opacity": 0.1,
- "fill-antialias": false
- }
- },
- {
- "id": "landcover_scrub",
- "type": "fill",
- "metadata": {
- "mapbox:group": "1456970288113.8113"
- },
- "source": "composite",
- "source-layer": "landcover",
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "==",
- "class",
- "scrub"
- ],
- "layout": {},
- "paint": {
- "fill-color": "hsl(55, 1%, 20%)",
- "fill-opacity": 0.1,
- "fill-antialias": false
- }
- },
- {
- "id": "landcover_grass",
- "type": "fill",
- "metadata": {
- "mapbox:group": "1456970288113.8113"
- },
- "source": "composite",
- "source-layer": "landcover",
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "==",
- "class",
- "grass"
- ],
- "layout": {},
- "paint": {
- "fill-color": "hsl(55, 1%, 20%)",
- "fill-opacity": 0.1,
- "fill-antialias": false
- }
- },
- {
- "id": "landcover_crop",
- "type": "fill",
- "metadata": {
- "mapbox:group": "1456970288113.8113"
- },
- "source": "composite",
- "source-layer": "landcover",
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "==",
- "class",
- "crop"
- ],
+ "maxzoom": 7,
"layout": {},
"paint": {
"fill-color": "hsl(55, 1%, 20%)",
- "fill-opacity": 0.1,
+ "fill-opacity": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 2,
+ 0.3,
+ 7,
+ 0
+ ],
"fill-antialias": false
}
},
{
- "id": "national_park",
+ "id": "national-park",
"type": "fill",
"source": "composite",
"source-layer": "landuse_overlay",
- "interactive": true,
+ "minzoom": 5,
"filter": [
"==",
- "class",
+ [
+ "get",
+ "class"
+ ],
"national_park"
],
"layout": {},
"paint": {
"fill-color": "hsl(132, 2%, 20%)",
- "fill-opacity": {
- "base": 1,
- "stops": [
- [
- 5,
- 0
- ],
- [
- 6,
- 0.5
- ]
- ]
- }
+ "fill-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0,
+ 6,
+ 0.5
+ ]
}
},
{
- "id": "parks",
+ "id": "landuse",
"type": "fill",
"source": "composite",
"source-layer": "landuse",
- "interactive": true,
+ "minzoom": 5,
"filter": [
- "==",
- "class",
- "park"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "park",
+ "airport",
+ "glacier",
+ "pitch",
+ "sand"
+ ],
+ true,
+ false
],
"layout": {},
"paint": {
- "fill-color": "hsl(132, 2%, 20%)",
- "fill-opacity": {
- "base": 1,
- "stops": [
+ "fill-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0,
+ 6,
+ [
+ "match",
[
- 5,
- 0
+ "get",
+ "class"
],
- [
- 6,
- 0.75
- ]
+ "glacier",
+ 0.5,
+ 1
]
- }
- }
- },
- {
- "id": "pitch",
- "type": "fill",
- "source": "composite",
- "source-layer": "landuse",
- "interactive": true,
- "filter": [
- "==",
- "class",
- "pitch"
- ],
- "layout": {},
- "paint": {
- "fill-color": "hsl(132, 2%, 20%)"
- }
- },
- {
- "id": "industrial",
- "type": "fill",
- "source": "composite",
- "source-layer": "landuse",
- "interactive": true,
- "filter": [
- "==",
- "class",
- "industrial"
- ],
- "layout": {},
- "paint": {
- "fill-color": "hsl(0, 0%, 20%)"
- }
- },
- {
- "id": "sand",
- "type": "fill",
- "source": "composite",
- "source-layer": "landuse",
- "interactive": true,
- "filter": [
- "==",
- "class",
- "sand"
- ],
- "layout": {},
- "paint": {
+ ],
"fill-color": "hsl(132, 2%, 20%)"
}
},
{
- "id": "hillshade_highlight_bright",
+ "id": "water-shadow",
"type": "fill",
- "metadata": {
- "mapbox:group": "1456969573402.7817"
- },
"source": "composite",
- "source-layer": "hillshade",
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "level",
- 94
- ],
+ "source-layer": "water",
"layout": {},
"paint": {
- "fill-color": "#fff",
- "fill-opacity": {
- "stops": [
- [
- 14,
- 0.04
- ],
+ "fill-translate-anchor": "viewport",
+ "fill-translate": [
+ "interpolate",
+ [
+ "exponential",
+ 1.2
+ ],
+ [
+ "zoom"
+ ],
+ 7,
+ [
+ "literal",
[
- 16,
+ 0,
0
]
- ]
- },
- "fill-antialias": false
- }
- },
- {
- "id": "hillshade_highlight_med",
- "type": "fill",
- "metadata": {
- "mapbox:group": "1456969573402.7817"
- },
- "source": "composite",
- "source-layer": "hillshade",
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "level",
- 90
- ],
- "layout": {},
- "paint": {
- "fill-color": "#fff",
- "fill-opacity": {
- "stops": [
- [
- 14,
- 0.04
- ],
+ ],
+ 16,
+ [
+ "literal",
[
- 16,
- 0
+ -1,
+ -1
]
]
- },
- "fill-antialias": false
+ ],
+ "fill-color": "hsl(185, 3%, 5%)"
}
},
{
- "id": "hillshade_shadow_faint",
- "type": "fill",
- "metadata": {
- "mapbox:group": "1456969573402.7817"
- },
+ "id": "waterway",
+ "type": "line",
"source": "composite",
- "source-layer": "hillshade",
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "level",
- 89
- ],
- "layout": {},
+ "source-layer": "waterway",
+ "minzoom": 8,
+ "layout": {
+ "line-cap": [
+ "step",
+ [
+ "zoom"
+ ],
+ "butt",
+ 11,
+ "round"
+ ],
+ "line-join": "round"
+ },
"paint": {
- "fill-color": "hsl(0, 0%, 35%)",
- "fill-opacity": {
- "stops": [
+ "line-color": "hsl(185, 2%, 10%)",
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.3
+ ],
+ [
+ "zoom"
+ ],
+ 9,
+ [
+ "match",
[
- 14,
- 0.033
+ "get",
+ "class"
],
[
- 16,
- 0
- ]
- ]
- },
- "fill-antialias": false
- }
- },
- {
- "id": "hillshade_shadow_med",
- "type": "fill",
- "metadata": {
- "mapbox:group": "1456969573402.7817"
- },
- "source": "composite",
- "source-layer": "hillshade",
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "level",
- 78
- ],
- "layout": {},
- "paint": {
- "fill-color": "hsl(0, 0%, 35%)",
- "fill-opacity": {
- "stops": [
+ "canal",
+ "river"
+ ],
+ 0.1,
+ 0
+ ],
+ 20,
+ [
+ "match",
[
- 14,
- 0.033
+ "get",
+ "class"
],
[
- 16,
- 0
- ]
+ "canal",
+ "river"
+ ],
+ 8,
+ 3
]
- },
- "fill-antialias": false
+ ],
+ "line-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 8,
+ 0,
+ 8.5,
+ 1
+ ]
}
},
{
- "id": "hillshade_shadow_dark",
+ "id": "water",
"type": "fill",
- "metadata": {
- "mapbox:group": "1456969573402.7817"
- },
"source": "composite",
- "source-layer": "hillshade",
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "level",
- 67
- ],
+ "source-layer": "water",
"layout": {},
"paint": {
- "fill-color": "hsl(0, 0%, 35%)",
- "fill-opacity": {
- "stops": [
- [
- 14,
- 0.06
- ],
- [
- 16,
- 0
- ]
- ]
- },
- "fill-antialias": false
+ "fill-color": "hsl(185, 2%, 10%)"
}
},
{
- "id": "hillshade_shadow_extreme",
+ "id": "hillshade",
"type": "fill",
- "metadata": {
- "mapbox:group": "1456969573402.7817"
- },
"source": "composite",
"source-layer": "hillshade",
"maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "level",
- 56
- ],
"layout": {},
"paint": {
- "fill-color": "hsl(0, 0%, 35%)",
- "fill-opacity": {
- "stops": [
- [
- 14,
- 0.06
- ],
- [
- 16,
- 0
- ]
- ]
- },
- "fill-antialias": false
- }
- },
- {
- "id": "waterway-river-canal",
- "type": "line",
- "source": "composite",
- "source-layer": "waterway",
- "minzoom": 8,
- "interactive": true,
- "filter": [
- "any",
- [
- "==",
- "class",
- "canal"
+ "fill-color": [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ "shadow",
+ "hsl(0, 0%, 35%)",
+ "hsl(0, 0%, 100%)"
],
- [
- "==",
- "class",
- "river"
- ]
- ],
- "layout": {
- "line-cap": {
- "base": 1,
- "stops": [
- [
- 0,
- "butt"
- ],
- [
- 11,
- "round"
- ]
- ]
- },
- "line-join": "round"
- },
- "paint": {
- "line-color": "hsl(185, 2%, 10%)",
- "line-width": {
- "base": 1.3,
- "stops": [
+ "fill-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ [
+ "match",
[
- 8.5,
- 0.1
+ "get",
+ "level"
],
[
- 20,
- 8
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 8,
- 0
+ 67,
+ 56
],
+ 0.06,
[
- 8.5,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "water shadow",
- "type": "fill",
- "source": "composite",
- "source-layer": "water",
- "interactive": true,
- "layout": {},
- "paint": {
- "fill-color": "hsl(185, 3%, 5%)",
- "fill-translate": {
- "base": 1.2,
- "stops": [
- [
- 7,
- [
- 0,
- 0
- ]
+ 89,
+ 78
],
- [
- 16,
- [
- -1,
- -1
- ]
- ]
- ]
- },
- "fill-translate-anchor": "viewport",
- "fill-opacity": 1
- }
- },
- {
- "id": "water",
- "ref": "water shadow",
- "interactive": true,
- "paint": {
- "fill-color": "hsl(185, 2%, 10%)"
+ 0.03,
+ 0.04
+ ],
+ 16,
+ 0
+ ],
+ "fill-antialias": false
}
},
{
- "id": "barrier_line-land-polygon",
+ "id": "land-structure-polygon",
"type": "fill",
"source": "composite",
- "source-layer": "barrier_line",
- "interactive": true,
+ "source-layer": "structure",
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "$type",
+ [
+ "geometry-type"
+ ],
"Polygon"
],
[
"==",
- "class",
+ [
+ "get",
+ "class"
+ ],
"land"
]
],
"layout": {},
"paint": {
- "fill-color": "hsl(55, 1%, 20%)",
- "fill-outline-color": "hsl(55, 1%, 20%)"
+ "fill-color": "hsl(55, 1%, 20%)"
}
},
{
- "id": "barrier_line-land-line",
+ "id": "land-structure-line",
"type": "line",
"source": "composite",
- "source-layer": "barrier_line",
- "interactive": true,
+ "source-layer": "structure",
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "$type",
+ [
+ "geometry-type"
+ ],
"LineString"
],
[
"==",
- "class",
+ [
+ "get",
+ "class"
+ ],
"land"
]
],
@@ -643,143 +376,180 @@
"line-cap": "round"
},
"paint": {
- "line-width": {
- "base": 1.99,
- "stops": [
- [
- 14,
- 0.75
- ],
- [
- 20,
- 40
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.99
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 0.75,
+ 20,
+ 40
+ ],
"line-color": "hsl(55, 1%, 20%)"
}
},
{
"id": "aeroway-polygon",
"type": "fill",
- "metadata": {
- "mapbox:group": "1444934828655.3389"
- },
"source": "composite",
"source-layer": "aeroway",
"minzoom": 11,
- "interactive": true,
"filter": [
"all",
[
- "!=",
- "type",
- "apron"
- ],
- [
"==",
- "$type",
+ [
+ "geometry-type"
+ ],
"Polygon"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "type"
+ ],
+ [
+ "runway",
+ "taxiway",
+ "helipad"
+ ],
+ true,
+ false
]
],
"layout": {},
"paint": {
- "fill-color": "hsl(0, 0%, 27%)",
- "fill-opacity": {
- "base": 1,
- "stops": [
- [
- 11,
- 0
- ],
- [
- 11.5,
- 1
- ]
- ]
- }
+ "fill-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 11,
+ 0,
+ 11.5,
+ 1
+ ],
+ "fill-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "aeroway-runway",
+ "id": "aeroway-line",
"type": "line",
- "metadata": {
- "mapbox:group": "1444934828655.3389"
- },
"source": "composite",
"source-layer": "aeroway",
"minzoom": 9,
- "interactive": true,
"filter": [
- "all",
+ "==",
[
- "==",
- "$type",
- "LineString"
+ "geometry-type"
],
- [
- "==",
- "type",
- "runway"
- ]
+ "LineString"
],
"layout": {},
"paint": {
- "line-color": "hsl(0, 0%, 27%)",
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 9,
+ [
+ "match",
[
- 9,
- 1
+ "get",
+ "type"
],
+ "runway",
+ 1,
+ "taxiway",
+ 0.5,
+ 0.5
+ ],
+ 18,
+ [
+ "match",
[
- 18,
- 80
- ]
+ "get",
+ "type"
+ ],
+ "runway",
+ 80,
+ "taxiway",
+ 20,
+ 20
]
- }
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "aeroway-taxiway",
+ "id": "building-outline",
"type": "line",
- "metadata": {
- "mapbox:group": "1444934828655.3389"
- },
"source": "composite",
- "source-layer": "aeroway",
- "minzoom": 9,
- "interactive": true,
+ "source-layer": "building",
+ "minzoom": 15,
"filter": [
"all",
[
- "==",
- "$type",
- "LineString"
+ "!=",
+ [
+ "get",
+ "type"
+ ],
+ "building:part"
],
[
"==",
- "type",
- "taxiway"
+ [
+ "get",
+ "underground"
+ ],
+ "false"
]
],
"layout": {},
"paint": {
- "line-color": "hsl(0, 0%, 27%)",
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 10,
- 0.5
- ],
- [
- 18,
- 20
- ]
- ]
- }
+ "line-color": "hsl(55, 1%, 15%)",
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 0.75,
+ 20,
+ 3
+ ],
+ "line-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 0,
+ 16,
+ 1
+ ]
}
},
{
@@ -788,121 +558,109 @@
"source": "composite",
"source-layer": "building",
"minzoom": 15,
- "interactive": true,
"filter": [
- "==",
- "underground",
- "false"
+ "all",
+ [
+ "!=",
+ [
+ "get",
+ "type"
+ ],
+ "building:part"
+ ],
+ [
+ "==",
+ [
+ "get",
+ "underground"
+ ],
+ "false"
+ ]
],
"layout": {},
"paint": {
- "fill-color": "hsl(55, 1%, 17%)",
- "fill-opacity": {
- "base": 1,
- "stops": [
- [
- 15.5,
- 0
- ],
- [
- 16,
- 1
- ]
- ]
- },
"fill-outline-color": "hsl(55, 1%, 15%)",
- "fill-antialias": true
+ "fill-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 0,
+ 16,
+ 1
+ ],
+ "fill-color": "hsl(55, 1%, 17%)"
}
},
{
- "id": "tunnel-street-low",
+ "id": "tunnel-street-minor-low",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 11,
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "street"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
],
[
- "==",
- "structure",
- "tunnel"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
[
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": {
- "stops": [
- [
- 11.5,
- 0
+ "street",
+ "street_limited",
+ "track",
+ "primary_link"
],
+ true,
+ false
+ ],
+ 14,
+ [
+ "match",
[
- 12,
- 1
+ "get",
+ "class"
],
[
- 14,
- 1
+ "street",
+ "street_limited",
+ "track",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "service"
],
- [
- 14.01,
- 0
- ]
+ true,
+ false
]
- }
- }
- },
- {
- "id": "tunnel-street_limited-low",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "source": "composite",
- "source-layer": "road",
- "minzoom": 11,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "class",
- "street_limited"
],
[
"==",
- "structure",
- "tunnel"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -910,251 +668,247 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ [
+ "match",
[
- 12.5,
- 0.5
+ "get",
+ "class"
],
[
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": {
- "stops": [
- [
- 11.5,
- 0
+ "street",
+ "street_limited",
+ "primary_link"
],
+ 2,
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ [
+ "match",
[
- 12,
- 1
+ "get",
+ "class"
],
[
- 14,
- 1
+ "street",
+ "street_limited",
+ "primary_link"
],
- [
- 14.01,
- 0
- ]
+ 18,
+ 12
]
- }
+ ],
+ "line-color": "hsl(185, 2%, 15%)",
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 1,
+ 14,
+ 0
+ ]
}
},
{
- "id": "tunnel-service-link-track-case",
+ "id": "tunnel-street-minor-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 14,
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "!=",
- "type",
- "trunk_link"
- ],
- [
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"tunnel"
],
[
- "in",
- "class",
- "link",
- "service",
- "track"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 29%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 14,
- 0.5
+ "get",
+ "class"
],
[
- 18,
- 12
- ]
- ]
- },
- "line-dasharray": [
- 3,
- 3
- ]
- }
- },
- {
- "id": "tunnel-street_limited-case",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-street_limited-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
+ "street",
+ "street_limited",
+ "track",
+ "primary_link"
],
+ true,
+ false
+ ],
+ 14,
+ [
+ "match",
[
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 29%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 13,
- 0
+ "get",
+ "class"
],
[
- 14,
- 2
+ "street",
+ "street_limited",
+ "track",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "service"
],
- [
- 18,
- 18
- ]
+ true,
+ false
]
- },
- "line-dasharray": [
- 3,
- 3
],
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "tunnel-street-case",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
+ ]
+ ],
+ "layout": {
+ "line-cap": "round",
+ "line-join": "round"
},
- "ref": "tunnel-street-low",
- "interactive": true,
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
+ "line-color": "hsl(185, 2%, 29%)",
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ [
+ "match",
[
- 12,
- 0.75
+ "get",
+ "class"
],
[
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 29%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 13,
- 0
+ "street",
+ "street_limited",
+ "primary_link"
],
+ 2,
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
[
- 18,
- 18
- ]
+ "street",
+ "street_limited",
+ "primary_link"
+ ],
+ 18,
+ 12
]
- },
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ],
"line-dasharray": [
3,
3
- ],
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
+ ]
}
},
{
- "id": "tunnel-secondary-tertiary-case",
+ "id": "tunnel-primary-secondary-tertiary-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"tunnel"
],
[
- "in",
- "class",
- "secondary",
- "tertiary"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "primary",
+ "secondary",
+ "tertiary"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -1162,63 +916,121 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.2,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ [
+ "match",
[
- 10,
- 0.75
+ "get",
+ "class"
],
+ "primary",
+ 1,
[
- 18,
- 2
- ]
- ]
- },
- "line-dasharray": [
- 3,
- 3
+ "secondary",
+ "tertiary"
+ ],
+ 0.75,
+ 0.75
+ ],
+ 18,
+ 2
],
- "line-gap-width": {
- "base": 1.5,
- "stops": [
+ "line-color": "hsl(185, 2%, 29%)",
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ [
+ "match",
[
- 8.5,
- 0.5
+ "get",
+ "class"
],
+ "primary",
+ 0.75,
[
- 10,
- 0.75
+ "secondary",
+ "tertiary"
],
+ 0.1,
+ 0.1
+ ],
+ 18,
+ [
+ "match",
[
- 18,
- 26
- ]
+ "get",
+ "class"
+ ],
+ "primary",
+ 32,
+ [
+ "secondary",
+ "tertiary"
+ ],
+ 26,
+ 26
]
- },
- "line-color": "hsl(185, 2%, 29%)"
+ ],
+ "line-dasharray": [
+ 3,
+ 3
+ ]
}
},
{
- "id": "tunnel-primary-case",
+ "id": "tunnel-major-link-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "primary"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "tunnel"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -1226,41 +1038,45 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 16,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
+ "line-color": "hsl(185, 2%, 29%)",
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
"line-dasharray": [
3,
3
- ],
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 29%)"
+ ]
}
},
{
- "id": "tunnel-trunk_link-case",
+ "id": "tunnel-motorway-trunk-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
@@ -1268,18 +1084,35 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"tunnel"
],
[
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
+ ],
+ [
"==",
- "type",
- "trunk_link"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -1287,37 +1120,35 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ 1,
+ 18,
+ 2
+ ],
"line-color": "hsl(185, 2%, 29%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ],
"line-dasharray": [
3,
3
@@ -1325,549 +1156,579 @@
}
},
{
- "id": "tunnel-motorway_link-case",
+ "id": "tunnel-construction",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 13,
- "interactive": true,
+ "minzoom": 14,
"filter": [
"all",
[
"==",
- "class",
- "motorway_link"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
],
[
"==",
- "structure",
- "tunnel"
+ [
+ "get",
+ "class"
+ ],
+ "construction"
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
- "layout": {
- "line-cap": "round",
- "line-join": "round"
- },
+ "layout": {},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 2,
+ 18,
+ 18
+ ],
+ "line-color": "hsl(187, 2%, 15%)",
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 12,
- 0.75
- ],
+ 0.4,
+ 0.8
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 20,
- 2
+ 0.3,
+ 0.6
]
- ]
- },
- "line-color": "hsl(185, 2%, 29%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
+ ],
+ 16,
+ [
+ "literal",
[
- 12,
- 0.5
- ],
+ 0.2,
+ 0.3
+ ]
+ ],
+ 17,
+ [
+ "literal",
[
- 14,
- 2
- ],
+ 0.2,
+ 0.25
+ ]
+ ],
+ 18,
+ [
+ "literal",
[
- 18,
- 18
+ 0.15,
+ 0.15
]
]
- },
- "line-dasharray": [
- 3,
- 3
]
}
},
{
- "id": "tunnel-trunk-case",
+ "id": "tunnel-path",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"tunnel"
],
[
"==",
- "type",
- "trunk"
+ [
+ "get",
+ "class"
+ ],
+ "path"
+ ],
+ [
+ "!=",
+ [
+ "get",
+ "type"
+ ],
+ "steps"
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 1,
+ 18,
+ 4
+ ],
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 5,
- 0.75
- ],
+ 1,
+ 0
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 16,
- 2
+ 1.75,
+ 1
]
- ]
- },
- "line-color": "hsl(185, 2%, 29%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
+ ],
+ 16,
+ [
+ "literal",
[
- 5,
+ 1,
0.75
- ],
+ ]
+ ],
+ 17,
+ [
+ "literal",
[
- 18,
- 32
+ 1,
+ 0.5
]
]
- },
- "line-opacity": 1,
- "line-dasharray": [
- 3,
- 3
- ]
+ ],
+ "line-color": "hsl(185, 2%, 15%)"
}
},
{
- "id": "tunnel-motorway-case",
+ "id": "tunnel-steps",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 14,
"filter": [
"all",
[
"==",
- "class",
- "motorway"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
],
[
"==",
- "structure",
- "tunnel"
+ [
+ "get",
+ "class"
+ ],
+ "steps"
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 1,
+ 16,
+ 1.6,
+ 18,
+ 6
+ ],
+ "line-color": "hsl(185, 2%, 15%)",
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 5,
- 0.75
- ],
+ 1,
+ 0
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 16,
- 2
+ 1.75,
+ 1
]
- ]
- },
- "line-color": "hsl(185, 2%, 29%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
+ ],
+ 16,
+ [
+ "literal",
[
- 5,
+ 1,
0.75
- ],
+ ]
+ ],
+ 17,
+ [
+ "literal",
[
- 18,
- 32
+ 0.3,
+ 0.3
]
]
- },
- "line-opacity": 1,
- "line-dasharray": [
- 3,
- 3
]
}
},
{
- "id": "tunnel-construction",
+ "id": "tunnel-major-link",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 14,
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "construction"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "tunnel"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-join": "miter"
+ "line-cap": "round",
+ "line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- },
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 0.4,
- 0.8
- ]
- ],
- [
- 15,
- [
- 0.3,
- 0.6
- ]
- ],
- [
- 16,
- [
- 0.2,
- 0.3
- ]
- ],
- [
- 17,
- [
- 0.2,
- 0.25
- ]
- ],
- [
- 18,
- [
- 0.15,
- 0.15
- ]
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
+ "line-color": "hsl(185, 2%, 15%)"
}
},
{
- "id": "tunnel-path",
+ "id": "tunnel-pedestrian",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "!=",
- "type",
- "steps"
+ "==",
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
],
[
"==",
- "class",
- "path"
+ [
+ "get",
+ "class"
+ ],
+ "pedestrian"
],
[
"==",
- "structure",
- "tunnel"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 15,
- 1
- ],
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 0.5,
+ 18,
+ 12
+ ],
+ "line-color": "hsl(185, 2%, 15%)",
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 18,
- 4
+ 1,
+ 0
]
- ]
- },
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
- ],
- [
- 15,
- [
- 1.75,
- 1
- ]
- ],
- [
- 16,
- [
- 1,
- 0.75
- ]
- ],
+ ],
+ 15,
+ [
+ "literal",
[
- 17,
- [
- 1,
- 0.5
- ]
+ 1.5,
+ 0.4
]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 14,
- 0
- ],
+ ],
+ 16,
+ [
+ "literal",
[
- 14.25,
- 1
+ 1,
+ 0.2
]
]
- }
+ ]
}
},
{
- "id": "tunnel-steps",
+ "id": "tunnel-street-minor",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "$type",
- "LineString"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
],
[
- "all",
+ "step",
[
- "==",
- "structure",
- "tunnel"
+ "zoom"
],
[
- "==",
- "type",
- "steps"
- ]
- ]
- ],
- "layout": {
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "match",
[
- 15,
- 1
+ "get",
+ "class"
],
[
- 18,
- 4
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
+ "street",
+ "street_limited",
+ "track",
+ "primary_link"
],
+ true,
+ false
+ ],
+ 14,
+ [
+ "match",
[
- 15,
- [
- 1.75,
- 1
- ]
+ "get",
+ "class"
],
[
- 16,
- [
- 1,
- 0.75
- ]
+ "street",
+ "street_limited",
+ "track",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "service"
],
- [
- 17,
- [
- 0.3,
- 0.3
- ]
- ]
+ true,
+ false
]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 14,
- 0
- ],
- [
- 14.25,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "tunnel-trunk_link",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
+ ]
+ ],
+ "layout": {
+ "line-cap": "round",
+ "line-join": "round"
},
- "ref": "tunnel-trunk_link-case",
- "interactive": true,
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ [
+ "match",
[
- 12,
- 0.5
+ "get",
+ "class"
],
[
- 14,
- 2
+ "street",
+ "street_limited",
+ "primary_link"
],
+ 2,
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ [
+ "match",
[
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": 1,
- "line-dasharray": [
- 1,
- 0
- ]
- }
- },
- {
- "id": "tunnel-motorway_link",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-motorway_link-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
+ "get",
+ "class"
],
[
- 14,
- 2
+ "street",
+ "street_limited",
+ "primary_link"
],
- [
- 18,
- 18
- ]
+ 18,
+ 12
]
- },
+ ],
"line-color": "hsl(185, 2%, 15%)",
- "line-opacity": 1,
- "line-dasharray": [
- 1,
- 0
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
]
}
},
{
- "id": "tunnel-pedestrian",
+ "id": "tunnel-primary-secondary-tertiary",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
@@ -1875,269 +1736,126 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
"==",
- "$type",
- "LineString"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
],
[
- "all",
+ "match",
[
- "==",
- "class",
- "pedestrian"
+ "get",
+ "class"
],
[
- "==",
- "structure",
- "tunnel"
- ]
+ "primary",
+ "secondary",
+ "tertiary"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
- [
- 18,
- 12
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": 1,
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
- ],
- [
- 15,
- [
- 1.5,
- 0.4
- ]
- ],
- [
- 16,
- [
- 1,
- 0.2
- ]
- ]
- ]
- }
- }
- },
- {
- "id": "tunnel-service-link-track",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-service-link-track-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
- [
- 18,
- 12
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-dasharray": [
- 1,
- 0
- ]
- }
- },
- {
- "id": "tunnel-street_limited",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-street_limited-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "tunnel-street",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-street-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": {
- "base": 1,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ [
+ "match",
[
- 13.99,
- 0
+ "get",
+ "class"
],
+ "primary",
+ 0.75,
[
- 14,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "tunnel-secondary-tertiary",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-secondary-tertiary-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 8.5,
- 0.5
+ "secondary",
+ "tertiary"
],
+ 0.1,
+ 0.1
+ ],
+ 18,
+ [
+ "match",
[
- 10,
- 0.75
+ "get",
+ "class"
],
+ "primary",
+ 32,
[
- 18,
- 26
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": 1,
- "line-dasharray": [
- 1,
- 0
- ],
- "line-blur": 0
- }
- },
- {
- "id": "tunnel-primary",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-primary-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
+ "secondary",
+ "tertiary"
],
- [
- 18,
- 32
- ]
+ 26,
+ 26
]
- },
- "line-color": "hsl(185, 2%, 15%)",
- "line-opacity": 1,
- "line-dasharray": [
- 1,
- 0
],
- "line-blur": 0
+ "line-color": "hsl(185, 2%, 15%)"
}
},
{
- "id": "tunnel-trunk",
+ "id": "tunnel-motorway-trunk",
"type": "line",
"metadata": {
"mapbox:group": "1444855769305.6016"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "trunk"
+ [
+ "get",
+ "structure"
+ ],
+ "tunnel"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "tunnel"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -2145,50 +1863,21 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-color": "hsl(185, 2%, 15%)"
- }
- },
- {
- "id": "tunnel-motorway",
- "metadata": {
- "mapbox:group": "1444855769305.6016"
- },
- "ref": "tunnel-motorway-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-dasharray": [
- 1,
- 0
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
],
- "line-opacity": 1,
- "line-color": "hsl(185, 2%, 15%)",
- "line-blur": 0
+ "line-color": "hsl(185, 2%, 15%)"
}
},
{
@@ -2200,167 +1889,127 @@
"source": "composite",
"source-layer": "road",
"minzoom": 12,
- "interactive": true,
"filter": [
"all",
[
"==",
- "$type",
- "LineString"
+ [
+ "get",
+ "class"
+ ],
+ "pedestrian"
],
[
- "all",
+ "match",
[
- "==",
- "class",
- "pedestrian"
+ "get",
+ "structure"
],
[
- "==",
- "structure",
- "none"
- ]
+ "none",
+ "ford"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 2
- ],
- [
- 18,
- 14.5
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 2,
+ 18,
+ 14.5
+ ],
"line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": 0,
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.9,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ]
}
},
{
- "id": "road-street-low",
+ "id": "road-minor-low",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 11,
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "==",
- "$type",
- "LineString"
- ],
- [
- "all",
+ "step",
[
- "==",
- "class",
- "street"
+ "zoom"
],
[
"==",
- "structure",
- "none"
- ]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
[
- 12.5,
- 0.5
+ "get",
+ "class"
],
+ "track"
+ ],
+ 14,
+ [
+ "match",
[
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "stops": [
- [
- 11,
- 0
+ "get",
+ "class"
],
[
- 11.25,
- 1
+ "track",
+ "secondary_link",
+ "tertiary_link",
+ "service"
],
- [
- 14,
- 1
- ],
- [
- 14.01,
- 0
- ]
+ true,
+ false
]
- }
- }
- },
- {
- "id": "road-street_limited-low",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "source": "composite",
- "source-layer": "road",
- "minzoom": 11,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "$type",
- "LineString"
],
[
- "all",
+ "match",
[
- "==",
- "class",
- "street_limited"
+ "get",
+ "structure"
],
[
- "==",
- "structure",
- "none"
- ]
+ "none",
+ "ford"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -2368,253 +2017,180 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "stops": [
- [
- 11,
- 0
- ],
- [
- 11.25,
- 1
- ],
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ [
+ "match",
[
- 14,
- 1
+ "get",
+ "class"
],
- [
- 14.01,
- 0
- ]
- ]
- }
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ 12
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 1,
+ 14,
+ 0
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "road-service-link-track-case",
+ "id": "road-street-low",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 14,
- "interactive": true,
+ "minzoom": 11,
"filter": [
"all",
[
- "!=",
- "type",
- "trunk_link"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "street",
+ "street_limited",
+ "primary_link"
+ ],
+ true,
+ false
],
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
- "in",
- "class",
- "link",
- "service",
- "track"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
- [
- 18,
- 12
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.9,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "road-street_limited-case",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-street_limited-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 13,
- 0
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.9,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 1,
+ 14,
+ 0
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "road-street-case",
+ "id": "road-minor-case",
+ "type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
- "ref": "road-street-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
+ "source": "composite",
+ "source-layer": "road",
+ "minzoom": 13,
+ "filter": [
+ "all",
+ [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "==",
[
- 13,
- 0
+ "get",
+ "class"
],
+ "track"
+ ],
+ 14,
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
[
- 18,
- 18
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.9,
- 0
+ "track",
+ "secondary_link",
+ "tertiary_link",
+ "service"
],
- [
- 14,
- 1
- ]
+ true,
+ false
]
- }
- }
- },
- {
- "id": "road-main-case",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "source": "composite",
- "source-layer": "road",
- "interactive": true,
- "filter": [
- "all",
+ ],
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
- "in",
- "class",
- "secondary",
- "tertiary"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -2622,81 +2198,99 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.2,
- "stops": [
- [
- 10,
- 0.75
- ],
- [
- 18,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
"line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 8.5,
- 0.5
- ],
- [
- 10,
- 0.75
- ],
- [
- 18,
- 26
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 6,
- 0
- ],
- [
- 7,
- 0.4
- ],
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ [
+ "match",
[
- 9,
- 0.5
+ "get",
+ "class"
],
- [
- 10,
- 1
- ]
- ]
- }
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ 12
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ]
}
},
{
- "id": "road-primary-case",
+ "id": "road-street-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 11,
"filter": [
"all",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "street",
+ "street_limited",
+ "primary_link"
+ ],
+ true,
+ false
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "class",
- "primary"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -2704,78 +2298,90 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 16,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
"line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 6,
- 0
- ],
- [
- 7,
- 0.4
- ],
- [
- 9,
- 0.5
- ],
- [
- 10,
- 1
- ]
- ]
- }
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ]
}
},
{
- "id": "road-motorway_link-case",
+ "id": "road-secondary-tertiary-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 10,
- "interactive": true,
"filter": [
"all",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "secondary",
+ "tertiary"
+ ],
+ true,
+ false
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "class",
- "motorway_link"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -2783,82 +2389,74 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ 0.75,
+ 18,
+ 2
+ ],
"line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 6,
- 0
- ],
- [
- 7,
- 0.4
- ],
- [
- 9,
- 0.5
- ],
- [
- 10,
- 1
- ]
- ]
- }
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.1,
+ 18,
+ 26
+ ]
}
},
{
- "id": "road-trunk_link-case",
+ "id": "road-primary-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 11,
- "interactive": true,
"filter": [
"all",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "==",
+ [
+ "get",
+ "class"
+ ],
+ "primary"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "type",
- "trunk_link"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -2866,82 +2464,80 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ 1,
+ 18,
+ 2
+ ],
"line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 6,
- 0
- ],
- [
- 7,
- 0.4
- ],
- [
- 9,
- 0.5
- ],
- [
- 10,
- 1
- ]
- ]
- }
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ]
}
},
{
- "id": "road-trunk-case",
+ "id": "road-major-link-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 5,
- "interactive": true,
+ "minzoom": 10,
"filter": [
"all",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "class",
- "trunk"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -2949,77 +2545,90 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 7,
- 0.5
- ],
- [
- 10,
- 1
- ],
- [
- 16,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
"line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.5
- ],
- [
- 9,
- 1.4
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 6,
- 0
- ],
- [
- 6.1,
- 1
- ]
- ]
- }
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 11,
+ 1
+ ]
}
},
{
- "id": "road-motorway-case",
+ "id": "road-motorway-trunk-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
"filter": [
"all",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "class",
- "motorway"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -3027,38 +2636,53 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 7,
- 0.5
- ],
- [
- 10,
- 1
- ],
- [
- 16,
- 2
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ 1,
+ 18,
+ 2
+ ],
"line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 5,
- 0.75
+ "get",
+ "class"
],
- [
- 18,
- 32
- ]
- ]
- },
- "line-opacity": 1
+ "motorway",
+ 1,
+ 0
+ ],
+ 6,
+ 1
+ ]
}
},
{
@@ -3070,306 +2694,233 @@
"source": "composite",
"source-layer": "road",
"minzoom": 14,
- "interactive": true,
"filter": [
"all",
[
"==",
- "$type",
- "LineString"
+ [
+ "get",
+ "class"
+ ],
+ "construction"
],
[
- "all",
+ "match",
[
- "==",
- "class",
- "construction"
+ "get",
+ "structure"
],
[
- "==",
- "structure",
- "none"
- ]
+ "none",
+ "ford"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
- "layout": {
- "line-join": "miter"
- },
+ "layout": {},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 2,
+ 18,
+ 18
+ ],
"line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 14,
- 1
+ 0.4,
+ 0.8
]
- ]
- },
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 0.4,
- 0.8
- ]
- ],
+ ],
+ 15,
+ [
+ "literal",
[
- 15,
- [
- 0.3,
- 0.6
- ]
- ],
+ 0.3,
+ 0.6
+ ]
+ ],
+ 16,
+ [
+ "literal",
[
- 16,
- [
- 0.2,
- 0.3
- ]
- ],
+ 0.2,
+ 0.3
+ ]
+ ],
+ 17,
+ [
+ "literal",
[
- 17,
- [
- 0.2,
- 0.25
- ]
- ],
+ 0.2,
+ 0.25
+ ]
+ ],
+ 18,
+ [
+ "literal",
[
- 18,
- [
- 0.15,
- 0.15
- ]
+ 0.15,
+ 0.15
]
]
- }
+ ]
}
},
{
- "id": "road-sidewalks",
+ "id": "road-path",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 16,
- "interactive": true,
+ "minzoom": 12,
"filter": [
"all",
[
"==",
- "$type",
- "LineString"
+ [
+ "get",
+ "class"
+ ],
+ "path"
],
[
- "all",
+ "step",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "zoom"
],
[
- "in",
- "type",
- "crossing",
- "sidewalk"
- ]
- ]
- ],
- "layout": {
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 15,
- 1
- ],
+ "!",
[
- 18,
- 4
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
+ "match",
[
- 1,
- 0
- ]
- ],
- [
- 15,
- [
- 1.75,
- 1
- ]
- ],
- [
- 16,
+ "get",
+ "type"
+ ],
[
- 1,
- 0.75
- ]
- ],
- [
- 17,
- [
- 1,
- 0.5
- ]
+ "steps",
+ "sidewalk",
+ "crossing"
+ ],
+ true,
+ false
]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
+ ],
+ 16,
+ [
+ "!=",
[
- 16,
- 0
+ "get",
+ "type"
],
- [
- 16.25,
- 1
- ]
+ "steps"
]
- }
- }
- },
- {
- "id": "road-path",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "source": "composite",
- "source-layer": "road",
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "$type",
- "LineString"
],
[
- "all",
+ "match",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "get",
+ "structure"
],
[
- "!in",
- "type",
- "crossing",
- "sidewalk",
- "steps"
+ "none",
+ "ford"
],
+ true,
+ false
+ ],
+ [
+ "==",
[
- "==",
- "class",
- "path"
- ]
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 15,
- 1
- ],
- [
- 18,
- 4
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 13,
+ 0.5,
+ 14,
+ 1,
+ 15,
+ 1,
+ 18,
+ 4
+ ],
"line-color": "hsl(0, 0%, 27%)",
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
- ],
- [
- 15,
- [
- 1.75,
- 1
- ]
- ],
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 16,
- [
- 1,
- 0.75
- ]
- ],
+ 1,
+ 0
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 17,
- [
- 1,
- 0.5
- ]
+ 1.75,
+ 1
]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
+ ],
+ 16,
+ [
+ "literal",
[
- 14,
- 0
- ],
+ 1,
+ 0.75
+ ]
+ ],
+ 17,
+ [
+ "literal",
[
- 14.25,
- 1
+ 1,
+ 0.5
]
]
- }
+ ]
}
},
{
@@ -3380,233 +2931,141 @@
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 14,
"filter": [
"all",
[
"==",
- "$type",
- "LineString"
+ [
+ "get",
+ "type"
+ ],
+ "steps"
],
[
- "all",
+ "match",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "get",
+ "structure"
],
[
- "==",
- "type",
- "steps"
- ]
+ "none",
+ "ford"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 15,
- 1
- ],
- [
- 18,
- 4
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 1,
+ 16,
+ 1.6,
+ 18,
+ 6
+ ],
"line-color": "hsl(0, 0%, 27%)",
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
- ],
- [
- 15,
- [
- 1.75,
- 1
- ]
- ],
- [
- 16,
- [
- 1,
- 0.75
- ]
- ],
- [
- 17,
- [
- 0.3,
- 0.3
- ]
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 14,
+ 1,
0
- ],
- [
- 14.25,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "road-trunk_link",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-trunk_link-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": 1
- }
- },
- {
- "id": "road-motorway_link",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-motorway_link-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
+ ],
+ 15,
+ [
+ "literal",
[
- 18,
- 18
+ 1.75,
+ 1
]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": 1
- }
- },
- {
- "id": "road-pedestrian",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-pedestrian-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
+ ],
+ 16,
+ [
+ "literal",
[
- 18,
- 12
+ 1,
+ 0.75
]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": 1,
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
- ],
- [
- 15,
- [
- 1.5,
- 0.4
- ]
- ],
+ ],
+ 17,
+ [
+ "literal",
[
- 16,
- [
- 1,
- 0.2
- ]
+ 0.3,
+ 0.3
]
]
- }
+ ]
}
},
{
- "id": "road-service-link-track",
+ "id": "road-major-link",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 14,
- "interactive": true,
+ "minzoom": 10,
"filter": [
"all",
[
- "!=",
- "type",
- "trunk_link"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
],
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
- "in",
- "class",
- "link",
- "service",
- "track"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -3614,367 +3073,175 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
- [
- 18,
- 12
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
"line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "road-street_limited",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-street_limited-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "road-street",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-street-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "road-secondary-tertiary",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-main-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 8.5,
- 0.5
- ],
- [
- 10,
- 0.75
- ],
- [
- 18,
- 26
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1.2,
- "stops": [
- [
- 5,
- 0
- ],
- [
- 5.5,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "road-primary",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-primary-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1.2,
- "stops": [
- [
- 5,
- 0
- ],
- [
- 5.5,
- 1
- ]
- ]
- }
- }
- },
- {
- "id": "road-trunk",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-trunk-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.5
- ],
- [
- 9,
- 1.4
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": 1
- }
- },
- {
- "id": "road-motorway",
- "metadata": {
- "mapbox:group": "1444855786460.0557"
- },
- "ref": "road-motorway-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": 1
- }
- },
- {
- "id": "road-rail",
+ "id": "road-pedestrian",
"type": "line",
"metadata": {
"mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 13,
- "interactive": true,
+ "minzoom": 12,
"filter": [
"all",
[
- "!in",
- "structure",
- "bridge",
- "tunnel"
+ "==",
+ [
+ "get",
+ "class"
+ ],
+ "pedestrian"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
- "in",
- "class",
- "major_rail",
- "minor_rail"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-color": "hsl(0, 0%, 17%)",
- "line-width": {
- "base": 1,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 0.5,
+ 18,
+ 12
+ ],
+ "line-color": "hsl(0, 0%, 27%)",
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 14,
- 0.75
- ],
+ 1,
+ 0
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 20,
- 1
+ 1.5,
+ 0.4
+ ]
+ ],
+ 16,
+ [
+ "literal",
+ [
+ 1,
+ 0.2
]
]
- }
+ ]
}
},
{
- "id": "bridge-pedestrian-case",
+ "id": "road-minor",
"type": "line",
"metadata": {
- "mapbox:group": "1444855799204.86"
+ "mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
- "==",
- "$type",
- "LineString"
- ],
- [
- "all",
+ "step",
[
- "==",
- "class",
- "pedestrian"
+ "zoom"
],
[
"==",
- "structure",
- "bridge"
- ]
- ]
- ],
- "layout": {
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
[
- 14,
- 2
+ "get",
+ "class"
],
+ "track"
+ ],
+ 14,
+ [
+ "match",
[
- 18,
- 14.5
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": 0,
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
+ "get",
+ "class"
],
[
- 14,
- 1
- ]
+ "track",
+ "secondary_link",
+ "tertiary_link",
+ "service"
+ ],
+ true,
+ false
]
- }
- }
- },
- {
- "id": "bridge-street-low",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "source": "composite",
- "source-layer": "road",
- "minzoom": 11,
- "interactive": true,
- "filter": [
- "all",
+ ],
[
- "==",
- "class",
- "street"
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -3982,67 +3249,85 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
- [
- 18,
- 18
- ]
- ]
- },
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ 12
+ ],
"line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "stops": [
- [
- 11.5,
- 0
- ],
- [
- 12,
- 1
- ],
- [
- 14,
- 1
- ],
- [
- 14.01,
- 0
- ]
- ]
- }
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ]
}
},
{
- "id": "bridge-street_limited-low",
+ "id": "road-street",
"type": "line",
"metadata": {
- "mapbox:group": "1444855799204.86"
+ "mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
"minzoom": 11,
- "interactive": true,
"filter": [
"all",
[
- "==",
- "class",
- "street_limited"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "street",
+ "street_limited",
+ "primary_link"
+ ],
+ true,
+ false
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -4050,367 +3335,353 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
"line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "stops": [
- [
- 11.5,
- 0
- ],
- [
- 12,
- 1
- ],
- [
- 14,
- 1
- ],
- [
- 14.01,
- 0
- ]
- ]
- }
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ]
}
},
{
- "id": "bridge-service-link-track-case",
+ "id": "road-secondary-tertiary",
"type": "line",
"metadata": {
- "mapbox:group": "1444855799204.86"
+ "mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 14,
- "interactive": true,
"filter": [
"all",
[
- "!=",
- "type",
- "trunk_link"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "secondary",
+ "tertiary"
+ ],
+ true,
+ false
],
[
- "==",
- "structure",
- "bridge"
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
- "in",
- "class",
- "link",
- "service",
- "track"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
- [
- 18,
- 12
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.1,
+ 18,
+ 26
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-street_limited-case",
+ "id": "road-primary",
"type": "line",
"metadata": {
- "mapbox:group": "1444855799204.86"
+ "mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 11,
- "interactive": true,
"filter": [
"all",
[
"==",
- "class",
- "street_limited"
+ [
+ "get",
+ "class"
+ ],
+ "primary"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 13,
- 0
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-street-case",
+ "id": "road-motorway-trunk",
"type": "line",
"metadata": {
- "mapbox:group": "1444855799204.86"
+ "mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 11,
- "interactive": true,
"filter": [
"all",
[
- "==",
- "class",
- "street"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
+ ],
+ [
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.75
- ],
- [
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- },
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 13,
- 0
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-secondary-tertiary-case",
+ "id": "road-rail",
"type": "line",
"metadata": {
- "mapbox:group": "1444855799204.86"
+ "mapbox:group": "1444855786460.0557"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "==",
- "structure",
- "bridge"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "major_rail",
+ "minor_rail"
+ ],
+ true,
+ false
],
[
- "in",
- "class",
- "secondary",
- "tertiary"
+ "match",
+ [
+ "get",
+ "structure"
+ ],
+ [
+ "none",
+ "ford"
+ ],
+ true,
+ false
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.2,
- "stops": [
- [
- 10,
- 0.75
- ],
- [
- 18,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 8.5,
- 0.5
- ],
- [
- 10,
- 0.75
- ],
- [
- 18,
- 26
- ]
- ]
- },
- "line-translate": [
- 0,
- 0
- ]
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 0.5,
+ 20,
+ 1
+ ],
+ "line-color": "hsl(0, 0%, 17%)"
}
},
{
- "id": "bridge-primary-case",
+ "id": "bridge-pedestrian-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "primary"
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
"==",
- "structure",
- "bridge"
+ [
+ "get",
+ "class"
+ ],
+ "pedestrian"
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 16,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
- "line-translate": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 2,
+ 18,
+ 14.5
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
0,
- 0
- ]
+ 14,
+ 1
+ ],
+ "line-color": "hsl(0, 0%, 17%)"
}
},
{
- "id": "bridge-trunk_link-case",
+ "id": "bridge-street-minor-low",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
@@ -4418,541 +3689,480 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
- "==",
- "type",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 12,
- 0.75
+ "get",
+ "class"
],
[
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
+ "street",
+ "street_limited",
+ "track",
+ "primary_link"
],
+ true,
+ false
+ ],
+ 14,
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
[
- 18,
- 18
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 10.99,
- 0
+ "street",
+ "street_limited",
+ "track",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "service"
],
- [
- 11,
- 1
- ]
+ true,
+ false
]
- }
- }
- },
- {
- "id": "bridge-motorway_link-case",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "source": "composite",
- "source-layer": "road",
- "minzoom": 13,
- "interactive": true,
- "filter": [
- "all",
- [
- "<=",
- "layer",
- 1
],
[
"==",
- "class",
- "motorway_link"
- ],
- [
- "==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ [
+ "match",
[
- 12,
- 0.75
+ "get",
+ "class"
],
[
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
+ "street",
+ "street_limited",
+ "primary_link"
],
+ 2,
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
[
- 18,
- 18
- ]
+ "street",
+ "street_limited",
+ "primary_link"
+ ],
+ 18,
+ 12
]
- },
- "line-opacity": 1
- }
- },
- {
- "id": "bridge-trunk-case",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "source": "composite",
- "source-layer": "road",
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "class",
- "trunk"
],
- [
- "==",
- "structure",
- "bridge"
+ "line-color": "hsl(0, 0%, 27%)",
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 1,
+ 14,
+ 0
]
- ],
- "layout": {
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 10,
- 1
- ],
- [
- 16,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- }
}
},
{
- "id": "bridge-motorway-case",
+ "id": "bridge-street-minor-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "motorway"
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
- "==",
- "structure",
- "bridge"
- ]
- ],
- "layout": {
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 7,
- 0.5
+ "get",
+ "class"
],
[
- 10,
- 1
+ "street",
+ "street_limited",
+ "track",
+ "primary_link"
],
+ true,
+ false
+ ],
+ 14,
+ [
+ "match",
[
- 16,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
+ "get",
+ "class"
],
[
- 18,
- 32
- ]
+ "street",
+ "street_limited",
+ "track",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "service"
+ ],
+ true,
+ false
]
- }
- }
- },
- {
- "id": "bridge-construction",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "source": "composite",
- "source-layer": "road",
- "minzoom": 14,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "class",
- "construction"
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-join": "miter"
+ "line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
- [
- 14,
- 1
- ]
- ]
- },
- "line-dasharray": {
- "base": 1,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ],
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ [
+ "match",
[
- 14,
- [
- 0.4,
- 0.8
- ]
+ "get",
+ "class"
],
[
- 15,
- [
- 0.3,
- 0.6
- ]
+ "street",
+ "street_limited",
+ "primary_link"
],
+ 2,
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ [
+ "match",
[
- 16,
- [
- 0.2,
- 0.3
- ]
+ "get",
+ "class"
],
[
- 17,
- [
- 0.2,
- 0.25
- ]
+ "street",
+ "street_limited",
+ "primary_link"
],
- [
- 18,
- [
- 0.15,
- 0.15
- ]
- ]
+ 18,
+ 12
]
- }
+ ],
+ "line-color": "hsl(0, 0%, 17%)"
}
},
{
- "id": "bridge-path",
+ "id": "bridge-primary-secondary-tertiary-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "!=",
- "type",
- "steps"
+ "==",
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
- "==",
- "class",
- "path"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "primary",
+ "secondary",
+ "tertiary"
+ ],
+ true,
+ false
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ [
+ "match",
[
- 15,
- 1
+ "get",
+ "class"
],
+ "primary",
+ 1,
[
- 18,
- 4
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
+ "secondary",
+ "tertiary"
],
+ 0.75,
+ 0.75
+ ],
+ 18,
+ 2
+ ],
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 10,
+ 1
+ ],
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ [
+ "match",
[
- 15,
- [
- 1.75,
- 1
- ]
+ "get",
+ "class"
],
+ "primary",
+ 0.75,
[
- 16,
- [
- 1,
- 0.75
- ]
+ "secondary",
+ "tertiary"
],
+ 0.1,
+ 0.1
+ ],
+ 18,
+ [
+ "match",
[
- 17,
- [
- 1,
- 0.5
- ]
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 14,
- 0
+ "get",
+ "class"
],
+ "primary",
+ 32,
[
- 14.25,
- 1
- ]
+ "secondary",
+ "tertiary"
+ ],
+ 26,
+ 26
]
- }
+ ],
+ "line-color": "hsl(0, 0%, 17%)"
}
},
{
- "id": "bridge-steps",
+ "id": "bridge-major-link-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "$type",
- "LineString"
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
- "all",
+ "match",
[
- "==",
- "structure",
- "bridge"
+ "get",
+ "class"
],
[
- "==",
- "type",
- "steps"
- ]
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
+ ],
+ [
+ "<=",
+ [
+ "get",
+ "layer"
+ ],
+ 1
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 15,
- 1
- ],
- [
- 18,
- 4
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 14,
- [
- 1,
- 0
- ]
- ],
- [
- 15,
- [
- 1.75,
- 1
- ]
- ],
- [
- 16,
- [
- 1,
- 0.75
- ]
- ],
- [
- 17,
- [
- 0.3,
- 0.3
- ]
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 14,
- 0
- ],
- [
- 14.25,
- 1
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
+ "line-color": "hsl(0, 0%, 17%)"
}
},
{
- "id": "bridge-trunk_link",
+ "id": "bridge-motorway-trunk-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
@@ -4960,438 +4170,421 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
- "!in",
- "layer",
- 2,
- 3,
- 4,
- 5
- ],
- [
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
+ ],
+ [
+ "<=",
+ [
+ "get",
+ "layer"
+ ],
+ 1
+ ],
+ [
"==",
- "type",
- "trunk_link"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)"
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ 1,
+ 18,
+ 2
+ ],
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ],
+ "line-color": "hsl(0, 0%, 17%)"
}
},
{
- "id": "bridge-motorway_link",
+ "id": "bridge-construction",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 13,
- "interactive": true,
+ "minzoom": 14,
"filter": [
"all",
[
- "!in",
- "layer",
- 2,
- 3,
- 4,
- 5
+ "==",
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
"==",
- "class",
- "motorway_link"
+ [
+ "get",
+ "class"
+ ],
+ "construction"
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
- "layout": {
- "line-cap": "round",
- "line-join": "round"
- },
+ "layout": {},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 2,
+ 18,
+ 18
+ ],
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 18,
- 18
+ 0.4,
+ 0.8
]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)"
- }
- },
- {
- "id": "bridge-pedestrian",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "ref": "bridge-pedestrian-case",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
+ ],
+ 15,
+ [
+ "literal",
[
- 18,
- 12
+ 0.3,
+ 0.6
]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": 1,
- "line-dasharray": {
- "base": 1,
- "stops": [
+ ],
+ 16,
+ [
+ "literal",
[
- 14,
- [
- 1,
- 0
- ]
- ],
+ 0.2,
+ 0.3
+ ]
+ ],
+ 17,
+ [
+ "literal",
[
- 15,
- [
- 1.5,
- 0.4
- ]
- ],
+ 0.2,
+ 0.25
+ ]
+ ],
+ 18,
+ [
+ "literal",
[
- 16,
- [
- 1,
- 0.2
- ]
+ 0.15,
+ 0.15
]
]
- }
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-service-link-track",
+ "id": "bridge-path",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "minzoom": 14,
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "!=",
- "type",
- "trunk_link"
+ "==",
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
"==",
- "structure",
- "bridge"
+ [
+ "get",
+ "class"
+ ],
+ "path"
],
[
- "in",
- "class",
- "link",
- "service",
- "track"
+ "!=",
+ [
+ "get",
+ "type"
+ ],
+ "steps"
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 14,
- 0.5
- ],
- [
- 18,
- 12
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)"
- }
- },
- {
- "id": "bridge-street_limited",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "ref": "bridge-street_limited-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 1,
+ 18,
+ 4
+ ],
"line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1,
- "stops": [
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 13.99,
+ 1,
0
- ],
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 14,
+ 1.75,
1
]
- ]
- }
- }
- },
- {
- "id": "bridge-street",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "ref": "bridge-street-low",
- "interactive": true,
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12.5,
- 0.5
- ],
- [
- 14,
- 2
- ],
+ ],
+ 16,
+ [
+ "literal",
[
- 18,
- 18
+ 1,
+ 0.75
]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 13.99,
- 0
- ],
+ ],
+ 17,
+ [
+ "literal",
[
- 14,
- 1
+ 1,
+ 0.5
]
]
- }
+ ]
}
},
{
- "id": "bridge-secondary-tertiary",
+ "id": "bridge-steps",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 14,
"filter": [
"all",
[
"==",
- "structure",
+ [
+ "get",
+ "type"
+ ],
+ "steps"
+ ],
+ [
+ "==",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
- "in",
- "type",
- "secondary",
- "tertiary"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 8.5,
- 0.5
- ],
- [
- 10,
- 0.75
- ],
- [
- 18,
- 26
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 1,
+ 16,
+ 1.6,
+ 18,
+ 6
+ ],
"line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1.2,
- "stops": [
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 5,
+ 1,
0
- ],
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 5.5,
+ 1.75,
1
]
- ]
- }
- }
- },
- {
- "id": "bridge-primary",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "source": "composite",
- "source-layer": "road",
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "structure",
- "bridge"
- ],
- [
- "==",
- "type",
- "primary"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round"
- },
- "paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ ],
+ 16,
+ [
+ "literal",
[
- 5,
+ 1,
0.75
- ],
- [
- 18,
- 32
]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-opacity": {
- "base": 1.2,
- "stops": [
- [
- 5,
- 0
- ],
+ ],
+ 17,
+ [
+ "literal",
[
- 5.5,
- 1
+ 0.3,
+ 0.3
]
]
- }
+ ]
}
},
{
- "id": "bridge-trunk",
+ "id": "bridge-major-link",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "!in",
- "layer",
- 2,
- 3,
- 4,
- 5
+ "==",
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
- "==",
- "class",
- "trunk"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
+ ],
+ [
+ "<=",
+ [
+ "get",
+ "layer"
+ ],
+ 1
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -5399,75 +4592,112 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
"line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-motorway",
+ "id": "bridge-pedestrian",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
- "!in",
- "layer",
- 2,
- 3,
- 4,
- 5
+ "==",
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
"==",
- "class",
- "motorway"
+ [
+ "get",
+ "class"
+ ],
+ "pedestrian"
],
[
"==",
- "structure",
- "bridge"
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 0.5,
+ 18,
+ 12
+ ],
+ "line-color": "hsl(0, 0%, 27%)",
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 5,
- 0.75
- ],
+ 1,
+ 0
+ ]
+ ],
+ 15,
+ [
+ "literal",
[
- 18,
- 32
+ 1.5,
+ 0.4
+ ]
+ ],
+ 16,
+ [
+ "literal",
+ [
+ 1,
+ 0.2
]
]
- },
- "line-color": "hsl(0, 0%, 27%)"
+ ]
}
},
{
- "id": "bridge-rail",
+ "id": "bridge-street-minor",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
@@ -5475,121 +4705,127 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
- "in",
- "class",
- "major_rail",
- "minor_rail"
- ]
- ],
- "layout": {
- "line-join": "round"
- },
- "paint": {
- "line-color": "hsl(0, 0%, 17%)",
- "line-width": {
- "base": 1,
- "stops": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 14,
- 0.75
+ "get",
+ "class"
],
[
- 20,
- 1
- ]
+ "street",
+ "street_limited",
+ "track",
+ "primary_link"
+ ],
+ true,
+ false
+ ],
+ 14,
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "street",
+ "street_limited",
+ "track",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "service"
+ ],
+ true,
+ false
]
- }
- }
- },
- {
- "id": "bridge-trunk_link-2-case",
- "type": "line",
- "metadata": {
- "mapbox:group": "1444855799204.86"
- },
- "source": "composite",
- "source-layer": "road",
- "minzoom": 13,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "structure",
- "bridge"
],
[
"==",
- "type",
- "trunk_link"
- ],
- [
- ">=",
- "layer",
- 2
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ [
+ "match",
[
- 12,
- 0.75
+ "get",
+ "class"
],
[
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
+ "street",
+ "street_limited",
+ "primary_link"
],
+ 2,
+ "track",
+ 1,
+ 0.5
+ ],
+ 18,
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
[
- 18,
- 18
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 10.99,
- 0
+ "street",
+ "street_limited",
+ "primary_link"
],
- [
- 11,
- 1
- ]
+ 18,
+ 12
]
- }
+ ],
+ "line-color": "hsl(0, 0%, 27%)",
+ "line-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 0,
+ 14,
+ 1
+ ]
}
},
{
- "id": "bridge-motorway_link-2-case",
+ "id": "bridge-primary-secondary-tertiary",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
@@ -5597,189 +4833,214 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
"==",
- "class",
- "motorway_link"
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
- "==",
- "structure",
- "bridge"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "primary",
+ "secondary",
+ "tertiary"
+ ],
+ true,
+ false
],
[
- ">=",
- "layer",
- 2
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ [
+ "match",
[
- 12,
- 0.75
+ "get",
+ "class"
],
+ "primary",
+ 0.75,
[
- 20,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
+ "secondary",
+ "tertiary"
],
+ 0.1,
+ 0.1
+ ],
+ 18,
+ [
+ "match",
[
- 14,
- 2
+ "get",
+ "class"
],
+ "primary",
+ 32,
[
- 18,
- 18
- ]
+ "secondary",
+ "tertiary"
+ ],
+ 26,
+ 26
]
- },
- "line-opacity": 1
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-trunk-2-case",
+ "id": "bridge-motorway-trunk",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "trunk"
+ [
+ "get",
+ "structure"
+ ],
+ "bridge"
],
[
- "==",
- "structure",
- "bridge"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
],
[
- ">=",
- "layer",
- 2
+ "<=",
+ [
+ "get",
+ "layer"
+ ],
+ 1
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
+ "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 10,
- 1
- ],
- [
- 16,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ],
+ "line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-motorway-2-case",
+ "id": "bridge-rail",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "motorway"
- ],
- [
- "==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
- ">=",
- "layer",
- 2
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "major_rail",
+ "minor_rail"
+ ],
+ true,
+ false
]
],
"layout": {
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 7,
- 0.5
- ],
- [
- 10,
- 1
- ],
- [
- 16,
- 2
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 17%)",
- "line-gap-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 14,
+ 0.5,
+ 20,
+ 1
+ ],
+ "line-color": "hsl(0, 0%, 17%)"
}
},
{
- "id": "bridge-trunk_link-2",
+ "id": "bridge-major-link-2-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
@@ -5787,52 +5048,84 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
"==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
- "==",
- "type",
- "trunk_link"
- ],
- [
">=",
- "layer",
+ [
+ "get",
+ "layer"
+ ],
2
+ ],
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)"
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.75,
+ 20,
+ 2
+ ],
+ "line-color": "hsl(0, 0%, 17%)",
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ]
}
},
{
- "id": "bridge-motorway_link-2",
+ "id": "bridge-motorway-trunk-2-case",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
@@ -5840,75 +5133,126 @@
"source": "composite",
"source-layer": "road",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
"==",
- "class",
- "motorway_link"
- ],
- [
- "==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
">=",
- "layer",
+ [
+ "get",
+ "layer"
+ ],
2
+ ],
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "line-cap": "round",
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 12,
- 0.5
- ],
- [
- 14,
- 2
- ],
- [
- 18,
- 18
- ]
- ]
- },
- "line-color": "hsl(0, 0%, 27%)"
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ 1,
+ 18,
+ 2
+ ],
+ "line-color": "hsl(0, 0%, 17%)",
+ "line-gap-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ]
}
},
{
- "id": "bridge-trunk-2",
+ "id": "bridge-major-link-2",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "trunk"
- ],
- [
- "==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
">=",
- "layer",
+ [
+ "get",
+ "layer"
+ ],
2
+ ],
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway_link",
+ "trunk_link"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -5916,47 +5260,71 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 12,
+ 0.5,
+ 14,
+ 2,
+ 18,
+ 18
+ ],
"line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "bridge-motorway-2",
+ "id": "bridge-motorway-trunk-2",
"type": "line",
"metadata": {
"mapbox:group": "1444855799204.86"
},
"source": "composite",
"source-layer": "road",
- "interactive": true,
+ "minzoom": 13,
"filter": [
"all",
[
"==",
- "class",
- "motorway"
- ],
- [
- "==",
- "structure",
+ [
+ "get",
+ "structure"
+ ],
"bridge"
],
[
">=",
- "layer",
+ [
+ "get",
+ "layer"
+ ],
2
+ ],
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
@@ -5964,75 +5332,106 @@
"line-join": "round"
},
"paint": {
- "line-width": {
- "base": 1.5,
- "stops": [
- [
- 5,
- 0.75
- ],
- [
- 18,
- 32
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "exponential",
+ 1.5
+ ],
+ [
+ "zoom"
+ ],
+ 5,
+ 0.75,
+ 18,
+ 32
+ ],
"line-color": "hsl(0, 0%, 27%)"
}
},
{
- "id": "admin-3-4-boundaries-bg",
+ "id": "admin-1-boundary-bg",
"type": "line",
"metadata": {
"mapbox:group": "1444934295202.7542"
},
"source": "composite",
"source-layer": "admin",
- "interactive": true,
"filter": [
"all",
[
"==",
- "maritime",
- 0
+ [
+ "get",
+ "admin_level"
+ ],
+ 1
],
[
- ">=",
- "admin_level",
- 3
+ "==",
+ [
+ "get",
+ "maritime"
+ ],
+ "false"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "worldview"
+ ],
+ [
+ "all",
+ "US"
+ ],
+ true,
+ false
]
],
"layout": {
"line-join": "bevel"
},
"paint": {
- "line-color": "hsl(0, 0%, 10%)",
- "line-width": {
- "base": 1,
- "stops": [
- [
- 3,
- 3.5
- ],
- [
- 10,
- 8
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 4,
- 0
- ],
- [
- 6,
- 0.75
- ]
- ]
- },
+ "line-blur": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ 0,
+ 8,
+ 3
+ ],
+ "line-width": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 7,
+ 3.75,
+ 12,
+ 5.5
+ ],
+ "line-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 7,
+ 0,
+ 8,
+ 0.75
+ ],
"line-dasharray": [
1,
0
@@ -6041,23 +5440,11 @@
0,
0
],
- "line-blur": {
- "base": 1,
- "stops": [
- [
- 3,
- 0
- ],
- [
- 8,
- 3
- ]
- ]
- }
+ "line-color": "hsl(0, 0%, 10%)"
}
},
{
- "id": "admin-2-boundaries-bg",
+ "id": "admin-0-boundary-bg",
"type": "line",
"metadata": {
"mapbox:group": "1444934295202.7542"
@@ -6065,90 +5452,124 @@
"source": "composite",
"source-layer": "admin",
"minzoom": 1,
- "interactive": true,
"filter": [
"all",
[
"==",
- "admin_level",
- 2
+ [
+ "get",
+ "admin_level"
+ ],
+ 0
],
[
"==",
- "maritime",
- 0
+ [
+ "get",
+ "maritime"
+ ],
+ "false"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "worldview"
+ ],
+ [
+ "all",
+ "US"
+ ],
+ true,
+ false
]
],
- "layout": {
- "line-join": "miter"
- },
+ "layout": {},
"paint": {
- "line-width": {
- "base": 1,
- "stops": [
- [
- 3,
- 3.5
- ],
- [
- 10,
- 10
- ]
- ]
- },
+ "line-width": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ 3.5,
+ 10,
+ 8
+ ],
"line-color": "hsl(0, 0%, 10%)",
- "line-opacity": {
- "base": 1,
- "stops": [
- [
- 3,
- 0
- ],
- [
- 4,
- 0.5
- ]
- ]
- },
+ "line-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ 0,
+ 4,
+ 0.5
+ ],
"line-translate": [
0,
0
],
- "line-blur": {
- "base": 1,
- "stops": [
- [
- 3,
- 0
- ],
- [
- 10,
- 2
- ]
- ]
- }
+ "line-blur": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ 0,
+ 10,
+ 2
+ ]
}
},
{
- "id": "admin-3-4-boundaries",
+ "id": "admin-1-boundary",
"type": "line",
"metadata": {
"mapbox:group": "1444934295202.7542"
},
"source": "composite",
"source-layer": "admin",
- "interactive": true,
"filter": [
"all",
[
"==",
- "maritime",
- 0
+ [
+ "get",
+ "admin_level"
+ ],
+ 1
],
[
- ">=",
- "admin_level",
- 3
+ "==",
+ [
+ "get",
+ "maritime"
+ ],
+ "false"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "worldview"
+ ],
+ [
+ "all",
+ "US"
+ ],
+ true,
+ false
]
],
"layout": {
@@ -6156,70 +5577,72 @@
"line-cap": "round"
},
"paint": {
- "line-dasharray": {
- "base": 1,
- "stops": [
- [
- 6,
- [
- 2,
- 0
- ]
- ],
- [
- 7,
- [
- 2,
- 2,
- 6,
- 2
- ]
- ]
- ]
- },
- "line-width": {
- "base": 1,
- "stops": [
- [
- 7,
- 0.75
- ],
- [
- 12,
- 1.5
- ]
- ]
- },
- "line-opacity": {
- "base": 1,
- "stops": [
+ "line-dasharray": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
2,
0
- ],
- [
- 3,
- 1
]
- ]
- },
- "line-color": {
- "base": 1,
- "stops": [
- [
- 4,
- "hsl(0, 0%, 27%)"
- ],
+ ],
+ 7,
+ [
+ "literal",
[
- 5,
- "hsl(0, 0%, 35%)"
+ 2,
+ 2,
+ 6,
+ 2
]
]
- }
+ ],
+ "line-width": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 7,
+ 0.75,
+ 12,
+ 1.5
+ ],
+ "line-opacity": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 2,
+ 0,
+ 3,
+ 1
+ ],
+ "line-color": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ "hsl(0, 0%, 27%)",
+ 7,
+ "hsl(0, 0%, 35%)"
+ ]
}
},
{
- "id": "admin-2-boundaries",
+ "id": "admin-0-boundary",
"type": "line",
"metadata": {
"mapbox:group": "1444934295202.7542"
@@ -6227,23 +5650,44 @@
"source": "composite",
"source-layer": "admin",
"minzoom": 1,
- "interactive": true,
"filter": [
"all",
[
"==",
- "admin_level",
- 2
+ [
+ "get",
+ "admin_level"
+ ],
+ 0
],
[
"==",
- "disputed",
- 0
+ [
+ "get",
+ "disputed"
+ ],
+ "false"
],
[
"==",
- "maritime",
- 0
+ [
+ "get",
+ "maritime"
+ ],
+ "false"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "worldview"
+ ],
+ [
+ "all",
+ "US"
+ ],
+ true,
+ false
]
],
"layout": {
@@ -6252,23 +5696,23 @@
},
"paint": {
"line-color": "hsl(0, 0%, 43%)",
- "line-width": {
- "base": 1,
- "stops": [
- [
- 3,
- 0.5
- ],
- [
- 10,
- 2
- ]
- ]
- }
+ "line-width": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ 0.5,
+ 10,
+ 2
+ ]
}
},
{
- "id": "admin-2-boundaries-dispute",
+ "id": "admin-0-boundary-disputed",
"type": "line",
"metadata": {
"mapbox:group": "1444934295202.7542"
@@ -6276,23 +5720,44 @@
"source": "composite",
"source-layer": "admin",
"minzoom": 1,
- "interactive": true,
"filter": [
"all",
[
"==",
- "admin_level",
- 2
+ [
+ "get",
+ "disputed"
+ ],
+ "true"
],
[
"==",
- "disputed",
- 1
+ [
+ "get",
+ "admin_level"
+ ],
+ 0
],
[
"==",
- "maritime",
- 0
+ [
+ "get",
+ "maritime"
+ ],
+ "false"
+ ],
+ [
+ "match",
+ [
+ "get",
+ "worldview"
+ ],
+ [
+ "all",
+ "US"
+ ],
+ true,
+ false
]
],
"layout": {
@@ -6304,259 +5769,151 @@
1.5
],
"line-color": "hsl(0, 0%, 14%)",
- "line-width": {
- "base": 1,
- "stops": [
- [
- 3,
- 0.5
- ],
- [
- 10,
- 2
- ]
- ]
- }
- }
- },
- {
- "id": "waterway-label",
- "type": "symbol",
- "source": "composite",
- "source-layer": "waterway_label",
- "minzoom": 12,
- "interactive": true,
- "filter": [
- "in",
- "class",
- "canal",
- "river"
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-font": [
- "DIN Offc Pro Italic",
- "Arial Unicode MS Regular"
- ],
- "symbol-placement": "line",
- "text-max-angle": 30,
- "text-size": {
- "base": 1,
- "stops": [
- [
- 13,
- 12
- ],
- [
- 18,
- 16
- ]
- ]
- }
- },
- "paint": {
- "text-halo-width": 0,
- "text-halo-blur": 0,
- "text-color": "hsl(0, 0%, 32%)"
+ "line-width": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ 0.5,
+ 10,
+ 2
+ ]
}
},
{
- "id": "poi-scalerank3",
+ "id": "road-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444933372896.5967"
- },
"source": "composite",
- "source-layer": "poi_label",
- "interactive": true,
+ "source-layer": "road",
+ "minzoom": 10,
"filter": [
- "all",
+ "step",
[
- "!in",
- "maki",
- "campsite",
- "cemetery",
- "dog-park",
- "garden",
- "golf",
- "park",
- "picnic-site",
- "playground",
- "zoo"
+ "zoom"
],
[
- "==",
- "scalerank",
- 3
- ]
- ],
- "layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
- [
- 16,
- 11
- ],
- [
- 20,
- 13
- ]
- ]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
- "text-font": [
- "DIN Offc Pro Medium",
- "Arial Unicode MS Regular"
- ],
- "text-padding": 1,
- "text-offset": [
- 0,
- 0
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk",
+ "primary",
+ "secondary",
+ "tertiary"
+ ],
+ true,
+ false
],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 8
- },
- "paint": {
- "text-color": "hsl(0, 0%, 60%)",
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-halo-blur": 0
- }
- },
- {
- "id": "poi-parks-scalerank3",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444933372896.5967"
- },
- "source": "composite",
- "source-layer": "poi_label",
- "interactive": true,
- "filter": [
- "all",
+ 12,
[
- "==",
- "scalerank",
- 3
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk",
+ "primary",
+ "secondary",
+ "tertiary",
+ "pedestrian",
+ "street",
+ "street_limited"
+ ],
+ true,
+ false
],
+ 15,
[
- "in",
- "maki",
- "campsite",
- "cemetery",
- "dog-park",
- "garden",
- "golf",
- "park",
- "picnic-site",
- "playground",
- "zoo"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "ferry",
+ "golf",
+ "path"
+ ],
+ false,
+ true
]
],
"layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 10,
+ [
+ "match",
[
- 16,
- 11
+ "get",
+ "class"
],
[
- 20,
- 12
- ]
- ]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
- "text-font": [
- "DIN Offc Pro Medium",
- "Arial Unicode MS Regular"
- ],
- "text-padding": 2,
- "text-offset": [
- 0,
- 0
- ],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 8
- },
- "paint": {
- "text-halo-blur": 0,
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-color": {
- "base": 1,
- "stops": [
+ "motorway",
+ "trunk",
+ "primary",
+ "secondary",
+ "tertiary"
+ ],
+ 10,
[
- 7,
- "hsl(0, 0%, 47%)"
+ "motorway_link",
+ "trunk_link",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "pedestrian",
+ "street",
+ "street_limited"
],
+ 9,
+ 6.5
+ ],
+ 18,
+ [
+ "match",
[
- 9,
- "hsl(0, 0%, 73%)"
- ]
- ]
- }
- }
- },
- {
- "id": "road-label-small",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444933721429.3076"
- },
- "source": "composite",
- "source-layer": "road_label",
- "minzoom": 15,
- "interactive": true,
- "filter": [
- "all",
- [
- "!in",
- "class",
- "",
- "ferry",
- "link",
- "motorway",
- "path",
- "pedestrian",
- "primary",
- "secondary",
- "street",
- "street_limited",
- "tertiary",
- "track",
- "trunk"
- ],
- [
- "==",
- "$type",
- "LineString"
- ]
- ],
- "layout": {
- "text-size": {
- "base": 1,
- "stops": [
+ "get",
+ "class"
+ ],
[
- 15,
- 10
+ "motorway",
+ "trunk",
+ "primary",
+ "secondary",
+ "tertiary"
],
+ 16,
[
- 20,
- 13
- ]
+ "motorway_link",
+ "trunk_link",
+ "primary_link",
+ "secondary_link",
+ "tertiary_link",
+ "pedestrian",
+ "street",
+ "street_limited"
+ ],
+ 14,
+ 13
]
- },
+ ],
"text-max-angle": 30,
- "symbol-spacing": 500,
"text-font": [
"DIN Offc Pro Regular",
"Arial Unicode MS Regular"
@@ -6564,459 +5921,658 @@
"symbol-placement": "line",
"text-padding": 1,
"text-rotation-alignment": "map",
- "text-field": "{name_en}",
+ "text-pitch-alignment": "viewport",
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
+ ]
+ ],
"text-letter-spacing": 0.01
},
"paint": {
"text-color": "hsl(0, 0%, 78%)",
- "text-halo-color": "#212121",
- "text-halo-width": 1.25,
- "text-halo-blur": 0
+ "text-halo-color": [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "motorway",
+ "trunk"
+ ],
+ "hsla(0, 0%, 13%, 0.75)",
+ "hsl(0, 0%, 13%)"
+ ],
+ "text-halo-width": 1,
+ "text-halo-blur": 1
}
},
{
- "id": "road-label-medium",
+ "id": "waterway-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444933721429.3076"
- },
"source": "composite",
- "source-layer": "road_label",
+ "source-layer": "natural_label",
"minzoom": 13,
- "interactive": true,
"filter": [
"all",
[
- "==",
- "$type",
- "LineString"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "canal",
+ "river",
+ "stream"
+ ],
+ true,
+ false
],
[
- "in",
- "class",
- "",
- "link",
- "pedestrian",
- "street",
- "street_limited"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
]
],
"layout": {
- "text-size": {
- "base": 1,
- "stops": [
- [
- 11,
- 10
- ],
- [
- 20,
- 14
- ]
- ]
- },
- "text-max-angle": 30,
- "symbol-spacing": 500,
"text-font": [
- "DIN Offc Pro Regular",
+ "DIN Offc Pro Italic",
"Arial Unicode MS Regular"
],
- "symbol-placement": "line",
- "text-padding": 1,
- "text-rotation-alignment": "map",
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01
- },
- "paint": {
- "text-color": "hsl(0, 0%, 78%)",
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-halo-blur": 0
- }
- },
- {
- "id": "road-label-large",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444933721429.3076"
- },
- "source": "composite",
- "source-layer": "road_label",
- "minzoom": 12,
- "interactive": true,
- "filter": [
- "in",
- "class",
- "motorway",
- "primary",
- "secondary",
- "tertiary",
- "trunk"
- ],
- "layout": {
- "text-size": {
- "base": 1,
- "stops": [
- [
- 9,
- 10
- ],
- [
- 20,
- 16
- ]
- ]
- },
"text-max-angle": 30,
- "symbol-spacing": 400,
- "text-font": [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
+ "symbol-spacing": [
+ "interpolate",
+ [
+ "linear",
+ 1
+ ],
+ [
+ "zoom"
+ ],
+ 15,
+ 250,
+ 17,
+ 400
+ ],
+ "text-size": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 13,
+ 12,
+ 18,
+ 16
],
"symbol-placement": "line",
- "text-padding": 1,
- "text-rotation-alignment": "map",
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01
+ "text-pitch-alignment": "viewport",
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
+ ]
+ ]
},
"paint": {
- "text-color": "hsl(0, 0%, 78%)",
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-halo-blur": 0
+ "text-color": "hsl(0, 0%, 45%)"
}
},
{
- "id": "poi-scalerank2",
+ "id": "natural-line-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444933358918.2366"
- },
"source": "composite",
- "source-layer": "poi_label",
- "interactive": true,
+ "source-layer": "natural_label",
+ "minzoom": 4,
"filter": [
"all",
[
- "!in",
- "maki",
- "campsite",
- "cemetery",
- "dog-park",
- "garden",
- "golf",
- "park",
- "picnic-site",
- "playground",
- "zoo"
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "glacier",
+ "landform"
+ ],
+ true,
+ false
],
[
"==",
- "scalerank",
- 2
+ [
+ "geometry-type"
+ ],
+ "LineString"
+ ],
+ [
+ "<=",
+ [
+ "get",
+ "filterrank"
+ ],
+ 1
]
],
"layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "step",
[
- 14,
- 11
+ "get",
+ "sizerank"
],
+ 18,
+ 5,
+ 12
+ ],
+ 17,
+ [
+ "step",
[
- 20,
- 12
- ]
+ "get",
+ "sizerank"
+ ],
+ 18,
+ 13,
+ 12
+ ]
+ ],
+ "text-max-angle": 30,
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
+ ],
"text-font": [
"DIN Offc Pro Medium",
"Arial Unicode MS Regular"
],
- "text-padding": 2,
- "text-offset": [
- 0,
- 0.65
- ],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 8
+ "symbol-placement": "line-center",
+ "text-pitch-alignment": "viewport"
},
"paint": {
- "text-color": "hsl(0, 0%, 60%)",
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-halo-blur": 0
+ "text-halo-width": 0.5,
+ "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
+ "text-halo-blur": 0.5,
+ "text-color": "hsl(0, 0%, 85%)"
}
},
{
- "id": "poi-parks-scalerank2",
+ "id": "natural-point-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444933358918.2366"
- },
"source": "composite",
- "source-layer": "poi_label",
- "interactive": true,
+ "source-layer": "natural_label",
+ "minzoom": 4,
"filter": [
"all",
[
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "dock",
+ "glacier",
+ "landform",
+ "water_feature",
+ "wetland"
+ ],
+ true,
+ false
+ ],
+ [
"==",
- "scalerank",
- 2
+ [
+ "geometry-type"
+ ],
+ "Point"
],
[
- "in",
- "maki",
- "campsite",
- "cemetery",
- "dog-park",
- "garden",
- "golf",
- "park",
- "picnic-site",
- "playground",
- "zoo"
+ "<=",
+ [
+ "get",
+ "filterrank"
+ ],
+ 1
]
],
"layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "step",
[
- 14,
- 11
+ "get",
+ "sizerank"
],
+ 18,
+ 5,
+ 12
+ ],
+ 17,
+ [
+ "step",
[
- 20,
- 12
- ]
+ "get",
+ "sizerank"
+ ],
+ 18,
+ 13,
+ 12
]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
+ ],
+ "icon-image": "",
"text-font": [
"DIN Offc Pro Medium",
"Arial Unicode MS Regular"
],
- "text-padding": 2,
"text-offset": [
- 0,
- 0
+ "literal",
+ [
+ 0,
+ 0
+ ]
],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 8
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
+ ]
+ ]
},
"paint": {
- "text-color": {
- "base": 1,
- "stops": [
+ "icon-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "step",
[
- 7,
- "hsl(0, 0%, 47%)"
+ "get",
+ "sizerank"
],
+ 0,
+ 5,
+ 1
+ ],
+ 17,
+ [
+ "step",
[
- 9,
- "hsl(0, 0%, 73%)"
- ]
+ "get",
+ "sizerank"
+ ],
+ 0,
+ 13,
+ 1
]
- },
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-halo-blur": 0
+ ],
+ "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
+ "text-halo-width": 0.5,
+ "text-halo-blur": 0.5,
+ "text-color": "hsl(0, 0%, 85%)"
}
},
{
- "id": "water-label",
+ "id": "water-line-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444933808272.805"
- },
"source": "composite",
- "source-layer": "water_label",
- "minzoom": 5,
- "interactive": true,
+ "source-layer": "natural_label",
"filter": [
- ">",
- "area",
- 10000
+ "all",
+ [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "bay",
+ "ocean",
+ "reservoir",
+ "sea",
+ "water"
+ ],
+ true,
+ false
+ ],
+ [
+ "==",
+ [
+ "geometry-type"
+ ],
+ "LineString"
+ ]
],
"layout": {
- "text-field": "{name_en}",
+ "text-size": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 7,
+ [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ 24,
+ 6,
+ 18,
+ 12,
+ 12
+ ],
+ 10,
+ [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ 18,
+ 9,
+ 12
+ ],
+ 18,
+ [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ 18,
+ 9,
+ 16
+ ]
+ ],
+ "text-max-angle": 30,
+ "text-letter-spacing": [
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ "ocean",
+ 0.25,
+ [
+ "sea",
+ "bay"
+ ],
+ 0.15,
+ 0
+ ],
"text-font": [
"DIN Offc Pro Italic",
"Arial Unicode MS Regular"
],
- "text-max-width": 7,
- "text-size": {
- "base": 1,
- "stops": [
- [
- 13,
- 13
- ],
- [
- 18,
- 18
- ]
+ "symbol-placement": "line-center",
+ "text-pitch-alignment": "viewport",
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
]
- }
+ ]
},
"paint": {
- "text-color": "hsl(0, 0%, 32%)",
- "text-halo-blur": 0
+ "text-color": "hsl(0, 0%, 45%)"
}
},
{
- "id": "poi-parks-scalerank1",
+ "id": "water-point-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444933322393.2852"
- },
"source": "composite",
- "source-layer": "poi_label",
- "interactive": true,
+ "source-layer": "natural_label",
"filter": [
"all",
[
- "<=",
- "scalerank",
- 1
+ "match",
+ [
+ "get",
+ "class"
+ ],
+ [
+ "bay",
+ "ocean",
+ "reservoir",
+ "sea",
+ "water"
+ ],
+ true,
+ false
],
[
- "in",
- "maki",
- "campsite",
- "cemetery",
- "dog-park",
- "garden",
- "golf",
- "park",
- "picnic-site",
- "playground",
- "zoo"
+ "==",
+ [
+ "geometry-type"
+ ],
+ "Point"
]
],
"layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-line-height": 1.3,
+ "text-size": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 7,
+ [
+ "step",
[
- 10,
- 11
+ "get",
+ "sizerank"
],
+ 24,
+ 6,
+ 18,
+ 12,
+ 12
+ ],
+ 10,
+ [
+ "step",
[
- 18,
- 12
- ]
+ "get",
+ "sizerank"
+ ],
+ 18,
+ 9,
+ 12
]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
+ ],
"text-font": [
- "DIN Offc Pro Medium",
+ "DIN Offc Pro Italic",
"Arial Unicode MS Regular"
],
- "text-padding": 2,
- "text-offset": [
- 0,
- 0
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
+ ]
],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 8
+ "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": {
- "base": 1,
- "stops": [
- [
- 7,
- "hsl(0, 0%, 47%)"
- ],
- [
- 9,
- "hsl(0, 0%, 73%)"
- ]
- ]
- },
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-halo-blur": 0
+ "text-color": "hsl(0, 0%, 45%)"
}
},
{
- "id": "poi-scalerank1",
+ "id": "poi-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444933322393.2852"
- },
"source": "composite",
"source-layer": "poi_label",
- "interactive": true,
+ "minzoom": 6,
"filter": [
- "all",
+ "<=",
[
- "!in",
- "maki",
- "campsite",
- "cemetery",
- "dog-park",
- "garden",
- "golf",
- "park",
- "picnic-site",
- "playground",
- "zoo"
+ "get",
+ "filterrank"
],
- [
- "<=",
- "scalerank",
- 1
- ]
+ 1
],
"layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "step",
[
- 10,
- 11
+ "get",
+ "sizerank"
],
+ 18,
+ 5,
+ 12
+ ],
+ 17,
+ [
+ "step",
[
- 18,
- 12
- ]
+ "get",
+ "sizerank"
+ ],
+ 18,
+ 13,
+ 12
]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
+ ],
"text-font": [
"DIN Offc Pro Medium",
"Arial Unicode MS Regular"
],
- "text-padding": 2,
- "text-offset": [
- 0,
- 0
- ],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 8
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
+ ]
+ ]
},
"paint": {
- "text-color": "hsl(0, 0%, 60%)",
- "text-halo-color": "#212121",
- "text-halo-width": 1,
- "text-halo-blur": 0
+ "text-halo-color": "hsl(0, 0%, 13%)",
+ "text-halo-width": 0.5,
+ "text-halo-blur": 0.5,
+ "text-color": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ "hsl(0, 0%, 50%)",
+ 5,
+ "hsl(0, 0%, 60%)"
+ ],
+ 17,
+ [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ "hsl(0, 0%, 50%)",
+ 13,
+ "hsl(0, 0%, 60%)"
+ ]
+ ]
}
},
{
@@ -7024,1699 +6580,1081 @@
"type": "symbol",
"source": "composite",
"source-layer": "airport_label",
- "minzoom": 10,
- "interactive": true,
- "filter": [
- "<=",
- "scalerank",
- 2
- ],
+ "minzoom": 8,
"layout": {
"text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ 18,
+ 9,
+ 12
+ ],
+ "icon-image": [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ [
+ "concat",
[
- 10,
- 12
+ "get",
+ "maki"
],
+ "-15"
+ ],
+ 9,
+ [
+ "concat",
[
- 18,
- 18
- ]
- ]
- },
- "icon-image": {
- "stops": [
- [
- 12,
- "{maki}-11"
+ "get",
+ "maki"
],
- [
- 13,
- "{maki}-15"
- ]
+ "-11"
]
- },
- "symbol-spacing": 250,
+ ],
"text-font": [
"DIN Offc Pro Medium",
"Arial Unicode MS Regular"
],
- "text-padding": 2,
"text-offset": [
0,
0.75
],
+ "text-rotation-alignment": "viewport",
"text-anchor": "top",
- "text-field": {
- "stops": [
+ "text-field": [
+ "step",
+ [
+ "get",
+ "sizerank"
+ ],
+ [
+ "coalesce",
[
- 11,
- "{ref}"
+ "get",
+ "name_en"
],
[
- 14,
- "{name_en}"
+ "get",
+ "name"
]
+ ],
+ 15,
+ [
+ "get",
+ "ref"
]
- },
+ ],
"text-letter-spacing": 0.01,
"text-max-width": 9
},
"paint": {
"text-color": "hsl(0, 0%, 85%)",
"text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 0.5,
- "text-halo-blur": 0
+ "text-halo-width": 1
}
},
{
- "id": "place-islets-archipelago-aboriginal",
+ "id": "settlement-subdivision-label",
"type": "symbol",
"source": "composite",
"source-layer": "place_label",
- "maxzoom": 16,
- "interactive": true,
+ "minzoom": 10,
+ "maxzoom": 15,
"filter": [
- "in",
- "type",
- "aboriginal_lands",
- "archipelago",
- "islet"
+ "all",
+ [
+ "==",
+ [
+ "get",
+ "class"
+ ],
+ "settlement_subdivision"
+ ],
+ [
+ "<=",
+ [
+ "get",
+ "filterrank"
+ ],
+ 4
+ ]
],
"layout": {
- "text-line-height": 1.2,
- "text-size": {
- "base": 1,
- "stops": [
- [
- 10,
- 11
- ],
- [
- 18,
- 16
- ]
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
- "text-font": [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
- ],
- "text-padding": 2,
- "text-offset": [
- 0,
- 0
],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 8
- },
- "paint": {
- "text-color": "hsl(0, 0%, 85%)",
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-neighbourhood",
- "type": "symbol",
- "source": "composite",
- "source-layer": "place_label",
- "minzoom": 12,
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "type",
- "neighbourhood"
- ],
- "layout": {
- "text-field": "{name_en}",
"text-transform": "uppercase",
- "text-letter-spacing": 0.1,
- "text-max-width": 7,
"text-font": [
"DIN Offc Pro Regular",
"Arial Unicode MS Regular"
],
- "text-padding": 3,
- "text-size": {
- "base": 1,
- "stops": [
- [
- 12,
- 11
- ],
- [
- 16,
- 16
- ]
- ]
- }
- },
- "paint": {
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "text-color": "hsl(0, 0%, 70%)",
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-suburb",
- "type": "symbol",
- "source": "composite",
- "source-layer": "place_label",
- "minzoom": 11,
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "type",
- "suburb"
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-transform": "uppercase",
- "text-font": [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
+ "text-letter-spacing": [
+ "match",
+ [
+ "get",
+ "type"
+ ],
+ "suburb",
+ 0.15,
+ [
+ "quarter",
+ "neighborhood"
+ ],
+ 0.1,
+ 0.1
],
- "text-letter-spacing": 0.15,
"text-max-width": 7,
"text-padding": 3,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "interpolate",
+ [
+ "cubic-bezier",
+ 0.5,
+ 0,
+ 1,
+ 1
+ ],
+ [
+ "zoom"
+ ],
+ 11,
+ [
+ "match",
[
- 11,
- 11
+ "get",
+ "type"
],
+ "suburb",
+ 11,
[
- 15,
- 18
- ]
- ]
- }
- },
- "paint": {
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "text-color": "hsl(0, 0%, 70%)",
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-hamlet",
- "type": "symbol",
- "source": "composite",
- "source-layer": "place_label",
- "minzoom": 10,
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "type",
- "hamlet"
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-font": [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
- ],
- "text-size": {
- "base": 1,
- "stops": [
+ "quarter",
+ "neighborhood"
+ ],
+ 10.5,
+ 10.5
+ ],
+ 15,
+ [
+ "match",
[
- 12,
- 11.5
+ "get",
+ "type"
],
+ "suburb",
+ 17,
[
- 15,
- 16
- ]
+ "quarter",
+ "neighborhood"
+ ],
+ 16,
+ 16
]
- }
+ ]
},
"paint": {
"text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1.25,
- "text-color": "hsl(0, 0%, 85%)",
- "text-halo-blur": 0
+ "text-halo-width": 1,
+ "text-color": "hsl(0, 0%, 70%)",
+ "text-halo-blur": 0.5
}
},
{
- "id": "place-village",
+ "id": "settlement-label",
"type": "symbol",
"source": "composite",
"source-layer": "place_label",
- "minzoom": 11,
"maxzoom": 15,
- "interactive": true,
"filter": [
- "==",
- "type",
- "village"
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-font": [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
+ "all",
+ [
+ "<=",
+ [
+ "get",
+ "filterrank"
+ ],
+ 3
],
- "text-max-width": 7,
- "text-size": {
- "base": 1,
- "stops": [
+ [
+ "==",
+ [
+ "get",
+ "class"
+ ],
+ "settlement"
+ ],
+ [
+ "step",
+ [
+ "zoom"
+ ],
+ true,
+ 13,
+ [
+ ">=",
[
- 10,
- 11.5
+ "get",
+ "symbolrank"
],
+ 11
+ ],
+ 14,
+ [
+ ">=",
[
- 16,
- 18
- ]
- ]
- }
- },
- "paint": {
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1.25,
- "text-color": {
- "base": 1,
- "stops": [
- [
- 10,
- "hsl(0, 0%, 75%)"
+ "get",
+ "symbolrank"
],
- [
- 11,
- "hsl(0, 0%, 85%)"
- ]
+ 13
]
- },
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-town",
- "type": "symbol",
- "source": "composite",
- "source-layer": "place_label",
- "minzoom": 7,
- "maxzoom": 15,
- "interactive": true,
- "filter": [
- "==",
- "type",
- "town"
+ ]
],
"layout": {
- "text-size": {
- "base": 1,
- "stops": [
+ "text-line-height": 1.1,
+ "text-size": [
+ "interpolate",
+ [
+ "cubic-bezier",
+ 0.2,
+ 0,
+ 0.9,
+ 1
+ ],
+ [
+ "zoom"
+ ],
+ 3,
+ [
+ "step",
+ [
+ "get",
+ "symbolrank"
+ ],
+ 12,
+ 9,
+ 11,
+ 10,
+ 10.5,
+ 12,
+ 9.5,
+ 14,
+ 8.5,
+ 16,
+ 6.5,
+ 17,
+ 4
+ ],
+ 15,
+ [
+ "step",
+ [
+ "get",
+ "symbolrank"
+ ],
+ 28,
+ 9,
+ 26,
+ 10,
+ 23,
+ 11,
+ 21,
+ 12,
+ 20,
+ 13,
+ 19,
+ 15,
+ 17
+ ]
+ ],
+ "icon-image": [
+ "case",
+ [
+ "==",
[
- 7,
- 11.5
+ "get",
+ "capital"
],
+ 2
+ ],
+ "border-dot-13",
+ [
+ "step",
[
- 15,
- 20
- ]
- ]
- },
- "text-font": {
- "base": 1,
- "stops": [
- [
- 11,
- [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
- ]
+ "get",
+ "symbolrank"
],
- [
- 12,
- [
- "DIN Offc Pro Medium",
- "Arial Unicode MS Regular"
- ]
- ]
+ "dot-11",
+ 9,
+ "dot-10",
+ 11,
+ "dot-9"
]
- },
- "text-padding": 2,
- "text-offset": [
- 0,
- 0
],
- "text-field": "{name_en}",
- "text-max-width": 7
- },
- "paint": {
- "text-color": {
- "base": 1,
- "stops": [
- [
- 10,
- "hsl(0, 0%, 75%)"
- ],
- [
- 11,
- "hsl(0, 0%, 85%)"
- ]
- ]
- },
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1.25,
- "icon-opacity": {
- "base": 1,
- "stops": [
- [
- 7.99,
- 1
- ],
- [
- 8,
- 0
- ]
- ]
- },
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-islands",
- "type": "symbol",
- "source": "composite",
- "source-layer": "place_label",
- "maxzoom": 16,
- "interactive": true,
- "filter": [
- "==",
- "type",
- "island"
- ],
- "layout": {
- "text-line-height": 1.2,
- "text-size": {
- "base": 1,
- "stops": [
- [
- 10,
- 11
- ],
- [
- 18,
- 16
- ]
- ]
- },
- "text-max-angle": 38,
- "symbol-spacing": 250,
"text-font": [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
- ],
- "text-padding": 2,
- "text-offset": [
- 0,
- 0
- ],
- "text-field": "{name_en}",
- "text-letter-spacing": 0.01,
- "text-max-width": 7
- },
- "paint": {
- "text-color": "hsl(0, 0%, 85%)",
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-city-sm",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444862510685.128"
- },
- "source": "composite",
- "source-layer": "place_label",
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "all",
- [
- "!in",
- "scalerank",
- 0,
- 1,
- 2,
- 3,
- 4,
- 5
- ],
- [
- "==",
- "type",
- "city"
- ]
- ],
- "layout": {
- "text-size": {
- "base": 1,
- "stops": [
- [
- 6,
- 12
- ],
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "literal",
[
- 14,
- 22
+ "DIN Offc Pro Regular",
+ "Arial Unicode MS Regular"
]
- ]
- },
- "text-font": {
- "base": 1,
- "stops": [
+ ],
+ 8,
+ [
+ "step",
[
- 7,
- [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
- ]
+ "get",
+ "symbolrank"
],
[
- 8,
+ "literal",
[
"DIN Offc Pro Medium",
"Arial Unicode MS Regular"
]
- ]
- ]
- },
- "text-offset": [
- 0,
- 0
- ],
- "text-field": "{name_en}",
- "text-max-width": 7
- },
- "paint": {
- "text-color": "hsl(0, 0%, 90%)",
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1.25,
- "icon-opacity": {
- "base": 1,
- "stops": [
- [
- 7.99,
- 1
],
+ 11,
[
- 8,
- 0
- ]
- ]
- },
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-city-md-s",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444862510685.128"
- },
- "source": "composite",
- "source-layer": "place_label",
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "type",
- "city"
- ],
- [
- "in",
- "ldir",
- "E",
- "S",
- "SE",
- "SW"
- ],
- [
- "in",
- "scalerank",
- 3,
- 4,
- 5
- ]
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-size": {
- "base": 0.9,
- "stops": [
- [
- 5,
- 12
- ],
- [
- 12,
- 22
- ]
- ]
- },
- "text-anchor": "top",
- "text-offset": {
- "base": 1,
- "stops": [
- [
- 7.99,
- [
- 0,
- 0.1
- ]
- ],
- [
- 8,
- [
- 0,
- 0
- ]
- ]
- ]
- },
- "text-font": {
- "base": 1,
- "stops": [
- [
- 7,
+ "literal",
[
"DIN Offc Pro Regular",
"Arial Unicode MS Regular"
]
+ ]
+ ],
+ 10,
+ [
+ "step",
+ [
+ "get",
+ "symbolrank"
],
[
- 8,
+ "literal",
[
"DIN Offc Pro Medium",
"Arial Unicode MS Regular"
]
- ]
- ]
- },
- "icon-image": "dot-10"
- },
- "paint": {
- "text-halo-width": 1,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-color": "hsl(0, 0%, 90%)",
- "text-halo-blur": 0,
- "icon-opacity": {
- "base": 1,
- "stops": [
- [
- 7.99,
- 1
],
+ 12,
[
- 8,
- 0
- ]
- ]
- }
- }
- },
- {
- "id": "place-city-md-n",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444862510685.128"
- },
- "source": "composite",
- "source-layer": "place_label",
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "type",
- "city"
- ],
- [
- "in",
- "ldir",
- "N",
- "NE",
- "NW",
- "W"
- ],
- [
- "in",
- "scalerank",
- 3,
- 4,
- 5
- ]
- ],
- "layout": {
- "text-size": {
- "base": 0.9,
- "stops": [
- [
- 5,
- 12
- ],
- [
- 12,
- 22
- ]
- ]
- },
- "text-font": {
- "base": 1,
- "stops": [
- [
- 7,
+ "literal",
[
"DIN Offc Pro Regular",
"Arial Unicode MS Regular"
]
+ ]
+ ],
+ 11,
+ [
+ "step",
+ [
+ "get",
+ "symbolrank"
],
[
- 8,
+ "literal",
[
"DIN Offc Pro Medium",
"Arial Unicode MS Regular"
]
- ]
- ]
- },
- "text-offset": {
- "base": 1,
- "stops": [
- [
- 7.99,
- [
- 0,
- -0.25
- ]
],
+ 13,
[
- 8,
+ "literal",
[
- 0,
- 0
+ "DIN Offc Pro Regular",
+ "Arial Unicode MS Regular"
]
]
- ]
- },
- "text-anchor": "bottom",
- "text-field": "{name_en}",
- "text-max-width": 7,
- "icon-image": "dot-10"
- },
- "paint": {
- "text-color": "hsl(0, 0%, 90%)",
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "icon-opacity": {
- "base": 1,
- "stops": [
+ ],
+ 12,
+ [
+ "step",
[
- 7.99,
- 1
+ "get",
+ "symbolrank"
],
[
- 8,
- 0
- ]
- ]
- },
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-city-lg-s",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444862510685.128"
- },
- "source": "composite",
- "source-layer": "place_label",
- "minzoom": 1,
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "all",
- [
- "<=",
- "scalerank",
- 2
- ],
- [
- "==",
- "type",
- "city"
- ],
- [
- "in",
- "ldir",
- "E",
- "S",
- "SE",
- "SW"
- ]
- ],
- "layout": {
- "icon-image": "dot-11",
- "text-font": {
- "base": 1,
- "stops": [
- [
- 7,
+ "literal",
[
- "DIN Offc Pro Regular",
+ "DIN Offc Pro Medium",
"Arial Unicode MS Regular"
]
],
+ 15,
[
- 8,
+ "literal",
[
- "DIN Offc Pro Medium",
+ "DIN Offc Pro Regular",
"Arial Unicode MS Regular"
]
]
- ]
- },
- "text-offset": {
- "base": 1,
- "stops": [
- [
- 7.99,
- [
- 0,
- 0.15
- ]
- ],
+ ],
+ 13,
+ [
+ "literal",
[
- 8,
- [
- 0,
- 0
- ]
+ "DIN Offc Pro Medium",
+ "Arial Unicode MS Regular"
]
]
- },
- "text-anchor": {
- "base": 1,
- "stops": [
+ ],
+ "text-justify": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 7,
- "top"
+ "get",
+ "text_anchor"
],
[
- 8,
- "center"
- ]
- ]
- },
- "text-field": "{name_en}",
- "text-max-width": 7,
- "text-size": {
- "base": 0.9,
- "stops": [
- [
- 4,
- 12
+ "bottom",
+ "top"
],
+ "center",
[
- 10,
- 22
- ]
- ]
- }
- },
- "paint": {
- "text-color": {
- "base": 1,
- "stops": [
- [
- 7,
- "hsl(0, 0%, 95%)"
+ "left",
+ "bottom-left",
+ "top-left"
],
+ "left",
[
- 9,
- "hsl(0, 0%, 90%)"
- ]
- ]
- },
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "icon-opacity": {
- "base": 1,
- "stops": [
- [
- 7.99,
- 1
+ "right",
+ "bottom-right",
+ "top-right"
],
- [
- 8,
- 0
- ]
- ]
- },
- "text-halo-blur": 0
- }
- },
- {
- "id": "place-city-lg-n",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444862510685.128"
- },
- "source": "composite",
- "source-layer": "place_label",
- "minzoom": 1,
- "maxzoom": 14,
- "interactive": true,
- "filter": [
- "all",
- [
- "<=",
- "scalerank",
- 2
- ],
- [
- "==",
- "type",
- "city"
+ "right",
+ "center"
+ ],
+ 8,
+ "center"
],
- [
- "in",
- "ldir",
- "N",
- "NE",
- "NW",
- "W"
- ]
- ],
- "layout": {
- "icon-image": "dot-11",
- "text-font": {
- "base": 1,
- "stops": [
+ "text-offset": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 7,
- [
- "DIN Offc Pro Regular",
- "Arial Unicode MS Regular"
- ]
+ "get",
+ "capital"
],
+ 2,
[
- 8,
+ "match",
[
- "DIN Offc Pro Medium",
- "Arial Unicode MS Regular"
- ]
- ]
- ]
- },
- "text-offset": {
- "base": 1,
- "stops": [
- [
- 7.99,
+ "get",
+ "text_anchor"
+ ],
+ "bottom",
[
- 0,
- -0.25
+ "literal",
+ [
+ 0,
+ -0.3
+ ]
+ ],
+ "bottom-left",
+ [
+ "literal",
+ [
+ 0.3,
+ -0.1
+ ]
+ ],
+ "left",
+ [
+ "literal",
+ [
+ 0.45,
+ 0.1
+ ]
+ ],
+ "top-left",
+ [
+ "literal",
+ [
+ 0.3,
+ 0.1
+ ]
+ ],
+ "top",
+ [
+ "literal",
+ [
+ 0,
+ 0.3
+ ]
+ ],
+ "top-right",
+ [
+ "literal",
+ [
+ -0.3,
+ 0.1
+ ]
+ ],
+ "right",
+ [
+ "literal",
+ [
+ -0.45,
+ 0
+ ]
+ ],
+ "bottom-right",
+ [
+ "literal",
+ [
+ -0.3,
+ -0.1
+ ]
+ ],
+ [
+ "literal",
+ [
+ 0,
+ -0.3
+ ]
]
],
[
- 8,
+ "match",
[
- 0,
- 0
+ "get",
+ "text_anchor"
+ ],
+ "bottom",
+ [
+ "literal",
+ [
+ 0,
+ -0.25
+ ]
+ ],
+ "bottom-left",
+ [
+ "literal",
+ [
+ 0.2,
+ -0.05
+ ]
+ ],
+ "left",
+ [
+ "literal",
+ [
+ 0.4,
+ 0.05
+ ]
+ ],
+ "top-left",
+ [
+ "literal",
+ [
+ 0.2,
+ 0.05
+ ]
+ ],
+ "top",
+ [
+ "literal",
+ [
+ 0,
+ 0.25
+ ]
+ ],
+ "top-right",
+ [
+ "literal",
+ [
+ -0.2,
+ 0.05
+ ]
+ ],
+ "right",
+ [
+ "literal",
+ [
+ -0.4,
+ 0.05
+ ]
+ ],
+ "bottom-right",
+ [
+ "literal",
+ [
+ -0.2,
+ -0.05
+ ]
+ ],
+ [
+ "literal",
+ [
+ 0,
+ -0.25
+ ]
]
]
- ]
- },
- "text-anchor": {
- "base": 1,
- "stops": [
- [
- 7,
- "bottom"
- ],
+ ],
+ 8,
+ [
+ "literal",
[
- 8,
- "center"
+ 0,
+ 0
]
]
- },
- "text-field": "{name_en}",
- "text-max-width": 7,
- "text-size": {
- "base": 0.9,
- "stops": [
- [
- 4,
- 12
- ],
- [
- 10,
- 22
- ]
+ ],
+ "text-anchor": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "get",
+ "text_anchor"
+ ],
+ 8,
+ "center"
+ ],
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
]
- }
+ ],
+ "text-max-width": 7
},
"paint": {
- "text-color": {
- "base": 1,
- "stops": [
- [
- 7,
- "hsl(0, 0%, 95%)"
- ],
- [
- 9,
- "hsl(0, 0%, 90%)"
- ]
- ]
- },
- "text-opacity": 1,
+ "text-color": [
+ "step",
+ [
+ "get",
+ "symbolrank"
+ ],
+ "hsl(0, 0%, 90%)",
+ 11,
+ "hsl(0, 0%, 85%)",
+ 16,
+ "hsl(0, 0%, 70%)"
+ ],
"text-halo-color": "hsla(0, 0%, 10%, 0.75)",
"text-halo-width": 1,
- "icon-opacity": {
- "base": 1,
- "stops": [
- [
- 7.99,
- 1
- ],
- [
- 8,
- 0
- ]
- ]
- },
- "text-halo-blur": 0
+ "icon-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ 1,
+ 8,
+ 0
+ ],
+ "text-halo-blur": 1
}
},
{
- "id": "marine-label-sm-ln",
+ "id": "state-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444856087950.3635"
- },
"source": "composite",
- "source-layer": "marine_label",
+ "source-layer": "place_label",
"minzoom": 3,
- "maxzoom": 10,
- "interactive": true,
+ "maxzoom": 9,
"filter": [
- "all",
+ "==",
[
- "==",
- "$type",
- "LineString"
+ "get",
+ "class"
],
- [
- ">=",
- "labelrank",
- 4
- ]
+ "state"
],
"layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "interpolate",
+ [
+ "cubic-bezier",
+ 0.85,
+ 0.7,
+ 0.65,
+ 1
+ ],
+ [
+ "zoom"
+ ],
+ 4,
+ [
+ "step",
[
- 3,
- 12
+ "get",
+ "symbolrank"
],
+ 10,
+ 6,
+ 9.5,
+ 7,
+ 9
+ ],
+ 9,
+ [
+ "step",
[
- 6,
- 16
- ]
- ]
- },
- "symbol-spacing": {
- "base": 1,
- "stops": [
- [
- 4,
- 100
+ "get",
+ "symbolrank"
],
- [
- 6,
- 400
- ]
+ 24,
+ 6,
+ 18,
+ 7,
+ 14
]
- },
- "text-font": [
- "DIN Offc Pro Italic",
- "Arial Unicode MS Regular"
- ],
- "symbol-placement": "line",
- "text-field": "{name_en}",
- "text-letter-spacing": 0.1,
- "text-max-width": 5
- },
- "paint": {
- "text-color": "hsl(0, 0%, 32%)",
- "text-halo-blur": 0,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)"
- }
- },
- {
- "id": "marine-label-sm-pt",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856087950.3635"
- },
- "source": "composite",
- "source-layer": "marine_label",
- "minzoom": 3,
- "maxzoom": 10,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "$type",
- "Point"
],
- [
- ">=",
- "labelrank",
- 4
- ]
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-max-width": 5,
- "text-letter-spacing": 0.1,
- "text-line-height": 1.5,
+ "text-transform": "uppercase",
"text-font": [
- "DIN Offc Pro Italic",
- "Arial Unicode MS Regular"
+ "DIN Offc Pro Bold",
+ "Arial Unicode MS Bold"
],
- "text-size": {
- "base": 1,
- "stops": [
+ "text-field": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "step",
[
- 3,
- 12
+ "get",
+ "symbolrank"
],
[
- 6,
- 16
- ]
- ]
- }
- },
- "paint": {
- "text-color": "hsl(0, 0%, 32%)",
- "text-halo-blur": 0,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)"
- }
- },
- {
- "id": "marine-label-md-ln",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856087950.3635"
- },
- "source": "composite",
- "source-layer": "marine_label",
- "minzoom": 2,
- "maxzoom": 8,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "$type",
- "LineString"
- ],
- [
- "in",
- "labelrank",
- 2,
- 3
- ]
- ],
- "layout": {
- "text-line-height": 1.1,
- "text-size": {
- "base": 1.1,
- "stops": [
- [
- 2,
- 12
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
+ ]
],
+ 5,
[
- 5,
- 20
+ "coalesce",
+ [
+ "get",
+ "abbr"
+ ],
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
+ ]
]
- ]
- },
- "symbol-spacing": 250,
- "text-font": [
- "DIN Offc Pro Italic",
- "Arial Unicode MS Regular"
- ],
- "symbol-placement": "line",
- "text-field": "{name_en}",
- "text-letter-spacing": 0.15,
- "text-max-width": 5
- },
- "paint": {
- "text-color": "hsl(0, 0%, 32%)",
- "text-halo-blur": 0,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)"
- }
- },
- {
- "id": "marine-label-md-pt",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856087950.3635"
- },
- "source": "composite",
- "source-layer": "marine_label",
- "minzoom": 2,
- "maxzoom": 8,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "$type",
- "Point"
- ],
- [
- "in",
- "labelrank",
- 2,
- 3
- ]
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-max-width": 5,
- "text-letter-spacing": 0.15,
- "text-line-height": 1.5,
- "text-font": [
- "DIN Offc Pro Italic",
- "Arial Unicode MS Regular"
- ],
- "text-size": {
- "base": 1.1,
- "stops": [
+ ],
+ 5,
+ [
+ "coalesce",
[
- 2,
- 14
+ "get",
+ "name_en"
],
[
- 5,
- 20
+ "get",
+ "name"
]
]
- }
+ ],
+ "text-letter-spacing": 0.15,
+ "text-max-width": 6
},
"paint": {
- "text-color": "hsl(0, 0%, 32%)",
- "text-halo-blur": 0,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)"
+ "text-halo-width": 1,
+ "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
+ "text-color": "hsl(0, 0%, 50%)"
}
},
{
- "id": "marine-label-lg-ln",
+ "id": "country-label",
"type": "symbol",
- "metadata": {
- "mapbox:group": "1444856087950.3635"
- },
"source": "composite",
- "source-layer": "marine_label",
+ "source-layer": "place_label",
"minzoom": 1,
- "maxzoom": 4,
- "interactive": true,
+ "maxzoom": 10,
"filter": [
- "all",
+ "==",
[
- "==",
- "$type",
- "LineString"
+ "get",
+ "class"
],
- [
- "==",
- "labelrank",
- 1
- ]
+ "country"
],
"layout": {
- "text-field": "{name_en}",
- "text-max-width": 4,
- "text-letter-spacing": 0.25,
"text-line-height": 1.1,
- "symbol-placement": "line",
- "text-font": [
- "DIN Offc Pro Italic",
- "Arial Unicode MS Regular"
- ],
- "text-size": {
- "base": 1,
- "stops": [
+ "text-size": [
+ "interpolate",
+ [
+ "cubic-bezier",
+ 0.2,
+ 0,
+ 0.7,
+ 1
+ ],
+ [
+ "zoom"
+ ],
+ 1,
+ [
+ "step",
[
- 1,
- 14
+ "get",
+ "symbolrank"
],
+ 11,
+ 4,
+ 9,
+ 5,
+ 8
+ ],
+ 9,
+ [
+ "step",
[
- 4,
- 30
- ]
+ "get",
+ "symbolrank"
+ ],
+ 28,
+ 4,
+ 22,
+ 5,
+ 21
]
- }
- },
- "paint": {
- "text-color": "hsl(0, 0%, 32%)",
- "text-halo-blur": 0,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)"
- }
- },
- {
- "id": "marine-label-lg-pt",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856087950.3635"
- },
- "source": "composite",
- "source-layer": "marine_label",
- "minzoom": 1,
- "maxzoom": 4,
- "interactive": true,
- "filter": [
- "all",
- [
- "==",
- "$type",
- "Point"
],
- [
- "==",
- "labelrank",
- 1
- ]
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-max-width": 4,
- "text-letter-spacing": 0.25,
- "text-line-height": 1.5,
+ "icon-image": "dot-11",
"text-font": [
- "DIN Offc Pro Italic",
+ "DIN Offc Pro Medium",
"Arial Unicode MS Regular"
],
- "text-size": {
- "base": 1,
- "stops": [
+ "text-justify": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 1,
- 14
+ "get",
+ "text_anchor"
],
[
- 4,
- 30
- ]
- ]
- }
- },
- "paint": {
- "text-color": "hsl(0, 0%, 32%)",
- "text-halo-blur": 0,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)"
- }
- },
- {
- "id": "state-label-sm",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856151690.9143"
- },
- "source": "composite",
- "source-layer": "state_label",
- "minzoom": 3,
- "maxzoom": 9,
- "interactive": true,
- "filter": [
- "<",
- "area",
- 20000
- ],
- "layout": {
- "text-size": {
- "base": 1,
- "stops": [
- [
- 6,
- 10
+ "bottom",
+ "top"
],
+ "center",
[
- 9,
- 14
- ]
- ]
- },
- "text-transform": "uppercase",
- "text-font": [
- "DIN Offc Pro Bold",
- "Arial Unicode MS Bold"
- ],
- "text-field": {
- "base": 1,
- "stops": [
- [
- 0,
- "{abbr}"
+ "left",
+ "bottom-left",
+ "top-left"
],
+ "left",
[
- 6,
- "{name_en}"
- ]
- ]
- },
- "text-letter-spacing": 0.15,
- "text-max-width": 5
- },
- "paint": {
- "text-opacity": 1,
- "text-color": "hsl(0, 0%, 50%)",
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "text-halo-blur": 0
- }
- },
- {
- "id": "state-label-md",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856151690.9143"
- },
- "source": "composite",
- "source-layer": "state_label",
- "minzoom": 3,
- "maxzoom": 8,
- "interactive": true,
- "filter": [
- "all",
- [
- "<",
- "area",
- 80000
+ "right",
+ "bottom-right",
+ "top-right"
+ ],
+ "right",
+ "center"
+ ],
+ 7,
+ "center"
],
- [
- ">=",
- "area",
- 20000
- ]
- ],
- "layout": {
- "text-size": {
- "base": 1,
- "stops": [
+ "text-offset": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "match",
[
- 5,
- 10
+ "get",
+ "text_anchor"
],
+ "bottom",
[
- 8,
- 16
- ]
- ]
- },
- "text-transform": "uppercase",
- "text-font": [
- "DIN Offc Pro Bold",
- "Arial Unicode MS Bold"
- ],
- "text-field": {
- "base": 1,
- "stops": [
+ "literal",
+ [
+ 0,
+ -0.25
+ ]
+ ],
+ "bottom-left",
[
- 0,
- "{abbr}"
+ "literal",
+ [
+ 0.2,
+ -0.05
+ ]
],
+ "left",
[
- 5,
- "{name_en}"
- ]
- ]
- },
- "text-letter-spacing": 0.15,
- "text-max-width": 6
- },
- "paint": {
- "text-opacity": 1,
- "text-color": "hsl(0, 0%, 50%)",
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "text-halo-blur": 0
- }
- },
- {
- "id": "state-label-lg",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856151690.9143"
- },
- "source": "composite",
- "source-layer": "state_label",
- "minzoom": 3,
- "maxzoom": 7,
- "interactive": true,
- "filter": [
- ">=",
- "area",
- 80000
- ],
- "layout": {
- "text-size": {
- "base": 1,
- "stops": [
+ "literal",
+ [
+ 0.4,
+ 0.05
+ ]
+ ],
+ "top-left",
[
- 4,
- 10
+ "literal",
+ [
+ 0.2,
+ 0.05
+ ]
],
+ "top",
[
- 7,
- 18
- ]
- ]
- },
- "text-transform": "uppercase",
- "text-font": [
- "DIN Offc Pro Bold",
- "Arial Unicode MS Bold"
- ],
- "text-padding": 1,
- "text-field": {
- "base": 1,
- "stops": [
+ "literal",
+ [
+ 0,
+ 0.25
+ ]
+ ],
+ "top-right",
[
- 0,
- "{abbr}"
+ "literal",
+ [
+ -0.2,
+ 0.05
+ ]
],
+ "right",
[
- 4,
- "{name_en}"
- ]
- ]
- },
- "text-letter-spacing": 0.15,
- "text-max-width": 6
- },
- "paint": {
- "text-opacity": 1,
- "text-color": "hsl(0, 0%, 50%)",
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-halo-width": 1,
- "text-halo-blur": 0
- }
- },
- {
- "id": "country-label-sm",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856144497.7825"
- },
- "source": "composite",
- "source-layer": "country_label",
- "minzoom": 1,
- "maxzoom": 10,
- "interactive": true,
- "filter": [
- ">=",
- "scalerank",
- 5
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-max-width": 6,
- "text-font": [
- "DIN Offc Pro Medium",
- "Arial Unicode MS Regular"
- ],
- "text-size": {
- "base": 0.9,
- "stops": [
+ "literal",
+ [
+ -0.4,
+ 0.05
+ ]
+ ],
+ "bottom-right",
[
- 5,
- 14
+ "literal",
+ [
+ -0.2,
+ -0.05
+ ]
],
[
- 9,
- 22
+ "literal",
+ [
+ 0,
+ -0.25
+ ]
]
- ]
- }
- },
- "paint": {
- "text-halo-width": 1.25,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-color": "hsl(0, 0%, 45%)",
- "text-halo-blur": 0
- }
- },
- {
- "id": "country-label-md",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856144497.7825"
- },
- "source": "composite",
- "source-layer": "country_label",
- "minzoom": 1,
- "maxzoom": 8,
- "interactive": true,
- "filter": [
- "in",
- "scalerank",
- 3,
- 4
- ],
- "layout": {
- "text-field": {
- "base": 1,
- "stops": [
+ ],
+ 7,
+ [
+ "literal",
[
0,
- "{code}"
- ],
- [
- 2,
- "{name_en}"
+ 0
]
]
- },
- "text-max-width": 6,
- "text-font": [
- "DIN Offc Pro Medium",
- "Arial Unicode MS Regular"
],
- "text-size": {
- "base": 1,
- "stops": [
+ "text-anchor": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "coalesce",
[
- 3,
- 10
+ "get",
+ "text_anchor"
],
- [
- 8,
- 24
- ]
+ "center"
+ ],
+ 7,
+ "center"
+ ],
+ "text-field": [
+ "coalesce",
+ [
+ "get",
+ "name_en"
+ ],
+ [
+ "get",
+ "name"
]
- }
+ ],
+ "text-max-width": 6
},
"paint": {
- "text-halo-width": 1.25,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
- "text-color": "hsl(0, 0%, 45%)",
- "text-halo-blur": 0
- }
- },
- {
- "id": "country-label-lg",
- "type": "symbol",
- "metadata": {
- "mapbox:group": "1444856144497.7825"
- },
- "source": "composite",
- "source-layer": "country_label",
- "minzoom": 1,
- "maxzoom": 7,
- "interactive": true,
- "filter": [
- "in",
- "scalerank",
- 1,
- 2
- ],
- "layout": {
- "text-field": "{name_en}",
- "text-max-width": {
- "base": 1,
- "stops": [
+ "icon-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "case",
[
- 0,
- 5
+ "has",
+ "text_anchor"
],
- [
- 3,
- 6
- ]
- ]
- },
- "text-font": [
- "DIN Offc Pro Medium",
- "Arial Unicode MS Regular"
+ 1,
+ 0
+ ],
+ 7,
+ 0
],
- "text-size": {
- "base": 1,
- "stops": [
- [
- 1,
- 10
- ],
- [
- 6,
- 24
- ]
- ]
- }
- },
- "paint": {
- "text-halo-width": 1.25,
- "text-halo-color": "hsla(0, 0%, 10%, 0.75)",
"text-color": "hsl(0, 0%, 45%)",
- "text-halo-blur": 0
+ "text-halo-color": [
+ "interpolate",
+ [
+ "linear"
+ ],
+ [
+ "zoom"
+ ],
+ 2,
+ "hsla(0, 0%, 10%, 0.75)",
+ 3,
+ "hsl(0, 0%, 10%)"
+ ],
+ "text-halo-width": 1.25
}
}
],
- "created": "2016-08-05T21:36:34.102Z",
- "id": "ciri9u6sk0005gjng30fkpx2o",
- "modified": "2016-08-05T21:36:34.102Z",
- "owner": "ivovandongen",
+ "visibility": "public",
+ "created": "1970-01-01T00:00:00.000Z",
+ "modified": "1970-01-01T00:00:00.000Z",
+ "owner": "mapbox",
+ "id": "dark-v10",
"draft": false
} \ No newline at end of file