From 457ce907ecbed8e697c350b9be5bf62c8dcefbc1 Mon Sep 17 00:00:00 2001 From: Tobrun Date: Wed, 29 Aug 2018 16:24:53 +0200 Subject: brb --- .../src/main/assets/style.json | 9965 ++++++++++++++++++++ .../activity/maplayout/SimpleMapActivity.java | 82 +- .../src/main/res/menu/menu_language_select.xml | 17 + 3 files changed, 10062 insertions(+), 2 deletions(-) create mode 100755 platform/android/MapboxGLAndroidSDKTestApp/src/main/assets/style.json create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_language_select.xml diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/assets/style.json b/platform/android/MapboxGLAndroidSDKTestApp/src/main/assets/style.json new file mode 100755 index 0000000000..bcb8abdb0b --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/assets/style.json @@ -0,0 +1,9965 @@ +{ + "version": 8, + "name": "AccuWeather-Map-Light", + "metadata": { + "mapbox:autocomposite": true, + "mapbox:type": "default", + "mapbox:origin": "navigation-guidance-day-v2", + "mapbox:groups": { + "1444934828655.3389": { + "name": "Aeroways", + "collapsed": true + }, + "1444855786460.0557": { + "name": "Roads", + "collapsed": false + }, + "0a3559da8864e237159b28b286b084eb": { + "name": "Marine labels", + "collapsed": true + }, + "1444933575858.6992": { + "name": "Highway shields", + "collapsed": false + }, + "1444934295202.7542": { + "name": "Admin boundaries", + "collapsed": true + }, + "614faed0ce6b42e1bbd6b90027560439": { + "name": "Landcover", + "collapsed": false + }, + "1444856151690.9143": { + "name": "State labels", + "collapsed": true + }, + "1444933721429.3076": { + "name": "Road labels", + "collapsed": false + }, + "1444855799204.86": { + "name": "Bridges", + "collapsed": true + }, + "1456969573402.7817": { + "name": "Hillshading", + "collapsed": true + }, + "1444862510685.128": { + "name": "City labels", + "collapsed": true + }, + "1444855769305.6016": { + "name": "Tunnels", + "collapsed": false + } + }, + "mapbox:sdk-support": { + "js": "0.46.0", + "android": "6.0.0", + "ios": "4.0.0" + } + }, + "center": [ + -84.08935538544745, + 36.033658627735505 + ], + "zoom": 2.634956060138216, + "bearing": 0, + "pitch": 0, + "sources": { + "composite": { + "url": "mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v7", + "type": "vector" + }, + "mapbox://mapbox.terrain-rgb": { + "url": "mapbox://mapbox.terrain-rgb", + "type": "raster-dem", + "tileSize": 256 + } + }, + "sprite": "mapbox://sprites/accuweather-inc/cjknc24na2o5u2sqoy0t8ku8a", + "glyphs": "mapbox://fonts/accuweather-inc/{fontstack}/{range}.pbf", + "layers": [ + { + "id": "background", + "type": "background", + "layout": {}, + "paint": { + "background-color": "hsl(68, 23%, 92%)" + } + }, + { + "id": "landcover_snow", + "type": "fill", + "metadata": { + "mapbox:group": "614faed0ce6b42e1bbd6b90027560439" + }, + "source": "composite", + "source-layer": "landcover", + "filter": [ + "==", + "class", + "snow" + ], + "layout": {}, + "paint": { + "fill-opacity": 0.2, + "fill-color": "hsl(0, 0%, 100%)" + } + }, + { + "id": "landcover_wood", + "type": "fill", + "metadata": { + "mapbox:group": "614faed0ce6b42e1bbd6b90027560439" + }, + "source": "composite", + "source-layer": "landcover", + "maxzoom": 17, + "filter": [ + "==", + "class", + "wood" + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 2, + 0.2, + 17, + 0 + ], + "fill-color": "hsl(100, 50%, 75%)" + } + }, + { + "id": "landcover_scrub", + "type": "fill", + "metadata": { + "mapbox:group": "614faed0ce6b42e1bbd6b90027560439" + }, + "source": "composite", + "source-layer": "landcover", + "maxzoom": 17, + "filter": [ + "==", + "class", + "scrub" + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 2, + 0.2, + 17, + 0 + ], + "fill-color": "hsl(100, 50%, 75%)" + } + }, + { + "id": "landcover_grass", + "type": "fill", + "metadata": { + "mapbox:group": "614faed0ce6b42e1bbd6b90027560439" + }, + "source": "composite", + "source-layer": "landcover", + "maxzoom": 17, + "filter": [ + "==", + "class", + "grass" + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 2, + 0.2, + 17, + 0 + ], + "fill-color": "hsl(100, 50%, 75%)" + } + }, + { + "id": "landcover_crop", + "type": "fill", + "metadata": { + "mapbox:group": "614faed0ce6b42e1bbd6b90027560439" + }, + "source": "composite", + "source-layer": "landcover", + "maxzoom": 17, + "filter": [ + "==", + "class", + "crop" + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 2, + 0.2, + 17, + 0 + ], + "fill-color": "hsl(100, 50%, 75%)" + } + }, + { + "id": "national_park", + "type": "fill", + "source": "composite", + "source-layer": "landuse_overlay", + "minzoom": 10, + "filter": [ + "==", + "class", + "national_park" + ], + "layout": {}, + "paint": { + "fill-color": "hsla(97, 37%, 34%, 0.25)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 5, + 0, + 6, + 0.5 + ] + } + }, + { + "id": "school", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "minzoom": 10, + "filter": [ + "==", + "class", + "school" + ], + "layout": {}, + "paint": { + "fill-color": "hsla(70, 60%, 71%, 0.25)" + } + }, + { + "id": "hospital", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "minzoom": 10, + "filter": [ + "==", + "class", + "hospital" + ], + "layout": {}, + "paint": { + "fill-color": "hsla(21, 91%, 55%, 0.3)", + "fill-outline-color": "hsla(21, 91%, 55%, 0)" + } + }, + { + "id": "park", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "minzoom": 10, + "filter": [ + "==", + "class", + "park" + ], + "layout": {}, + "paint": { + "fill-color": "hsla(86, 47%, 48%, 0.15)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 5, + 0, + 6, + 1 + ] + } + }, + { + "id": "pitch", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "minzoom": 10, + "filter": [ + "==", + "class", + "pitch" + ], + "layout": {}, + "paint": { + "fill-color": "hsla(83, 51%, 60%, 0.25)" + } + }, + { + "id": "cemetery", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "filter": [ + "==", + "class", + "cemetery" + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(100, 40%, 72%)" + } + }, + { + "id": "industrial", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "minzoom": 9, + "filter": [ + "==", + "class", + "industrial" + ], + "layout": {}, + "paint": { + "fill-color": "hsla(0, 0%, 0%, 0.05)" + } + }, + { + "id": "sand", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "minzoom": 11, + "filter": [ + "==", + "class", + "sand" + ], + "layout": {}, + "paint": { + "fill-color": "hsla(60, 16%, 72%, 0.25)" + } + }, + { + "id": "parking", + "type": "fill", + "source": "composite", + "source-layer": "landuse", + "minzoom": 15, + "filter": [ + "==", + "class", + "parking" + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(205, 7%, 79%)", + "fill-opacity": 1 + } + }, + { + "id": "hillshade_highlight_bright", + "type": "fill", + "metadata": { + "mapbox:group": "1456969573402.7817" + }, + "source": "composite", + "source-layer": "hillshade", + "maxzoom": 16, + "filter": [ + "==", + "level", + 94 + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(0, 0%, 100%)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 14, + 0.12, + 16, + 0 + ], + "fill-antialias": false + } + }, + { + "id": "hillshade_highlight_med", + "type": "fill", + "metadata": { + "mapbox:group": "1456969573402.7817" + }, + "source": "composite", + "source-layer": "hillshade", + "maxzoom": 16, + "filter": [ + "==", + "level", + 90 + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(0, 0%, 100%)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 14, + 0.12, + 16, + 0 + ], + "fill-antialias": false + } + }, + { + "id": "hillshade_shadow_faint", + "type": "fill", + "metadata": { + "mapbox:group": "1456969573402.7817" + }, + "source": "composite", + "source-layer": "hillshade", + "maxzoom": 16, + "filter": [ + "==", + "level", + 89 + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(56, 59%, 22%)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 14, + 0.05, + 16, + 0 + ], + "fill-antialias": false + } + }, + { + "id": "hillshade_shadow_med", + "type": "fill", + "metadata": { + "mapbox:group": "1456969573402.7817" + }, + "source": "composite", + "source-layer": "hillshade", + "maxzoom": 16, + "filter": [ + "==", + "level", + 78 + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(56, 59%, 22%)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 14, + 0.05, + 16, + 0 + ], + "fill-antialias": false + } + }, + { + "id": "hillshade_shadow_dark", + "type": "fill", + "metadata": { + "mapbox:group": "1456969573402.7817" + }, + "source": "composite", + "source-layer": "hillshade", + "maxzoom": 16, + "filter": [ + "==", + "level", + 67 + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(56, 59%, 22%)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 14, + 0.06, + 16, + 0 + ], + "fill-antialias": false + } + }, + { + "id": "hillshade_shadow_extreme", + "type": "fill", + "metadata": { + "mapbox:group": "1456969573402.7817" + }, + "source": "composite", + "source-layer": "hillshade", + "maxzoom": 16, + "filter": [ + "==", + "level", + 56 + ], + "layout": { + "visibility": "none" + }, + "paint": { + "fill-color": "hsl(56, 59%, 22%)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 14, + 0.06, + 16, + 0 + ], + "fill-antialias": false + } + }, + { + "id": "waterway-river-canal", + "type": "line", + "source": "composite", + "source-layer": "waterway", + "minzoom": 8, + "filter": [ + "in", + "class", + "canal", + "river" + ], + "layout": { + "line-cap": [ + "step", + [ + "zoom" + ], + "butt", + 11, + "round" + ], + "line-join": "round" + }, + "paint": { + "line-color": "#88afc3", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 8, + 0, + 8.5, + 0.9 + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 8.5, + 0.1, + 20, + 8 + ] + } + }, + { + "id": "waterway-small", + "type": "line", + "source": "composite", + "source-layer": "waterway", + "minzoom": 13, + "filter": [ + "!in", + "class", + "canal", + "river" + ], + "layout": { + "line-join": "round", + "line-cap": "round" + }, + "paint": { + "line-color": "#88afc3", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13, + 0, + 13.5, + 1 + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.5, + 0.1, + 20, + 3 + ] + } + }, + { + "id": "water-shadow", + "type": "fill", + "source": "composite", + "source-layer": "water", + "layout": {}, + "paint": { + "fill-color": "hsla(203, 37%, 33%, 0)", + "fill-translate": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 6, + [ + "literal", + [ + -1.5, + -1.5 + ] + ], + 7, + [ + "literal", + [ + -0.5, + -0.5 + ] + ] + ], + "fill-translate-anchor": "viewport", + "fill-outline-color": "hsla(0, 0%, 0%, 0)", + "fill-opacity": 0 + } + }, + { + "id": "water", + "type": "fill", + "source": "composite", + "source-layer": "water", + "layout": {}, + "paint": { + "fill-color": "#88afc3", + "fill-outline-color": "#719eb5", + "fill-opacity": 1 + } + }, + { + "id": "mapbox-terrain-rgb", + "type": "hillshade", + "source": "mapbox://mapbox.terrain-rgb", + "minzoom": 4, + "layout": { + "visibility": "visible" + }, + "paint": { + "hillshade-exaggeration": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 0, + 0, + 4, + 0.04, + 22, + 0.1 + ], + "hillshade-shadow-color": "hsl(0, 0%, 12%)", + "hillshade-accent-color": "hsl(77, 17%, 37%)", + "hillshade-highlight-color": "hsl(0, 0%, 92%)" + } + }, + { + "id": "barrier_line-land-polygon", + "type": "fill", + "source": "composite", + "source-layer": "barrier_line", + "filter": [ + "all", + [ + "==", + "$type", + "Polygon" + ], + [ + "==", + "class", + "land" + ] + ], + "layout": {}, + "paint": { + "fill-color": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 8, + "hsl(35, 6%, 72%)", + 11, + "hsl(35, 6%, 75%)" + ] + } + }, + { + "id": "barrier_line-land-line", + "type": "line", + "source": "composite", + "source-layer": "barrier_line", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "class", + "land" + ] + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.99 + ], + [ + "zoom" + ], + 14, + 0.75, + 20, + 40 + ], + "line-color": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 8, + "hsl(35, 6%, 72%)", + 11, + "hsl(35, 6%, 75%)" + ] + } + }, + { + "id": "aeroway-polygon", + "type": "fill", + "metadata": { + "mapbox:group": "1444934828655.3389" + }, + "source": "composite", + "source-layer": "aeroway", + "minzoom": 11, + "filter": [ + "all", + [ + "!=", + "type", + "apron" + ], + [ + "==", + "$type", + "Polygon" + ] + ], + "layout": {}, + "paint": { + "fill-color": "hsl(197, 10%, 67%)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 11, + 0, + 11.5, + 1 + ] + } + }, + { + "id": "aeroway-runway", + "type": "line", + "metadata": { + "mapbox:group": "1444934828655.3389" + }, + "source": "composite", + "source-layer": "aeroway", + "minzoom": 9, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "type", + "runway" + ] + ], + "layout": {}, + "paint": { + "line-color": "hsla(0, 0%, 12%, 0.25)", + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 9, + 1, + 18, + 80 + ] + } + }, + { + "id": "aeroway-taxiway", + "type": "line", + "metadata": { + "mapbox:group": "1444934828655.3389" + }, + "source": "composite", + "source-layer": "aeroway", + "minzoom": 9, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "type", + "taxiway" + ] + ], + "layout": {}, + "paint": { + "line-color": "hsla(0, 0%, 12%, 0.1)", + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 0.5, + 18, + 20 + ] + } + }, + { + "id": "building", + "type": "fill", + "source": "composite", + "source-layer": "building", + "minzoom": 15, + "filter": [ + "all", + [ + "!=", + "type", + "building:part" + ], + [ + "==", + "underground", + "false" + ] + ], + "layout": {}, + "paint": { + "fill-color": "hsla(0, 0%, 83%, 0.25)", + "fill-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 15.5, + 0, + 16, + 1 + ], + "fill-outline-color": "hsla(0, 0%, 53%, 0.25)" + } + }, + { + "id": "building-line", + "type": "line", + "source": "composite", + "source-layer": "building", + "minzoom": 15, + "filter": [ + "all", + [ + "!=", + "type", + "building:part" + ], + [ + "==", + "underground", + "false" + ] + ], + "layout": {}, + "paint": { + "line-color": "#878787", + "line-width": 1, + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 15.5, + 0, + 16, + 1 + ] + } + }, + { + "id": "tunnel-street-low", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 11.5, + 0, + 12, + 1, + 14, + 1, + 14.01, + 0 + ] + } + }, + { + "id": "tunnel-street_limited-low", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street_limited" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 11.5, + 0, + 12, + 1, + 14, + 1, + 14.01, + 0 + ] + } + }, + { + "id": "tunnel-service-link-track-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 15, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "type", + "trunk_link" + ], + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "link", + "service", + "track" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.75, + 20, + 2 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 14, + 0.5, + 18, + 5 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-street_limited-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street_limited" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.75, + 20, + 2 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 13, + 0, + 14, + 2, + 18, + 18 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "tunnel-street-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.75, + 20, + 2 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 13, + 0, + 14, + 2, + 18, + 18 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-secondary-tertiary-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.2 + ], + [ + "zoom" + ], + 10, + 0.75, + 18, + 2 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 8.5, + 0.5, + 10, + 0.75, + 18, + 32 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": 1 + } + }, + { + "id": "tunnel-primary-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "primary" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": 1 + } + }, + { + "id": "tunnel-trunk_link-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "==", + "type", + "trunk_link" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.75, + 20, + 2 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-motorway_link-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.75, + 20, + 2 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-trunk-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "==", + "type", + "trunk" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": 1 + } + }, + { + "id": "tunnel-motorway-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-dasharray": [ + 3, + 3 + ], + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)" + } + }, + { + "id": "tunnel-construction", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "construction" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-join": "miter" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ], + "line-dasharray": [ + "step", + [ + "zoom" + ], + [ + "literal", + [ + 0.4, + 0.8 + ] + ], + 15, + [ + "literal", + [ + 0.3, + 0.6 + ] + ], + 16, + [ + "literal", + [ + 0.2, + 0.3 + ] + ], + 17, + [ + "literal", + [ + 0.2, + 0.25 + ] + ], + 18, + [ + "literal", + [ + 0.15, + 0.15 + ] + ] + ] + } + }, + { + "id": "tunnel-trunk_link", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "==", + "type", + "trunk_link" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-dasharray": [ + 1, + 0 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-motorway_link", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-dasharray": [ + 1, + 0 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-service-link-track", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 15, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "type", + "trunk_link" + ], + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "link", + "service", + "track" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 1, + 19, + 6 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-dasharray": [ + 1, + 0 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-street_limited", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street_limited" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "tunnel-street", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "tunnel-secondary-tertiary", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 8.5, + 0.5, + 10, + 0.75, + 16, + 14.55, + 17, + 21.53, + 18, + 32 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-blur": 0, + "line-dasharray": [ + 1, + 0 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-primary", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "primary" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-blur": 0, + "line-dasharray": [ + 1, + 0 + ], + "line-opacity": 1 + } + }, + { + "id": "tunnel-oneway-arrows-minor", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 16, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "type", + "trunk_link" + ], + [ + "==", + "oneway", + "true" + ], + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "link", + "primary", + "secondary", + "service", + "street", + "street_limited", + "tertiary", + "track" + ] + ] + ], + "layout": { + "symbol-placement": "line", + "icon-image": [ + "step", + [ + "zoom" + ], + "oneway-small", + 17, + "oneway-large" + ], + "symbol-spacing": 250, + "icon-padding": 2, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "icon-opacity": 0.5, + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "tunnel-trunk", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "trunk" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)", + "line-opacity": 1 + } + }, + { + "id": "tunnel-motorway", + "type": "line", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "tunnel" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-dasharray": [ + 1, + 0 + ], + "line-color": "hsla(0, 0%, 53%, 0.5)" + } + }, + { + "id": "tunnel-oneway-arrows-major", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855769305.6016" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 16, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "type", + "primary_link", + "secondary_link", + "tertiary_link" + ], + [ + "==", + "oneway", + "true" + ], + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "link", + "motorway", + "motorway_link", + "trunk" + ] + ] + ], + "layout": { + "symbol-placement": "line", + "icon-image": [ + "step", + [ + "zoom" + ], + "oneway-small", + 17, + "oneway-large" + ], + "symbol-spacing": 250, + "icon-padding": 2, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "icon-opacity": 0.5, + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "ferry_auto", + "type": "line", + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "type", + "ferry_auto" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 15, + "hsl(205, 73%, 63%)", + 17, + "hsl(230, 73%, 63%)" + ], + "line-opacity": 1, + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 14, + 0.5, + 20, + 1 + ] + } + }, + { + "id": "road-construction", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "construction" + ], + [ + "==", + "structure", + "none" + ] + ] + ], + "layout": { + "line-join": "miter" + }, + "paint": { + "line-color": "#cccccc", + "line-dasharray": [ + "step", + [ + "zoom" + ], + [ + "literal", + [ + 0.4, + 0.8 + ] + ], + 15, + [ + "literal", + [ + 0.3, + 0.4 + ] + ], + 16, + [ + "literal", + [ + 0.2, + 0.3 + ] + ], + 17, + [ + "literal", + [ + 0.2, + 0.25 + ] + ], + 18, + [ + "literal", + [ + 0.15, + 0.15 + ] + ] + ] + } + }, + { + "id": "road-trunk_link", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "type", + "trunk_link" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc" + } + }, + { + "id": "road-motorway_link", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 10, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway_link" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc" + } + }, + { + "id": "road-pedestrian", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "structure", + "tunnel" + ], + [ + "!=", + "type", + "platform" + ], + [ + "!=", + "type", + "subway" + ], + [ + "==", + "class", + "pedestrian" + ], + [ + "==", + "structure", + "none" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc" + } + }, + { + "id": "road-polygon", + "type": "fill", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 12, + "filter": [ + "all", + [ + "==", + "$type", + "Polygon" + ], + [ + "all", + [ + "!=", + "type", + "service:driveway" + ], + [ + "!in", + "class", + "motorway", + "path", + "pedestrian", + "trunk" + ], + [ + "!in", + "structure", + "bridge", + "tunnel" + ] + ] + ], + "layout": {}, + "paint": { + "fill-color": "hsla(0, 0%, 78%, 0.25)" + } + }, + { + "id": "road-link", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "type", + "trunk_link" + ], + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "link" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc" + } + }, + { + "id": "road-service-track", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 15, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "type", + "service:driveway" + ], + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "!in", + "type", + "track:grade1", + "trunk_link" + ], + [ + "in", + "class", + "service", + "track" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc" + } + }, + { + "id": "road-street_limited", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street_limited" + ], + [ + "==", + "structure", + "none" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc" + } + }, + { + "id": "road-street", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 10, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street" + ], + [ + "==", + "structure", + "none" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc", + "line-width": 0.75, + "line-opacity": 0.75 + } + }, + { + "id": "road-secondary-tertiary", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 6, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc", + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 6, + 0.75, + 22, + 1.75 + ] + } + }, + { + "id": "road-primary-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 7.5, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "primary" + ] + ] + ], + "layout": { + "visibility": "none", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0, 0%, 64%)" + } + }, + { + "id": "road-primary", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 6, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "primary" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc", + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 6, + 1, + 22, + 2 + ], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 0, + 0, + 8, + 0.5, + 22, + 1 + ] + } + }, + { + "id": "road-oneway-arrows-minor", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 16, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "type", + "trunk_link" + ], + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "oneway", + "true" + ], + [ + "in", + "class", + "link", + "primary", + "secondary", + "service", + "street", + "street_limited", + "tertiary", + "track" + ] + ] + ], + "layout": { + "symbol-placement": "line", + "icon-image": [ + "step", + [ + "zoom" + ], + "oneway-small", + 17, + "oneway-large" + ], + "icon-rotation-alignment": "map", + "icon-padding": 2, + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "road-trunk-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 7, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "trunk" + ] + ] + ], + "layout": { + "visibility": "none", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0, 0%, 64%)" + } + }, + { + "id": "road-trunk", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 6, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "trunk" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cccccc" + } + }, + { + "id": "road-motorway-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway" + ] + ] + ], + "layout": { + "visibility": "none", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0, 0%, 64%)" + } + }, + { + "id": "road-motorway", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0, 0%, 80%)", + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 0, + 1, + 22, + 3 + ], + "line-opacity": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 5, + 0.5, + 7, + 1 + ] + } + }, + { + "id": "road-rail", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "major_rail", + "minor_rail" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-offset": 0, + "line-color": "hsl(0, 0%, 64%)", + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 14, + 0.5, + 20, + 1 + ] + } + }, + { + "id": "road-rail-tracks", + "type": "line", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "major_rail", + "minor_rail" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0, 0%, 64%)", + "line-dasharray": [ + 0.1, + 15 + ], + "line-width": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 14, + 4, + 20, + 8 + ] + } + }, + { + "id": "level-crossings", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 16, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "class", + "level_crossing" + ] + ], + "layout": { + "icon-size": 1, + "icon-allow-overlap": true, + "icon-image": "level-crossing", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "icon-opacity": 1, + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "road-oneway-arrows-major", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 16, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "!in", + "type", + "primary_link", + "secondary_link", + "tertiary_link" + ], + [ + "==", + "oneway", + "true" + ], + [ + "in", + "class", + "link", + "motorway", + "motorway_link", + "trunk" + ] + ] + ], + "layout": { + "symbol-placement": "line", + "icon-image": [ + "step", + [ + "zoom" + ], + "oneway-large", + 17, + "oneway-small" + ], + "icon-padding": 2, + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "turning-features", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855786460.0557" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 15, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "in", + "class", + "turning_circle", + "turning_loop" + ] + ], + "layout": { + "icon-image": "turning-circle", + "icon-size": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 14, + 0.095, + 18, + 1 + ], + "icon-allow-overlap": true, + "icon-ignore-placement": true, + "icon-padding": 0, + "icon-rotation-alignment": "map", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "bridge-street-low", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-street_limited-low", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street_limited" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-service-link-track-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!=", + "type", + "trunk_link" + ], + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "link", + "service", + "track" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 14, + 0.5, + 18, + 4, + 19, + 5 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-street_limited-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street_limited" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 13, + 0, + 14, + 2, + 18, + 18 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-street-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ], + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 13, + 0, + 14, + 2, + 18, + 18 + ] + } + }, + { + "id": "bridge-secondary-tertiary-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 8.5, + 0.5, + 10, + 0.75, + 18, + 26 + ], + "line-translate": [ + 0, + 0 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-primary-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "primary" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-translate": [ + 0, + 0 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-trunk_link-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "structure", + "bridge" + ], + [ + "==", + "type", + "trunk_link" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-motorway_link-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-trunk-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "class", + "trunk" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-motorway-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-construction", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "construction" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "miter" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ], + "line-dasharray": [ + "step", + [ + "zoom" + ], + [ + "literal", + [ + 0.4, + 0.8 + ] + ], + 15, + [ + "literal", + [ + 0.3, + 0.4 + ] + ], + 16, + [ + "literal", + [ + 0.2, + 0.3 + ] + ], + 17, + [ + "literal", + [ + 0.2, + 0.25 + ] + ], + 18, + [ + "literal", + [ + 0.15, + 0.15 + ] + ] + ] + } + }, + { + "id": "bridge-trunk_link", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "structure", + "bridge" + ], + [ + "==", + "type", + "trunk_link" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-motorway_link", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 0.5, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-pedestrian", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "pedestrian" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 14, + 0.5, + 19, + 4 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-service-link-track", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "type", + "track:grade1", + "trunk_link" + ], + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "link", + "service", + "track" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 1, + 19, + 6 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-street_limited", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street_limited" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-street", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 11, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "street" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12.5, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-secondary-tertiary", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "type", + "secondary", + "tertiary" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 8.5, + 0.5, + 18, + 24 + ], + "line-color": "hsl(0, 0%, 53%)" + } + }, + { + "id": "bridge-primary", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "==", + "type", + "primary" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 24 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-oneway-arrows-blue-major", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 17, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "oneway", + "true" + ], + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "link", + "primary", + "secondary", + "service", + "street", + "street_limited", + "tertiary", + "track" + ] + ] + ], + "layout": { + "symbol-placement": "line", + "icon-image": [ + "step", + [ + "zoom" + ], + "oneway-small", + 17, + "oneway-large" + ], + "symbol-spacing": 250, + "icon-rotation-alignment": "map", + "icon-padding": 2, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "bridge-trunk", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "class", + "trunk" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-motorway", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "layer", + 2, + 3, + 4, + 5 + ], + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "bridge" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.5, + 18, + 24 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": 1 + } + }, + { + "id": "bridge-rail", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "major_rail", + "minor_rail" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0, 0%, 53%)", + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 14, + 0.5, + 20, + 1 + ], + "line-offset": 0, + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-rail-tracks", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "major_rail", + "minor_rail" + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "hsl(0, 0%, 53%)", + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 14, + 4, + 20, + 8 + ], + "line-dasharray": [ + 0.1, + 15 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-trunk_link-2-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "==", + "type", + "trunk_link" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-motorway_link-2-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "bridge" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-trunk-2-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "trunk" + ], + [ + "==", + "structure", + "bridge" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-motorway-2-case", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "bridge" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 10, + 1, + 16, + 2 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-gap-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-trunk_link-2", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "==", + "type", + "trunk_link" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-motorway_link-2", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 13, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "bridge" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 12, + 0.5, + 14, + 2, + 18, + 18 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 13.99, + 0, + 14, + 1 + ] + } + }, + { + "id": "bridge-trunk-2", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "trunk" + ], + [ + "==", + "structure", + "bridge" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 5, + 0.75, + 18, + 32 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": 1 + } + }, + { + "id": "bridge-motorway-2", + "type": "line", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "bridge" + ], + [ + ">=", + "layer", + 2 + ] + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1.5 + ], + [ + "zoom" + ], + 9, + 0.5, + 18, + 24 + ], + "line-color": "hsl(0, 0%, 53%)", + "line-opacity": 1 + } + }, + { + "id": "bridge-oneway-arrows-major", + "type": "symbol", + "metadata": { + "mapbox:group": "1444855799204.86" + }, + "source": "composite", + "source-layer": "road", + "minzoom": 16, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "type", + "primary_link", + "secondary_link", + "tertiary_link" + ], + [ + "==", + "oneway", + "true" + ], + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "link", + "motorway", + "motorway_link", + "trunk" + ] + ] + ], + "layout": { + "symbol-placement": "line", + "icon-image": [ + "step", + [ + "zoom" + ], + "oneway-small", + 17, + "oneway-large" + ], + "symbol-spacing": 250, + "icon-padding": 2, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ] + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0 + } + }, + { + "id": "admin-3-4-boundaries-bg", + "type": "line", + "metadata": { + "mapbox:group": "1444934295202.7542" + }, + "source": "composite", + "source-layer": "admin", + "filter": [ + "all", + [ + "==", + "maritime", + 0 + ], + [ + ">=", + "admin_level", + 3 + ] + ], + "layout": { + "line-join": "bevel", + "visibility": "none" + }, + "paint": { + "line-blur": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 3, + 0, + 8, + 3 + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7, + 3.75, + 12, + 5.5 + ], + "line-opacity": 1, + "line-dasharray": [ + 1, + 0 + ], + "line-translate": [ + 0, + 0 + ], + "line-color": "hsl(0, 100%, 59%)" + } + }, + { + "id": "admin-2-boundaries-bg", + "type": "line", + "metadata": { + "mapbox:group": "1444934295202.7542" + }, + "source": "composite", + "source-layer": "admin", + "minzoom": 1, + "filter": [ + "all", + [ + "==", + "admin_level", + 2 + ], + [ + "==", + "maritime", + 0 + ] + ], + "layout": { + "line-join": "miter" + }, + "paint": { + "line-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 2, + 2, + 10, + 4 + ], + "line-blur": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 3, + 0, + 10, + 2 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 3, + 0, + 4, + 0.5 + ], + "line-translate": [ + 0, + 0 + ], + "line-color": "hsla(0, 0%, 19%, 0.75)" + } + }, + { + "id": "admin-3-4-boundaries", + "type": "line", + "metadata": { + "mapbox:group": "1444934295202.7542" + }, + "source": "composite", + "source-layer": "admin", + "filter": [ + "all", + [ + "==", + "maritime", + 0 + ], + [ + ">=", + "admin_level", + 3 + ] + ], + "layout": { + "line-join": "round", + "line-cap": "round" + }, + "paint": { + "line-dasharray": [ + "step", + [ + "zoom" + ], + [ + "literal", + [ + 2, + 0 + ] + ], + 7, + [ + "literal", + [ + 2, + 2, + 6, + 2 + ] + ] + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 4, + 1, + 7, + 2.5, + 12, + 3.5 + ], + "line-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 2, + 0, + 3, + 1 + ], + "line-color": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 6.5, + "hsla(196, 18%, 36%, 0.5)", + 7.24, + "hsla(196, 18%, 36%, 0.75)", + 22, + "hsla(196, 18%, 36%, 0.5)" + ] + } + }, + { + "id": "admin-2-boundaries", + "type": "line", + "metadata": { + "mapbox:group": "1444934295202.7542" + }, + "source": "composite", + "source-layer": "admin", + "minzoom": 1, + "filter": [ + "all", + [ + "==", + "admin_level", + 2 + ], + [ + "==", + "disputed", + 0 + ], + [ + "==", + "maritime", + 0 + ] + ], + "layout": { + "line-join": "round", + "line-cap": "round" + }, + "paint": { + "line-color": "hsla(0, 0%, 12%, 0.5)", + "line-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 3, + 0.5, + 10, + 1.5 + ] + } + }, + { + "id": "admin-2-boundaries-dispute", + "type": "line", + "metadata": { + "mapbox:group": "1444934295202.7542" + }, + "source": "composite", + "source-layer": "admin", + "minzoom": 1, + "filter": [ + "all", + [ + "==", + "admin_level", + 2 + ], + [ + "==", + "disputed", + 1 + ], + [ + "==", + "maritime", + 0 + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-dasharray": [ + 1.5, + 1.5 + ], + "line-color": "#1e1e1e", + "line-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 3, + 0.5, + 10, + 2 + ] + } + }, + { + "id": "poi-scalerank3", + "type": "symbol", + "source": "composite", + "source-layer": "poi_label", + "filter": [ + "all", + [ + "!in", + "maki", + "alcohol-shop", + "art-gallery", + "bakery", + "bank", + "bar", + "beer", + "bicycle", + "bicycle-share", + "cafe", + "car", + "cinema", + "clothing-store", + "dentist", + "doctor", + "dog-park", + "drinking-water", + "embassy", + "fast-food", + "fire-station", + "fuel", + "garden", + "grocery", + "ice-cream", + "laundry", + "lodging", + "music", + "park", + "pharmacy", + "picnic-site", + "place-of-worship", + "police", + "post", + "religious-christian", + "religious-jewish", + "religious-muslim", + "restaurant", + "shop", + "suitcase", + "swimming", + "theatre", + "toilet", + "veterinary" + ], + [ + "==", + "scalerank", + 3 + ] + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 10, + 11, + 18, + 14 + ], + "icon-image": [ + "step", + [ + "zoom" + ], + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-11" + ], + 14, + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-15" + ] + ], + "text-max-angle": 38, + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Regular", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 2, + "text-offset": [ + 0, + 0.65 + ], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": "{name_en}", + "text-letter-spacing": 0.01, + "text-max-width": 8 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0, + "text-halo-width": 2, + "text-opacity": 1 + } + }, + { + "id": "road-label-small", + "type": "symbol", + "metadata": { + "mapbox:group": "1444933721429.3076" + }, + "source": "composite", + "source-layer": "road_label", + "minzoom": 16, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "class", + "service" + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 16, + 13, + 20, + 18 + ], + "text-max-angle": 30, + "text-transform": "uppercase", + "symbol-spacing": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 17, + 250, + 20, + 480 + ], + "text-font": [ + "literal", + [ + "Heebo Regular", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": "line", + "text-padding": 1, + "text-rotation-alignment": "map", + "text-pitch-alignment": "viewport", + "text-field": "{name_en}", + "text-letter-spacing": 0.01 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "#ebebeb", + "text-halo-width": 2, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "road-label-medium", + "type": "symbol", + "metadata": { + "mapbox:group": "1444933721429.3076" + }, + "source": "composite", + "source-layer": "road_label", + "minzoom": 14, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "in", + "class", + "link", + "street", + "street_limited" + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 11, + 10, + 20, + 18 + ], + "text-max-angle": 30, + "text-transform": "uppercase", + "symbol-spacing": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 17, + 250, + 20, + 480 + ], + "text-font": [ + "literal", + [ + "Heebo Regular", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": "line", + "text-padding": 1, + "text-rotation-alignment": "map", + "text-pitch-alignment": "viewport", + "text-field": "{name_en}", + "text-letter-spacing": 0.01 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "#ebebeb", + "text-halo-width": 2, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "road-label-large", + "type": "symbol", + "metadata": { + "mapbox:group": "1444933721429.3076" + }, + "source": "composite", + "source-layer": "road_label", + "filter": [ + "in", + "class", + "motorway", + "primary", + "secondary", + "tertiary", + "trunk" + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 9, + 10, + 20, + 20 + ], + "text-max-angle": 30, + "text-transform": "uppercase", + "symbol-spacing": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 17, + 250, + 20, + 480 + ], + "text-font": [ + "literal", + [ + "Heebo Regular", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": "line", + "text-padding": 1, + "text-rotation-alignment": "map", + "text-pitch-alignment": "viewport", + "text-field": "{name_en}", + "text-letter-spacing": 0.01 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "#ebebeb", + "text-halo-width": 2, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "road-shields-black", + "type": "symbol", + "metadata": { + "mapbox:group": "1444933575858.6992" + }, + "source": "composite", + "source-layer": "road_label", + "minzoom": 11, + "filter": [ + "all", + [ + "!in", + "shield", + "at-expressway", + "at-motorway", + "at-state-b", + "bg-motorway", + "bg-national", + "ch-main", + "ch-motorway", + "cz-motorway", + "cz-road", + "de-motorway", + "e-road", + "fi-main", + "gr-motorway", + "gr-national", + "hr-motorway", + "hr-state", + "hu-main", + "hu-motorway", + "nz-state", + "pl-expressway", + "pl-motorway", + "pl-national", + "ro-county", + "ro-motorway", + "ro-national", + "rs-motorway", + "rs-state-1b", + "se-main", + "si-expressway", + "si-motorway", + "sk-highway", + "sk-road", + "us-interstate", + "us-interstate-business", + "us-interstate-duplex", + "us-interstate-truck", + "za-metropolitan", + "za-national", + "za-provincial", + "za-regional" + ], + [ + "<=", + "reflen", + 6 + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 6, + 9, + 11, + 12 + ], + "icon-image": [ + "concat", + [ + "to-string", + [ + "get", + "shield" + ] + ], + "-", + [ + "to-string", + [ + "get", + "reflen" + ] + ] + ], + "icon-rotation-alignment": "viewport", + "text-max-angle": 38, + "symbol-spacing": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 11, + 150, + 14, + 500 + ], + "text-font": [ + "literal", + [ + "Heebo Bold", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": [ + "step", + [ + "zoom" + ], + "point", + 11, + "line" + ], + "text-padding": 2, + "text-rotation-alignment": "viewport", + "icon-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 8, + 0.65, + 11, + 0.75 + ], + "text-field": "{ref}", + "text-letter-spacing": 0.05, + "icon-padding": 2 + }, + "paint": { + "text-color": "#1e1e1e", + "icon-halo-color": "rgba(0, 0, 0, 1)", + "icon-halo-width": 1, + "text-opacity": 1, + "icon-color": "white", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-width": 2, + "icon-opacity": 0.75, + "text-halo-blur": 0 + } + }, + { + "id": "road-shields-white", + "type": "symbol", + "metadata": { + "mapbox:group": "1444933575858.6992" + }, + "source": "composite", + "source-layer": "road_label", + "filter": [ + "all", + [ + "<=", + "reflen", + 6 + ], + [ + "in", + "shield", + "at-expressway", + "at-motorway", + "at-state-b", + "bg-motorway", + "bg-national", + "ch-main", + "ch-motorway", + "cz-motorway", + "cz-road", + "de-motorway", + "e-road", + "fi-main", + "gr-motorway", + "gr-national", + "hr-motorway", + "hr-state", + "hu-main", + "hu-motorway", + "nz-state", + "pl-expressway", + "pl-motorway", + "pl-national", + "ro-county", + "ro-motorway", + "ro-national", + "rs-motorway", + "rs-state-1b", + "se-main", + "si-expressway", + "si-motorway", + "sk-highway", + "sk-road", + "us-interstate", + "us-interstate-business", + "us-interstate-duplex", + "us-interstate-truck", + "za-metropolitan", + "za-national", + "za-provincial", + "za-regional" + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 8, + 9, + 11, + 12 + ], + "icon-image": [ + "concat", + [ + "to-string", + [ + "get", + "shield" + ] + ], + "-", + [ + "to-string", + [ + "get", + "reflen" + ] + ] + ], + "icon-rotation-alignment": "viewport", + "text-max-angle": 38, + "symbol-spacing": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 11, + 150, + 16, + 300, + 18, + 1000 + ], + "text-font": [ + "literal", + [ + "Heebo Bold", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": [ + "step", + [ + "zoom" + ], + "point", + 11, + "line" + ], + "text-padding": 2, + "text-rotation-alignment": "viewport", + "icon-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7, + 0.75, + 11, + 0.85 + ], + "text-field": "{ref}", + "text-letter-spacing": 0.05, + "icon-padding": 2 + }, + "paint": { + "text-color": "hsl(0, 0%, 100%)", + "icon-halo-color": "rgba(0, 0, 0, 1)", + "icon-halo-width": 1, + "text-opacity": 1, + "icon-color": "white", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-width": 2, + "text-halo-blur": 0 + } + }, + { + "id": "motorway-junction", + "type": "symbol", + "metadata": { + "mapbox:group": "1444933575858.6992" + }, + "source": "composite", + "source-layer": "motorway_junction", + "minzoom": 14, + "filter": [ + "all", + [ + "<", + "reflen", + 9 + ], + [ + ">", + "reflen", + 0 + ] + ], + "layout": { + "text-transform": "uppercase", + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 6, + 10.25, + 11, + 13.5 + ], + "icon-image": [ + "concat", + "motorway-exit-", + [ + "to-string", + [ + "get", + "reflen" + ] + ] + ], + "text-font": [ + "literal", + [ + "Heebo Bold", + "Arial Unicode MS Regular" + ] + ], + "icon-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 6, + 0.75, + 11, + 1 + ], + "text-letter-spacing": 0.05, + "text-field": "{ref}" + }, + "paint": { + "text-color": "hsl(0, 0%, 100%)", + "text-translate": [ + 0, + 0 + ], + "text-halo-color": "hsla(0, 0%, 92%, 0.25)", + "text-halo-width": 2, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "poi-scalerank2-ethan", + "type": "symbol", + "source": "composite", + "source-layer": "poi_label", + "filter": [ + "all", + [ + "!in", + "maki", + "alcohol-shop", + "art-gallery", + "bakery", + "bank", + "bar", + "beer", + "bicycle", + "bicycle-share", + "cafe", + "car", + "cinema", + "clothing-store", + "dentist", + "doctor", + "dog-park", + "drinking-water", + "embassy", + "fast-food", + "fire-station", + "fuel", + "garden", + "grocery", + "ice-cream", + "laundry", + "lodging", + "music", + "park", + "pharmacy", + "picnic-site", + "place-of-worship", + "police", + "post", + "religious-christian", + "religious-jewish", + "religious-muslim", + "restaurant", + "shop", + "suitcase", + "swimming", + "theatre", + "toilet", + "veterinary" + ], + [ + "==", + "scalerank", + 2 + ] + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 10, + 11, + 18, + 14 + ], + "icon-image": [ + "step", + [ + "zoom" + ], + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-gragg" + ], + 14, + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-gragg" + ] + ], + "text-max-angle": 38, + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Regular", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 2, + "text-offset": [ + 0, + 0.65 + ], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": "{name_en}", + "text-letter-spacing": 0.01, + "text-max-width": 8 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 92%, 0.5)", + "text-halo-blur": 0, + "text-halo-width": 2, + "text-opacity": 1 + } + }, + { + "id": "poi-scalerank2", + "type": "symbol", + "source": "composite", + "source-layer": "poi_label", + "filter": [ + "==", + "scalerank", + 2 + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 16, + 11, + 20, + 13 + ], + "icon-image": [ + "step", + [ + "zoom" + ], + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-11" + ], + 14, + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-15" + ] + ], + "text-max-angle": 38, + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 2, + "visibility": "none", + "text-offset": [ + 0, + 0.65 + ], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": "{name_en}", + "text-letter-spacing": 0.01, + "text-max-width": 8 + }, + "paint": { + "text-color": "#ebebeb", + "text-halo-color": "hsla(0, 0%, 12%, 0.5)", + "text-halo-width": 2, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "rail-label-minor", + "type": "symbol", + "source": "composite", + "source-layer": "rail_station_label", + "minzoom": 15, + "filter": [ + "!in", + "maki", + "entrance", + "rail" + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 16, + 11, + 20, + 13 + ], + "icon-image": [ + "to-string", + [ + "get", + "network" + ] + ], + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Regular", + "Arial Unicode MS Regular" + ] + ], + "text-offset": [ + 0, + 0.85 + ], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": { + "stops": [ + [ + 0, + "" + ], + [ + 13, + "{name_en}" + ] + ] + }, + "text-letter-spacing": 0.01, + "icon-padding": 0, + "text-max-width": 7 + }, + "paint": { + "text-color": "#ebebeb", + "text-halo-color": "hsla(0, 0%, 12%, 0.5)", + "text-halo-width": 2, + "icon-halo-width": 4, + "icon-halo-color": "#fff", + "text-opacity": 1, + "text-halo-blur": 0 + } + }, + { + "id": "rail-label-major", + "type": "symbol", + "source": "composite", + "source-layer": "rail_station_label", + "minzoom": 14, + "filter": [ + "all", + [ + "!=", + "maki", + "entrance" + ], + [ + "!in", + "maki", + "rail-light", + "rail-metro" + ] + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 16, + 11, + 20, + 13 + ], + "icon-image": [ + "to-string", + [ + "get", + "network" + ] + ], + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Regular", + "Arial Unicode MS Regular" + ] + ], + "text-offset": [ + 0, + 0.85 + ], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": { + "stops": [ + [ + 0, + "" + ], + [ + 13, + "{name_en}" + ] + ] + }, + "text-letter-spacing": 0.01, + "icon-padding": 0, + "text-max-width": 7 + }, + "paint": { + "text-color": "#ebebeb", + "text-halo-color": "hsla(0, 0%, 12%, 0.5)", + "text-halo-width": 2, + "icon-halo-width": 4, + "icon-halo-color": "#fff", + "text-opacity": 1, + "text-halo-blur": 0 + } + }, + { + "id": "poi-scalerank1-ethan", + "type": "symbol", + "source": "composite", + "source-layer": "poi_label", + "minzoom": 8, + "filter": [ + "all", + [ + "!in", + "maki", + "alcohol-shop", + "art-gallery", + "bakery", + "bank", + "bar", + "beer", + "bicycle", + "bicycle-share", + "cafe", + "car", + "cinema", + "clothing-store", + "dentist", + "doctor", + "dog-park", + "drinking-water", + "embassy", + "fast-food", + "fire-station", + "fuel", + "garden", + "grocery", + "ice-cream", + "laundry", + "lodging", + "music", + "park", + "pharmacy", + "picnic-site", + "place-of-worship", + "police", + "post", + "religious-christian", + "religious-jewish", + "religious-muslim", + "restaurant", + "shop", + "suitcase", + "swimming", + "theatre", + "toilet", + "veterinary" + ], + [ + "==", + "scalerank", + 1 + ] + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 10, + 11, + 18, + 16 + ], + "icon-image": [ + "step", + [ + "zoom" + ], + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-gragg" + ], + 14, + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-gragg" + ] + ], + "text-max-angle": 38, + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 2, + "text-offset": [ + 0, + 0.65 + ], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": "{name_en}", + "text-letter-spacing": 0.01, + "text-max-width": 8 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "#ebebeb", + "text-halo-blur": 0, + "text-halo-width": 1, + "text-opacity": 1 + } + }, + { + "id": "poi-scalerank1", + "type": "symbol", + "source": "composite", + "source-layer": "poi_label", + "filter": [ + "==", + "scalerank", + 1 + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 16, + 11, + 20, + 13 + ], + "icon-image": [ + "step", + [ + "zoom" + ], + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-11" + ], + 14, + [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-15" + ] + ], + "text-max-angle": 38, + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 2, + "visibility": "none", + "text-offset": [ + 0, + 0.65 + ], + "text-rotation-alignment": "viewport", + "text-anchor": "top", + "text-field": "{name_en}", + "text-letter-spacing": 0.01, + "text-max-width": 8 + }, + "paint": { + "text-color": "#ebebeb", + "text-halo-color": "hsla(0, 0%, 12%, 0.5)", + "text-halo-width": 2, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "airport-label", + "type": "symbol", + "source": "composite", + "source-layer": "airport_label", + "minzoom": 8.8, + "filter": [ + "<=", + "scalerank", + 2 + ], + "layout": { + "text-line-height": 1.1, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 10, + 12, + 18, + 18 + ], + "icon-image": [ + "concat", + [ + "to-string", + [ + "get", + "maki" + ] + ], + "-gragg" + ], + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 2, + "text-offset": [ + 0, + 0.75 + ], + "text-rotation-alignment": "viewport", + "icon-size": 1, + "text-anchor": "top", + "text-field": { + "stops": [ + [ + 0, + "{ref}" + ], + [ + 12, + "{name_en}" + ] + ] + }, + "text-letter-spacing": 0.01, + "text-max-width": 9 + }, + "paint": { + "text-color": "hsl(0, 0%, 12%)", + "text-halo-color": "hsla(311, 0%, 92%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "icon-opacity": 1, + "text-opacity": 1 + } + }, + { + "id": "place-islet-archipelago-aboriginal", + "type": "symbol", + "source": "composite", + "source-layer": "place_label", + "maxzoom": 16, + "filter": [ + "in", + "type", + "aboriginal_lands", + "archipelago", + "islet" + ], + "layout": { + "text-line-height": 1.2, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 10, + 11, + 18, + 16 + ], + "icon-image": "dot-gragg", + "text-max-angle": 38, + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-padding": 2, + "text-offset": [ + 0.5, + 0 + ], + "text-rotation-alignment": "viewport", + "icon-size": 0.55, + "text-anchor": "left", + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 8 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "place-neighbourhood", + "type": "symbol", + "source": "composite", + "source-layer": "place_label", + "minzoom": 10, + "maxzoom": 14, + "filter": [ + "==", + "type", + "neighbourhood" + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 12, + 10.5, + 16, + 16 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-padding": 3, + "text-offset": [ + 0.5, + 0 + ], + "icon-size": 0.55, + "text-anchor": "left", + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-suburb", + "type": "symbol", + "source": "composite", + "source-layer": "place_label", + "minzoom": 7, + "maxzoom": 13, + "filter": [ + "==", + "type", + "suburb" + ], + "layout": { + "text-size": 14, + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-padding": 3, + "text-offset": [ + 0.5, + 0 + ], + "icon-size": 0.55, + "text-anchor": "left", + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-hamlet", + "type": "symbol", + "source": "composite", + "source-layer": "place_label", + "minzoom": 10, + "maxzoom": 13, + "filter": [ + "==", + "type", + "hamlet" + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 11, + 11, + 15, + 13 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + 0.5, + 0 + ], + "icon-size": 0.55, + "text-anchor": "left", + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-village", + "type": "symbol", + "source": "composite", + "source-layer": "place_label", + "minzoom": 7.75, + "maxzoom": 13, + "filter": [ + "==", + "type", + "village" + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 10, + 11, + 16, + 16 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + 0.5, + 0 + ], + "icon-size": 0.55, + "text-anchor": "left", + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-town", + "type": "symbol", + "source": "composite", + "source-layer": "place_label", + "minzoom": 6.5, + "maxzoom": 13, + "filter": [ + "==", + "type", + "town" + ], + "layout": { + "text-size": [ + "interpolate", + [ + "linear" + ], + [ + "zoom" + ], + 6.5, + 10, + 14, + 13 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7, + [ + "literal", + [ + 0.5, + 0 + ] + ], + 8, + [ + "literal", + [ + 0.5, + 0 + ] + ] + ], + "icon-size": 0.55, + "text-anchor": [ + "step", + [ + "zoom" + ], + "left", + 8, + "left" + ], + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-blur": 0, + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "icon-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + 1, + 8, + 1 + ], + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-island", + "type": "symbol", + "source": "composite", + "source-layer": "place_label", + "maxzoom": 13, + "filter": [ + "==", + "type", + "island" + ], + "layout": { + "text-line-height": 1.2, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 8, + 11, + 18, + 16 + ], + "icon-image": "dot-gragg", + "text-max-angle": 38, + "text-transform": "uppercase", + "symbol-spacing": 250, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 2, + "text-offset": [ + 0, + 0 + ], + "text-rotation-alignment": "viewport", + "icon-size": 0.55, + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 7 + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "place-city-sm", + "type": "symbol", + "metadata": { + "mapbox:group": "1444862510685.128" + }, + "source": "composite", + "source-layer": "place_label", + "minzoom": 5, + "maxzoom": 14, + "filter": [ + "all", + [ + "!in", + "scalerank", + 0, + 1, + 2, + 3, + 4, + 5 + ], + [ + "==", + "type", + "city" + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 4, + 10, + 14, + 17 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + [ + "literal", + [ + 0.5, + 0 + ] + ], + 8, + [ + "literal", + [ + 0.5, + 0 + ] + ] + ], + "icon-size": 0.55, + "text-anchor": [ + "step", + [ + "zoom" + ], + "left", + 8, + "left" + ], + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "icon-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + 1, + 8, + 1 + ], + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-city-md-s", + "type": "symbol", + "metadata": { + "mapbox:group": "1444862510685.128" + }, + "source": "composite", + "source-layer": "place_label", + "maxzoom": 14, + "filter": [ + "all", + [ + "==", + "type", + "city" + ], + [ + "in", + "ldir", + "E", + "S", + "SE", + "SW" + ], + [ + "in", + "scalerank", + 3, + 4, + 5 + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 0.9 + ], + [ + "zoom" + ], + 4, + 11, + 12, + 18 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + [ + "literal", + [ + 0.5, + 0 + ] + ], + 8, + [ + "literal", + [ + 0.5, + 0 + ] + ] + ], + "icon-size": 0.55, + "text-anchor": [ + "step", + [ + "zoom" + ], + "left", + 8, + "left" + ], + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-width": 1.5, + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "icon-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + 1, + 8, + 1 + ], + "text-halo-blur": 0, + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-city-md-n", + "type": "symbol", + "metadata": { + "mapbox:group": "1444862510685.128" + }, + "source": "composite", + "source-layer": "place_label", + "minzoom": 5, + "maxzoom": 14, + "filter": [ + "all", + [ + "==", + "type", + "city" + ], + [ + "in", + "ldir", + "N", + "NE", + "NW", + "W" + ], + [ + "in", + "scalerank", + 3, + 4, + 5 + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 0.9 + ], + [ + "zoom" + ], + 4, + 11, + 12, + 18 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + [ + "literal", + [ + 0.5, + 0 + ] + ], + 8, + [ + "literal", + [ + 0.5, + 0 + ] + ] + ], + "icon-size": 0.55, + "text-anchor": [ + "step", + [ + "zoom" + ], + "left", + 8, + "left" + ], + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-blur": 0, + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "icon-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + 1, + 8, + 1 + ], + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-city-lg-s", + "type": "symbol", + "metadata": { + "mapbox:group": "1444862510685.128" + }, + "source": "composite", + "source-layer": "place_label", + "minzoom": 1, + "maxzoom": 14, + "filter": [ + "all", + [ + "<=", + "scalerank", + 2 + ], + [ + "==", + "type", + "city" + ], + [ + "in", + "ldir", + "E", + "S", + "SE", + "SW" + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 0.9 + ], + [ + "zoom" + ], + 3, + 11, + 10, + 16 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + [ + "literal", + [ + 0.5, + 0 + ] + ], + 8, + [ + "literal", + [ + 0.5, + 0 + ] + ] + ], + "icon-size": 0.55, + "text-anchor": [ + "step", + [ + "zoom" + ], + "left", + 8, + "left" + ], + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-blur": 0, + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "icon-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + 1, + 8, + 1 + ], + "text-color": "#1e1e1e", + "text-opacity": 1 + } + }, + { + "id": "place-city-lg-n", + "type": "symbol", + "metadata": { + "mapbox:group": "1444862510685.128" + }, + "source": "composite", + "source-layer": "place_label", + "maxzoom": 14, + "filter": [ + "all", + [ + "<=", + "scalerank", + 2 + ], + [ + "==", + "type", + "city" + ], + [ + "in", + "ldir", + "N", + "NE", + "NW", + "W" + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 0, + 11, + 12, + 16 + ], + "icon-image": "dot-gragg", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-justify": "left", + "text-offset": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + [ + "literal", + [ + 0.5, + 0 + ] + ], + 8, + [ + "literal", + [ + 0.5, + 0 + ] + ] + ], + "icon-size": 0.55, + "text-anchor": [ + "step", + [ + "zoom" + ], + "left", + 8, + "left" + ], + "text-field": "{name_en}", + "text-letter-spacing": 0.05, + "text-max-width": 15 + }, + "paint": { + "text-halo-blur": 0, + "text-opacity": 1, + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "icon-opacity": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 7.99, + 1, + 8, + 1 + ], + "text-color": "#1e1e1e" + } + }, + { + "id": "marine-label-sm-ln", + "type": "symbol", + "metadata": { + "mapbox:group": "0a3559da8864e237159b28b286b084eb" + }, + "source": "composite", + "source-layer": "marine_label", + "minzoom": 3, + "maxzoom": 10, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + ">=", + "labelrank", + 4 + ] + ], + "layout": { + "text-line-height": 1.5, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 1, + 6, + 4, + 12 + ], + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": "line", + "visibility": "visible", + "text-field": "{name_en}", + "text-letter-spacing": 0.25, + "text-max-width": 4 + }, + "paint": { + "text-color": "hsl(0, 0%, 92%)", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-blur": 0, + "text-opacity": 1, + "text-halo-width": 2 + } + }, + { + "id": "marine-label-sm-pt", + "type": "symbol", + "metadata": { + "mapbox:group": "0a3559da8864e237159b28b286b084eb" + }, + "source": "composite", + "source-layer": "marine_label", + "minzoom": 3, + "maxzoom": 10, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + ">=", + "labelrank", + 4 + ] + ], + "layout": { + "visibility": "visible", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 1, + 6, + 4, + 12 + ], + "text-letter-spacing": 0.25, + "text-line-height": 1.5, + "text-max-width": 4, + "text-field": "{name_en}" + }, + "paint": { + "text-color": "hsl(0, 0%, 92%)", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-blur": 0, + "text-opacity": 1, + "text-halo-width": 2 + } + }, + { + "id": "marine-label-md-ln", + "type": "symbol", + "metadata": { + "mapbox:group": "0a3559da8864e237159b28b286b084eb" + }, + "source": "composite", + "source-layer": "marine_label", + "minzoom": 2, + "maxzoom": 8, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "in", + "labelrank", + 2, + 3 + ] + ], + "layout": { + "text-line-height": 1.5, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 1, + 8, + 4, + 14 + ], + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": "line", + "visibility": "visible", + "text-field": "{name_en}", + "text-letter-spacing": 0.25, + "text-max-width": 4 + }, + "paint": { + "text-color": "hsl(0, 0%, 92%)", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-blur": 0, + "text-opacity": 1, + "text-halo-width": 2 + } + }, + { + "id": "marine-label-md-pt", + "type": "symbol", + "metadata": { + "mapbox:group": "0a3559da8864e237159b28b286b084eb" + }, + "source": "composite", + "source-layer": "marine_label", + "minzoom": 2, + "maxzoom": 8, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "in", + "labelrank", + 2, + 3 + ] + ], + "layout": { + "visibility": "visible", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 1, + 8, + 4, + 14 + ], + "text-letter-spacing": 0.25, + "text-line-height": 1.5, + "text-max-width": 4, + "text-field": "{name_en}" + }, + "paint": { + "text-color": "hsl(0, 0%, 92%)", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-blur": 0, + "text-opacity": 1, + "text-halo-width": 2 + } + }, + { + "id": "marine-label-lg-ln", + "type": "symbol", + "metadata": { + "mapbox:group": "0a3559da8864e237159b28b286b084eb" + }, + "source": "composite", + "source-layer": "marine_label", + "minzoom": 1, + "maxzoom": 4, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "labelrank", + 1 + ] + ], + "layout": { + "text-line-height": 1.5, + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 1, + 10, + 4, + 20 + ], + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "symbol-placement": "line", + "visibility": "visible", + "text-field": "{name_en}", + "text-letter-spacing": 0.25, + "text-max-width": 4 + }, + "paint": { + "text-color": "hsl(0, 0%, 92%)", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-blur": 0, + "text-opacity": 1, + "text-halo-width": 2 + } + }, + { + "id": "marine-label-lg-pt", + "type": "symbol", + "metadata": { + "mapbox:group": "0a3559da8864e237159b28b286b084eb" + }, + "source": "composite", + "source-layer": "marine_label", + "minzoom": 1, + "maxzoom": 4, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "labelrank", + 1 + ] + ], + "layout": { + "visibility": "visible", + "text-transform": "uppercase", + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 1, + 10, + 4, + 20 + ], + "text-letter-spacing": 0.25, + "text-line-height": 1.5, + "text-max-width": 4, + "text-field": "{name_en}" + }, + "paint": { + "text-color": "hsl(0, 0%, 92%)", + "text-halo-color": "hsla(0, 0%, 92%, 0)", + "text-halo-blur": 0, + "text-opacity": 1, + "text-halo-width": 2 + } + }, + { + "id": "state-label-sm", + "type": "symbol", + "metadata": { + "mapbox:group": "1444856151690.9143" + }, + "source": "composite", + "source-layer": "state_label", + "minzoom": 4, + "maxzoom": 9, + "filter": [ + "<", + "area", + 20000 + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 6, + 11, + 9, + 14 + ], + "text-max-width": 5, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-field": { + "stops": [ + [ + 0, + "{abbr}" + ], + [ + 6, + "{name_en}" + ] + ] + }, + "text-letter-spacing": 0.15, + "text-transform": "uppercase" + }, + "paint": { + "text-opacity": 1, + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0 + } + }, + { + "id": "state-label-md", + "type": "symbol", + "metadata": { + "mapbox:group": "1444856151690.9143" + }, + "source": "composite", + "source-layer": "state_label", + "minzoom": 4, + "maxzoom": 8, + "filter": [ + "all", + [ + "<", + "area", + 80000 + ], + [ + ">=", + "area", + 20000 + ] + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 5, + 11, + 8, + 16 + ], + "text-max-width": 6, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-field": { + "stops": [ + [ + 0, + "{abbr}" + ], + [ + 6, + "{name_en}" + ] + ] + }, + "text-letter-spacing": 0.15, + "text-transform": "uppercase" + }, + "paint": { + "text-opacity": 1, + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0 + } + }, + { + "id": "state-label-lg", + "type": "symbol", + "metadata": { + "mapbox:group": "1444856151690.9143" + }, + "source": "composite", + "source-layer": "state_label", + "minzoom": 4, + "maxzoom": 6.75, + "filter": [ + ">=", + "area", + 80000 + ], + "layout": { + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 4, + 11, + 7, + 18 + ], + "text-max-width": 6, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-padding": 1, + "text-field": { + "stops": [ + [ + 0, + "{abbr}" + ], + [ + 6, + "{name_en}" + ] + ] + }, + "text-letter-spacing": 0.15, + "text-transform": "uppercase" + }, + "paint": { + "text-halo-width": 1.5, + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-opacity": 1, + "text-halo-blur": 0 + } + }, + { + "id": "country-label-sm", + "type": "symbol", + "source": "composite", + "source-layer": "country_label", + "minzoom": 1, + "maxzoom": 10, + "filter": [ + ">=", + "scalerank", + 5 + ], + "layout": { + "text-transform": "uppercase", + "text-max-width": 6, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-size": [ + "interpolate", + [ + "exponential", + 0.9 + ], + [ + "zoom" + ], + 5, + 10, + 9, + 22 + ], + "text-field": "{name_en}" + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "country-label-md", + "type": "symbol", + "source": "composite", + "source-layer": "country_label", + "minzoom": 1.5, + "maxzoom": 7, + "filter": [ + "in", + "scalerank", + 3, + 4 + ], + "layout": { + "text-field": { + "stops": [ + [ + 0, + "{code}" + ], + [ + 2, + "{name_en}" + ] + ] + }, + "text-max-width": 6, + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 3, + 10, + 8, + 24 + ], + "text-transform": "uppercase" + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-opacity": 1 + } + }, + { + "id": "country-label-lg", + "type": "symbol", + "source": "composite", + "source-layer": "country_label", + "minzoom": 1, + "maxzoom": 6, + "filter": [ + "in", + "scalerank", + 1, + 2 + ], + "layout": { + "text-transform": "uppercase", + "text-max-width": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 0, + 5, + 3, + 6 + ], + "text-font": [ + "literal", + [ + "Heebo Medium", + "Arial Unicode MS Regular" + ] + ], + "text-size": [ + "interpolate", + [ + "exponential", + 1 + ], + [ + "zoom" + ], + 1, + 11, + 6, + 24 + ], + "text-field": "{name_en}" + }, + "paint": { + "text-color": "#1e1e1e", + "text-halo-color": "hsla(0, 0%, 100%, 0.5)", + "text-halo-width": 1.5, + "text-halo-blur": 0, + "text-opacity": 1 + } + } + ], + "created": "2018-08-10T01:49:01.678Z", + "id": "cjknc24na2o5u2sqoy0t8ku8a", + "modified": "2018-08-24T20:08:36.632Z", + "owner": "accuweather-inc", + "visibility": "private", + "draft": false +} \ No newline at end of file diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/SimpleMapActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/SimpleMapActivity.java index a1f7b4af01..1e13e92a8c 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/SimpleMapActivity.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/SimpleMapActivity.java @@ -3,8 +3,20 @@ package com.mapbox.mapboxsdk.testapp.activity.maplayout; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; +import android.view.Menu; +import android.view.MenuItem; +import com.mapbox.mapboxsdk.constants.Style; import com.mapbox.mapboxsdk.maps.MapView; +import com.mapbox.mapboxsdk.maps.MapboxMap; +import com.mapbox.mapboxsdk.maps.OnMapReadyCallback; +import com.mapbox.mapboxsdk.style.layers.SymbolLayer; import com.mapbox.mapboxsdk.testapp.R; +import timber.log.Timber; + +import java.util.Locale; + +import static com.mapbox.mapboxsdk.style.expressions.Expression.*; +import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.textField; /** * Test activity showcasing a simple MapView without any MapboxMap interaction. @@ -12,13 +24,79 @@ import com.mapbox.mapboxsdk.testapp.R; public class SimpleMapActivity extends AppCompatActivity { private MapView mapView; + private MapboxMap mapboxMap; + private String language; + + private static final String[] LAYER_IDS = new String[] { + "poi-scalerank3", "road-label-small", "road-label-medium", "road-label-large", "poi-scalerank2-ethan", + "rail-label-minor", "rail-label-major", "poi-scalerank1-ethan", "airport-label", + "place-islet-archipelago-aboriginal", "place-neighbourhood", "place-suburb", "place-hamlet", "place-village", + "place-town", "place-island", "place-city-sm", "place-city-md-s", "place-city-md-n", "place-city-lg-s", + "place-city-lg-n", "marine-label-sm-ln", "marine-label-sm-pt", "marine-label-md-ln", "marine-label-md-pt", + "marine-label-lg-ln", "marine-label-lg-pt", "state-label-sm", "state-label-md", "state-label-lg", + "country-label-sm", "country-label-md", "country-label-lg" + }; + + private static final String NAME_TEMPLATE = "{name_%s}"; + private static final String ERROR_TEMPLATE = "Layer unavailable %s"; + + private long startExecutionTime; + private long endExecutionTime; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_map_simple); - mapView = (MapView) findViewById(R.id.mapView); + mapView = findViewById(R.id.mapView); + mapView.setStyleUrl("asset://style.json"); mapView.onCreate(savedInstanceState); + mapView.getMapAsync(map -> { + mapboxMap = map; + language = Locale.getDefault().getLanguage(); + changeLocale(); + }); + } + + private void changeLocale() { + startExecutionTime = android.os.SystemClock.uptimeMillis(); + for (String layerId : LAYER_IDS) { + convertLayerLocale(layerId); + } + endExecutionTime = android.os.SystemClock.uptimeMillis(); + long totalExecutionTime = endExecutionTime - startExecutionTime; + Timber.e("Converting Locale for %s took: %s ms", language, totalExecutionTime); + } + + private void convertLayerLocale(String layerId) { + SymbolLayer symbolLayer = mapboxMap.getLayerAs(layerId); + if (symbolLayer != null) { + symbolLayer.setProperties( + textField(String.format(NAME_TEMPLATE, language)) + ); + } else { + Timber.e(ERROR_TEMPLATE, layerId); + } + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.menu_language_select, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getItemId() == R.id.menu_action_spanish) { + language = "es"; + } else if (item.getItemId() == R.id.menu_action_german) { + language = "ru"; + } else if (item.getItemId() == R.id.menu_action_english) { + language = "en"; + } else { + return super.onOptionsItemSelected(item); + } + changeLocale(); + return true; } @Override @@ -62,4 +140,4 @@ public class SimpleMapActivity extends AppCompatActivity { super.onSaveInstanceState(outState); mapView.onSaveInstanceState(outState); } -} +} \ No newline at end of file diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_language_select.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_language_select.xml new file mode 100644 index 0000000000..d6f916b757 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_language_select.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file -- cgit v1.2.1