From 4f3fe7be428c72bf0c534e50430c2267ca295c55 Mon Sep 17 00:00:00 2001 From: lukasmartinelli Date: Sat, 6 Aug 2016 23:31:02 +0200 Subject: [PATCH] Format with mapbox format tool to ensure always same JSON --- osm-liberty.json | 8166 +++++++++++++++++++++++----------------------- 1 file changed, 4091 insertions(+), 4075 deletions(-) diff --git a/osm-liberty.json b/osm-liberty.json index 45f1a89..afbfdb1 100644 --- a/osm-liberty.json +++ b/osm-liberty.json @@ -1,4082 +1,4098 @@ { - "version": 8, - "name": "OSM Liberty", - "metadata": { - "mapbox:type": "template", - "mapbox:groups": { - "group_road": { - "name": "Road", - "collapsed": false - }, - "1444849364238.8171": { - "name": "Building", - "collapsed": true - }, - "group_state_label": { - "name": "State Label", - "collapsed": false - }, - "group_tunnel": { - "name": "Tunnel", - "collapsed": true - }, - "group_bridge": { - "name": "Bridge", - "collapsed": true - }, - "group_boundary": { - "name": "Boundary", - "collapsed": false - }, - "group_country_label": { - "name": "Country Label", - "collapsed": false - }, - "group_water_label": { - "name": "Water Label", - "collapsed": true - }, - "group_aeroway": { - "name": "Aeroway", - "collapsed": true - }, - "group_road_label": { - "name": "Road Label", - "collapsed": false - }, - "group_water": { - "name": "Water", - "collapsed": false - }, - "group_marine_label": { - "name": "Marine Label", - "collapsed": true - }, - "group_landuse": { - "name": "Landuse", - "collapsed": false - }, - "group_place_label": { - "name": "Place Label", - "collapsed": false - }, - "group_poi_label": { - "name": "POI Label", - "collapsed": false - } - } + "version": 8, + "name": "OSM Liberty", + "metadata": { + "mapbox:groups": { + "1444849364238.8171": { + "collapsed": true, + "name": "Building" + }, + "group_aeroway": { + "collapsed": true, + "name": "Aeroway" + }, + "group_boundary": { + "collapsed": true, + "name": "Boundary" + }, + "group_bridge": { + "collapsed": true, + "name": "Bridge" + }, + "group_country_label": { + "collapsed": true, + "name": "Country Label" + }, + "group_landuse": { + "collapsed": false, + "name": "Landuse" + }, + "group_marine_label": { + "collapsed": true, + "name": "Marine Label" + }, + "group_place_label": { + "collapsed": true, + "name": "Place Label" + }, + "group_poi_label": { + "collapsed": true, + "name": "POI Label" + }, + "group_road": { + "collapsed": true, + "name": "Road" + }, + "group_road_label": { + "collapsed": true, + "name": "Road Label" + }, + "group_state_label": { + "collapsed": true, + "name": "State Label" + }, + "group_tunnel": { + "collapsed": true, + "name": "Tunnel" + }, + "group_water": { + "collapsed": true, + "name": "Water" + }, + "group_water_label": { + "collapsed": true, + "name": "Water Label" + } }, - "sources": { - "osm2vectortiles": { - "url": "https://osm2vectortiles.tileserver.com/v2.json", - "type": "vector" - }, - "natural_earth_shaded_relief": { - "tiles": [ - "http://naturalearthtiles.org/tiles/natural_earth_2_shaded_relief.raster/{z}/{x}/{y}.webp" - ], - "type": "raster", - "tileSize": 256, - "maxzoom": 6 - } + "mapbox:type": "template" + }, + "sources": { + "natural_earth_shaded_relief": { + "maxzoom": 6, + "tileSize": 256, + "tiles": [ + "http://naturalearthtiles.org/tiles/natural_earth_2_shaded_relief.raster/{z}/{x}/{y}.webp" + ], + "type": "raster" }, - "sprite": "http://osm-liberty.lukasmartinelli.ch/sprites/osm-liberty", - "glyphs": "http://osm-liberty.lukasmartinelli.ch/fonts/{fontstack}/{range}.pbf", - "layers": [ - { - "id": "background", - "type": "background", - "interactive": true, - "paint": { - "background-color": "rgb(229,229,229)" - } - }, - { - "id": "natural_earth", - "type": "raster", - "source": "natural_earth_shaded_relief", - "maxzoom": 6, - "interactive": true, - "layout": { - "visibility": "visible" - }, - "paint": { - "raster-opacity": { - "base": 1.5, - "stops": [ - [ - 0, - 0.6 - ], - [ - 6, - 0.1 - ] - ] - } - } - }, - { - "id": "landuse_overlay_national_park", - "type": "fill", - "metadata": { - "mapbox:group": "group_landuse" - }, - "source": "osm2vectortiles", - "source-layer": "landuse_overlay", - "interactive": true, - "filter": [ - "==", - "class", - "national_park" - ], - "paint": { - "fill-color": "#d8e8c8", - "fill-opacity": 0.7 - } - }, - { - "id": "landuse_park", - "type": "fill", - "metadata": { - "mapbox:group": "group_landuse" - }, - "source": "osm2vectortiles", - "source-layer": "landuse", - "interactive": true, - "filter": [ - "==", - "class", - "park" - ], - "paint": { - "fill-color": "hsla(98, 61%, 72%, 0.7)", - "fill-antialias": false - } - }, - { - "id": "landuse_cemetery", - "type": "fill", - "metadata": { - "mapbox:group": "group_landuse" - }, - "source": "osm2vectortiles", - "source-layer": "landuse", - "interactive": true, - "filter": [ - "==", - "class", - "cemetery" - ], - "paint": { - "fill-color": "#e0e4dd" - } - }, - { - "id": "landuse_hospital", - "type": "fill", - "metadata": { - "mapbox:group": "group_landuse" - }, - "source": "osm2vectortiles", - "source-layer": "landuse", - "interactive": true, - "filter": [ - "==", - "class", - "hospital" - ], - "paint": { - "fill-color": "#fde" - } - }, - { - "id": "landuse_school", - "type": "fill", - "metadata": { - "mapbox:group": "group_landuse" - }, - "source": "osm2vectortiles", - "source-layer": "landuse", - "interactive": true, - "filter": [ - "==", - "class", - "school" - ], - "paint": { - "fill-color": "#f0e8f8" - } - }, - { - "id": "landuse_wood", - "type": "fill", - "metadata": { - "mapbox:group": "group_landuse" - }, - "source": "osm2vectortiles", - "source-layer": "landuse", - "interactive": true, - "filter": [ - "==", - "class", - "wood" - ], - "paint": { - "fill-color": "hsl(91, 83%, 35%)", - "fill-opacity": { - "base": 1, - "stops": [ - [ - 6, - 0.1 - ], - [ - 9, - 0.2 - ] - ] - }, - "fill-antialias": false - } - }, - { - "id": "waterway", - "type": "line", - "metadata": { - "mapbox:group": "group_water" - }, - "source": "osm2vectortiles", - "source-layer": "waterway", - "interactive": true, - "filter": [ - "all", - [ - "!=", - "class", - "canal" - ], - [ - "!=", - "class", - "river" - ], - [ - "!=", - "class", - "stream" - ] - ], - "layout": { - "line-cap": "round" - }, - "paint": { - "line-color": "#a0c8f0", - "line-width": { - "base": 1.3, - "stops": [ - [ - 13, - 0.5 - ], - [ - 20, - 2 - ] - ] - } - } - }, - { - "id": "waterway_river", - "type": "line", - "metadata": { - "mapbox:group": "group_water" - }, - "source": "osm2vectortiles", - "source-layer": "waterway", - "interactive": true, - "filter": [ - "==", - "class", - "river" - ], - "layout": { - "line-cap": "round" - }, - "paint": { - "line-color": "#a0c8f0", - "line-width": { - "base": 1.2, - "stops": [ - [ - 11, - 0.5 - ], - [ - 20, - 6 - ] - ] - } - } - }, - { - "id": "waterway_stream_canal", - "type": "line", - "metadata": { - "mapbox:group": "group_water" - }, - "source": "osm2vectortiles", - "source-layer": "waterway", - "interactive": true, - "filter": [ - "in", - "class", - "canal", - "stream" - ], - "layout": { - "line-cap": "round" - }, - "paint": { - "line-color": "#a0c8f0", - "line-width": { - "base": 1.3, - "stops": [ - [ - 13, - 0.5 - ], - [ - 20, - 6 - ] - ] - } - } - }, - { - "id": "water", - "type": "fill", - "metadata": { - "mapbox:group": "group_water" - }, - "source": "osm2vectortiles", - "source-layer": "water", - "interactive": true, - "paint": { - "fill-color": "hsl(228, 100%, 85%)" - } - }, - { - "id": "aeroway_fill", - "type": "fill", - "metadata": { - "mapbox:group": "group_aeroway" - }, - "source": "osm2vectortiles", - "source-layer": "aeroway", - "minzoom": 11, - "interactive": true, - "filter": [ - "==", - "$type", - "Polygon" - ], - "paint": { - "fill-color": "#f0ede9", - "fill-opacity": 0.7 - } - }, - { - "id": "aeroway_runway", - "type": "line", - "metadata": { - "mapbox:group": "group_aeroway" - }, - "source": "osm2vectortiles", - "source-layer": "aeroway", - "minzoom": 11, - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "==", - "type", - "runway" - ] - ], - "paint": { - "line-color": "#f0ede9", - "line-width": { - "base": 1.2, - "stops": [ - [ - 11, - 3 - ], - [ - 20, - 16 - ] - ] - } - } - }, - { - "id": "aeroway_taxiway", - "type": "line", - "metadata": { - "mapbox:group": "group_aeroway" - }, - "source": "osm2vectortiles", - "source-layer": "aeroway", - "minzoom": 11, - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "==", - "type", - "taxiway" - ] - ], - "paint": { - "line-color": "#f0ede9", - "line-width": { - "base": 1.2, - "stops": [ - [ - 11, - 0.5 - ], - [ - 20, - 6 - ] - ] - } - } - }, - { - "id": "building", - "type": "fill", - "metadata": { - "mapbox:group": "1444849364238.8171" - }, - "source": "osm2vectortiles", - "source-layer": "building", - "interactive": true, - "paint": { - "fill-color": "hsla(30, 1%, 73%, 0.44)" - } - }, - { - "id": "building_top", - "metadata": { - "mapbox:group": "1444849364238.8171" - }, - "ref": "building", - "interactive": true, - "paint": { - "fill-color": "rgb(236,236,236)", - "fill-opacity": 1, - "fill-translate": { - "base": 1, - "stops": [ - [ - 16, - [ - 1, - 1 - ] - ], - [ - 18, - [ - 3, - 3 - ] - ] - ] - }, - "fill-outline-color": "hsla(30, 1%, 73%, 0.19)" - } - }, - { - "id": "tunnel_motorway_link_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "class", - "motorway_link" - ], - [ - "==", - "structure", - "tunnel" - ] - ], - "layout": { - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-color": "#e9ac77", - "line-dasharray": [ - 0.5, - 0.25 - ], - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "tunnel_service_track_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "tunnel" - ], - [ - "in", - "class", - "service", - "track" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#cfcdca", - "line-dasharray": [ - 0.5, - 0.25 - ], - "line-width": { - "base": 1.2, - "stops": [ - [ - 15, - 1 - ], - [ - 16, - 4 - ], - [ - 20, - 11 - ] - ] - } - } - }, - { - "id": "tunnel_link_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "class", - "link" - ], - [ - "==", - "structure", - "tunnel" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "tunnel_street_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "tunnel" - ], - [ - "in", - "class", - "street", - "street_limited" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#cfcdca", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 0.5 - ], - [ - 13, - 1 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": { - "stops": [ - [ - 12, - 0 - ], - [ - 12.5, - 1 - ] - ] - } - } - }, - { - "id": "tunnel_secondary_tertiary_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "tunnel" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 8, - 1.5 - ], - [ - 20, - 17 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "tunnel_trunk_primary_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "tunnel" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] - ] - } - } - }, - { - "id": "tunnel_motorway_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "==", - "structure", - "tunnel" - ] - ], - "layout": { - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-color": "#e9ac77", - "line-dasharray": [ - 0.5, - 0.25 - ], - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] - ] - } - } - }, - { - "id": "tunnel_path_pedestrian", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "all", - [ - "==", - "structure", - "tunnel" - ], - [ - "in", - "class", - "path", - "pedestrian" - ] - ] - ], - "paint": { - "line-color": "#cba", - "line-dasharray": [ - 1.5, - 0.75 - ], - "line-width": { - "base": 1.2, - "stops": [ - [ - 15, - 1.2 - ], - [ - 20, - 4 - ] - ] - } - } - }, - { - "id": "tunnel_motorway_link", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_motorway_link_casing", - "interactive": true, - "paint": { - "line-color": "#fc8", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - } - } - }, - { - "id": "tunnel_service_track", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_service_track_casing", - "interactive": true, - "paint": { - "line-color": "#fff", - "line-width": { - "base": 1.2, - "stops": [ - [ - 15.5, - 0 - ], - [ - 16, - 2 - ], - [ - 20, - 7.5 - ] - ] - } - } - }, - { - "id": "tunnel_link", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_link_casing", - "interactive": true, - "paint": { - "line-color": "#fff4c6", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - } - } - }, - { - "id": "tunnel_street", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_street_casing", - "interactive": true, - "paint": { - "line-color": "#fff", - "line-width": { - "base": 1.2, - "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "tunnel_secondary_tertiary", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_secondary_tertiary_casing", - "interactive": true, - "paint": { - "line-color": "#fff4c6", - "line-width": { - "base": 1.2, - "stops": [ - [ - 6.5, - 0 - ], - [ - 7, - 0.5 - ], - [ - 20, - 10 - ] - ] - } - } - }, - { - "id": "tunnel_trunk_primary", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_trunk_primary_casing", - "interactive": true, - "paint": { - "line-color": "#fff4c6", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] - ] - } - } - }, - { - "id": "tunnel_motorway", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_motorway_casing", - "interactive": true, - "paint": { - "line-color": "#ffdaa6", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] - ] - } - } - }, - { - "id": "tunnel_major_rail", - "type": "line", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "tunnel" - ], - [ - "in", - "class", - "major_rail", - "minor_rail" - ] - ], - "paint": { - "line-color": "#bbb", - "line-width": { - "base": 1.4, - "stops": [ - [ - 14, - 0.4 - ], - [ - 15, - 0.75 - ], - [ - 20, - 2 - ] - ] - } - } - }, - { - "id": "tunnel_major_rail_hatching", - "metadata": { - "mapbox:group": "group_tunnel" - }, - "ref": "tunnel_major_rail", - "interactive": true, - "paint": { - "line-color": "#bbb", - "line-dasharray": [ - 0.2, - 8 - ], - "line-width": { - "base": 1.4, - "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] - ] - } - } - }, - { - "id": "road_motorway_link_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "minzoom": 12, - "interactive": true, - "filter": [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "motorway_link" - ] - ], - "layout": { - "line-cap": "round", - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "road_service_track_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "service", - "track" - ] - ], - "layout": { - "line-cap": "round", - "line-join": "round" - }, - "paint": { - "line-color": "#cfcdca", - "line-width": { - "base": 1.2, - "stops": [ - [ - 15, - 1 - ], - [ - 16, - 4 - ], - [ - 20, - 11 - ] - ] - } - } - }, - { - "id": "road_link_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "minzoom": 13, - "interactive": true, - "filter": [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "link" - ] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "road_street_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "street", - "street_limited" - ] - ] - ], - "layout": { - "line-cap": "round", - "line-join": "round" - }, - "paint": { - "line-color": "#cfcdca", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 0.5 - ], - [ - 13, - 1 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": { - "stops": [ - [ - 12, - 0 - ], - [ - 12.5, - 1 - ] - ] - } - } - }, - { - "id": "road_secondary_tertiary_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 8, - 1.5 - ], - [ - 20, - 17 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "road_trunk_primary_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "road_motorway_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "minzoom": 5, - "interactive": true, - "filter": [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "motorway" - ] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] - ] - } - } - }, - { - "id": "road_path_pedestrian", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "path", - "pedestrian" - ] - ] - ], - "paint": { - "line-color": "#cba", - "line-dasharray": [ - 1.5, - 0.75 - ], - "line-width": { - "base": 1.2, - "stops": [ - [ - 15, - 1.2 - ], - [ - 20, - 4 - ] - ] - } - } - }, - { - "id": "road_motorway_link", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_motorway_link_casing", - "interactive": true, - "paint": { - "line-color": "#fc8", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - } - } - }, - { - "id": "road_service_track", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_service_track_casing", - "interactive": true, - "paint": { - "line-color": "#fff", - "line-width": { - "base": 1.2, - "stops": [ - [ - 15.5, - 0 - ], - [ - 16, - 2 - ], - [ - 20, - 7.5 - ] - ] - } - } - }, - { - "id": "road_link", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_link_casing", - "interactive": true, - "paint": { - "line-color": "#fea", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - } - } - }, - { - "id": "road_street", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_street_casing", - "interactive": true, - "paint": { - "line-color": "#fff", - "line-width": { - "base": 1.2, - "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "road_secondary_tertiary", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_secondary_tertiary_casing", - "interactive": true, - "paint": { - "line-color": "#fea", - "line-width": { - "base": 1.2, - "stops": [ - [ - 6.5, - 0 - ], - [ - 8, - 0.5 - ], - [ - 20, - 13 - ] - ] - } - } - }, - { - "id": "road_trunk_primary", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_trunk_primary_casing", - "interactive": true, - "paint": { - "line-color": "#fea", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] - ] - } - } - }, - { - "id": "road_motorway", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_motorway_casing", - "interactive": true, - "paint": { - "line-color": "#fc8", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] - ] - } - } - }, - { - "id": "road_major_rail", - "type": "line", - "metadata": { - "mapbox:group": "group_road" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "!in", - "structure", - "bridge", - "tunnel" - ], - [ - "==", - "class", - "major_rail" - ] - ], - "paint": { - "line-color": "#bbb", - "line-width": { - "base": 1.4, - "stops": [ - [ - 14, - 0.4 - ], - [ - 15, - 0.75 - ], - [ - 20, - 2 - ] - ] - } - } - }, - { - "id": "road_major_rail_hatching", - "metadata": { - "mapbox:group": "group_road" - }, - "ref": "road_major_rail", - "interactive": true, - "paint": { - "line-color": "#bbb", - "line-dasharray": [ - 0.2, - 8 - ], - "line-width": { - "base": 1.4, - "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] - ] - } - } - }, - { - "id": "bridge_motorway_link_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "class", - "motorway_link" - ], - [ - "==", - "structure", - "bridge" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "bridge_service_track_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "bridge" - ], - [ - "in", - "class", - "service", - "track" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#cfcdca", - "line-width": { - "base": 1.2, - "stops": [ - [ - 15, - 1 - ], - [ - 16, - 4 - ], - [ - 20, - 11 - ] - ] - } - } - }, - { - "id": "bridge_link_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "class", - "link" - ], - [ - "==", - "structure", - "bridge" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 1 - ], - [ - 13, - 3 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "bridge_street_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "bridge" - ], - [ - "in", - "class", - "street", - "street_limited" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#cfcdca", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12, - 0.5 - ], - [ - 13, - 1 - ], - [ - 14, - 4 - ], - [ - 20, - 15 - ] - ] - }, - "line-opacity": { - "stops": [ - [ - 12, - 0 - ], - [ - 12.5, - 1 - ] - ] - } - } - }, - { - "id": "bridge_secondary_tertiary_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "bridge" - ], - [ - "in", - "class", - "secondary", - "tertiary" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 8, - 1.5 - ], - [ - 20, - 17 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "bridge_trunk_primary_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "structure", - "bridge" - ], - [ - "in", - "class", - "primary", - "trunk" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] - ] - } - } - }, - { - "id": "bridge_motorway_casing", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "class", - "motorway" - ], - [ - "==", - "structure", - "bridge" - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#e9ac77", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0.4 - ], - [ - 6, - 0.7 - ], - [ - 7, - 1.75 - ], - [ - 20, - 22 - ] - ] - } - } - }, - { - "id": "bridge_path_pedestrian", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "all", - [ - "==", - "structure", - "bridge" - ], - [ - "in", - "class", - "path", - "pedestrian" - ] - ] - ], - "paint": { - "line-color": "#cba", - "line-dasharray": [ - 1.5, - 0.75 - ], - "line-width": { - "base": 1.2, - "stops": [ - [ - 15, - 1.2 - ], - [ - 20, - 4 - ] - ] - } - } - }, - { - "id": "bridge_motorway_link", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_motorway_link_casing", - "interactive": true, - "paint": { - "line-color": "#fc8", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - } - } - }, - { - "id": "bridge_service_track", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_service_track_casing", - "interactive": true, - "paint": { - "line-color": "#fff", - "line-width": { - "base": 1.2, - "stops": [ - [ - 15.5, - 0 - ], - [ - 16, - 2 - ], - [ - 20, - 7.5 - ] - ] - } - } - }, - { - "id": "bridge_link", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_link_casing", - "interactive": true, - "paint": { - "line-color": "#fea", - "line-width": { - "base": 1.2, - "stops": [ - [ - 12.5, - 0 - ], - [ - 13, - 1.5 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - } - } - }, - { - "id": "bridge_street", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_street_casing", - "interactive": true, - "paint": { - "line-color": "#fff", - "line-width": { - "base": 1.2, - "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 2.5 - ], - [ - 20, - 11.5 - ] - ] - }, - "line-opacity": 1 - } - }, - { - "id": "bridge_secondary_tertiary", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_secondary_tertiary_casing", - "interactive": true, - "paint": { - "line-color": "#fea", - "line-width": { - "base": 1.2, - "stops": [ - [ - 6.5, - 0 - ], - [ - 7, - 0.5 - ], - [ - 20, - 10 - ] - ] - } - } - }, - { - "id": "bridge_trunk_primary", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_trunk_primary_casing", - "interactive": true, - "paint": { - "line-color": "#fea", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] - ] - } - } - }, - { - "id": "bridge_motorway", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_motorway_casing", - "interactive": true, - "paint": { - "line-color": "#fc8", - "line-width": { - "base": 1.2, - "stops": [ - [ - 5, - 0 - ], - [ - 7, - 1 - ], - [ - 20, - 18 - ] - ] - } - } - }, - { - "id": "bridge_major_rail", - "type": "line", - "metadata": { - "mapbox:group": "group_bridge" - }, - "source": "osm2vectortiles", - "source-layer": "road", - "interactive": true, - "filter": [ - "all", - [ - "==", - "class", - "major_rail" - ], - [ - "==", - "structure", - "bridge" - ] - ], - "paint": { - "line-color": "#bbb", - "line-width": { - "base": 1.4, - "stops": [ - [ - 14, - 0.4 - ], - [ - 15, - 0.75 - ], - [ - 20, - 2 - ] - ] - } - } - }, - { - "id": "bridge_major_rail_hatching", - "metadata": { - "mapbox:group": "group_bridge" - }, - "ref": "bridge_major_rail", - "interactive": true, - "paint": { - "line-color": "#bbb", - "line-dasharray": [ - 0.2, - 8 - ], - "line-width": { - "base": 1.4, - "stops": [ - [ - 14.5, - 0 - ], - [ - 15, - 3 - ], - [ - 20, - 8 - ] - ] - } - } - }, - { - "id": "admin_level_3", - "type": "line", - "metadata": { - "mapbox:group": "group_boundary" - }, - "source": "osm2vectortiles", - "source-layer": "admin", - "interactive": true, - "filter": [ - "all", - [ - "==", - "maritime", - 0 - ], - [ - ">=", - "admin_level", - 3 - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#9e9cab", - "line-dasharray": [ - 5, - 1 - ], - "line-width": { - "base": 1, - "stops": [ - [ - 4, - 0.4 - ], - [ - 5, - 1 - ], - [ - 12, - 1.8 - ] - ] - } - } - }, - { - "id": "admin_level_2", - "type": "line", - "metadata": { - "mapbox:group": "group_boundary" - }, - "source": "osm2vectortiles", - "source-layer": "admin", - "interactive": true, - "filter": [ - "all", - [ - "==", - "admin_level", - 2 - ], - [ - "==", - "disputed", - 0 - ], - [ - "==", - "maritime", - 0 - ] - ], - "layout": { - "line-join": "round", - "line-cap": "round" - }, - "paint": { - "line-color": "hsl(248, 1%, 41%)", - "line-width": { - "base": 1, - "stops": [ - [ - 3, - 1 - ], - [ - 5, - 1.2 - ], - [ - 12, - 3 - ] - ] - }, - "line-opacity": { - "base": 1, - "stops": [ - [ - 0, - 0.4 - ], - [ - 4, - 1 - ] - ] - } - } - }, - { - "id": "admin_level_2_disputed", - "type": "line", - "metadata": { - "mapbox:group": "group_boundary" - }, - "source": "osm2vectortiles", - "source-layer": "admin", - "interactive": true, - "filter": [ - "all", - [ - "==", - "admin_level", - 2 - ], - [ - "==", - "disputed", - 1 - ], - [ - "==", - "maritime", - 0 - ] - ], - "layout": { - "line-cap": "round" - }, - "paint": { - "line-color": "#9e9cab", - "line-dasharray": [ - 2, - 2 - ], - "line-width": { - "base": 1, - "stops": [ - [ - 4, - 1.4 - ], - [ - 5, - 2 - ], - [ - 12, - 8 - ] - ] - } - } - }, - { - "id": "admin_level_3_maritime", - "type": "line", - "metadata": { - "mapbox:group": "group_boundary" - }, - "source": "osm2vectortiles", - "source-layer": "admin", - "interactive": true, - "filter": [ - "all", - [ - "==", - "maritime", - 1 - ], - [ - ">=", - "admin_level", - 3 - ] - ], - "layout": { - "line-join": "round" - }, - "paint": { - "line-color": "#a0c8f0", - "line-opacity": 0.5, - "line-dasharray": [ - 3, - 1, - 1, - 1 - ], - "line-width": { - "base": 1, - "stops": [ - [ - 4, - 0.4 - ], - [ - 5, - 1 - ], - [ - 12, - 3 - ] - ] - } - } - }, - { - "id": "admin_level_2_maritime", - "type": "line", - "metadata": { - "mapbox:group": "group_boundary" - }, - "source": "osm2vectortiles", - "source-layer": "admin", - "interactive": true, - "filter": [ - "all", - [ - "==", - "admin_level", - 2 - ], - [ - "==", - "maritime", - 1 - ] - ], - "layout": { - "line-cap": "round" - }, - "paint": { - "line-color": "#a0c8f0", - "line-opacity": 0.5, - "line-width": { - "base": 1, - "stops": [ - [ - 4, - 1.4 - ], - [ - 5, - 2 - ], - [ - 12, - 8 - ] - ] - } - } - }, - { - "id": "water_label", - "type": "symbol", - "metadata": { - "mapbox:group": "group_water_label" - }, - "source": "osm2vectortiles", - "source-layer": "water_label", - "interactive": true, - "filter": [ - "==", - "$type", - "Point" - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-max-width": 5, - "text-size": 12 - }, - "paint": { - "text-color": "#5d60be", - "text-halo-width": 1, - "text-halo-color": "rgba(255,255,255,0.7)" - } - }, - { - "id": "poi_label_4", - "type": "symbol", - "metadata": { - "mapbox:group": "group_poi_label" - }, - "source": "osm2vectortiles", - "source-layer": "poi_label", - "minzoom": 16, - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "scalerank", - 4 - ] - ], - "layout": { - "icon-image": "{maki}-11", - "text-font": [ - "Roboto Regular" - ], - "text-field": "{name_en}", - "text-max-width": 9, - "text-padding": 2, - "text-offset": [ - 0, - 0.6 - ], - "text-anchor": "top", - "text-size": 12 - }, - "paint": { - "text-color": "#666", - "text-halo-color": "#ffffff", - "text-halo-width": 1, - "text-halo-blur": 0.5 - } - }, - { - "id": "poi_label_3", - "type": "symbol", - "metadata": { - "mapbox:group": "group_poi_label" - }, - "source": "osm2vectortiles", - "source-layer": "poi_label", - "minzoom": 15, - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "scalerank", - 3 - ] - ], - "layout": { - "icon-image": "{maki}-11", - "text-font": [ - "Open Sans Semibold" - ], - "text-field": "{name_en}", - "text-max-width": 9, - "text-padding": 2, - "text-offset": [ - 0, - 0.6 - ], - "text-anchor": "top", - "text-size": 12 - }, - "paint": { - "text-color": "#666", - "text-halo-color": "#ffffff", - "text-halo-width": 1, - "text-halo-blur": 0.5 - } - }, - { - "id": "poi_label_2", - "type": "symbol", - "metadata": { - "mapbox:group": "group_poi_label" - }, - "source": "osm2vectortiles", - "source-layer": "poi_label", - "minzoom": 14, - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "scalerank", - 2 - ] - ], - "layout": { - "icon-image": "{maki}-11", - "text-font": [ - "Open Sans Semibold" - ], - "text-field": "{name_en}", - "text-max-width": 9, - "text-padding": 2, - "text-offset": [ - 0, - 0.6 - ], - "text-anchor": "top", - "text-size": 12 - }, - "paint": { - "text-color": "#666", - "text-halo-color": "#ffffff", - "text-halo-width": 1, - "text-halo-blur": 0.5 - } - }, - { - "id": "rail_station_label", - "type": "symbol", - "metadata": { - "mapbox:group": "group_poi_label" - }, - "source": "osm2vectortiles", - "source-layer": "rail_station_label", - "interactive": true, - "layout": { - "text-size": 12, - "icon-image": "{maki}-11", - "text-font": [ - "Open Sans Semibold" - ], - "text-padding": 2, - "visibility": "visible", - "text-offset": [ - 0, - 0.6 - ], - "text-anchor": "top", - "text-field": "{name_en}", - "text-max-width": 9 - }, - "paint": { - "text-color": "#4898ff", - "text-halo-color": "#ffffff", - "text-halo-width": 1, - "text-halo-blur": 0.5 - } - }, - { - "id": "poi_label_1", - "type": "symbol", - "metadata": { - "mapbox:group": "group_poi_label" - }, - "source": "osm2vectortiles", - "source-layer": "poi_label", - "minzoom": 13, - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "scalerank", - 1 - ] - ], - "layout": { - "icon-image": "{maki}-11", - "text-font": [ - "Open Sans Semibold" - ], - "text-field": "{name_en}", - "text-max-width": 9, - "text-padding": 2, - "text-offset": [ - 0, - 0.6 - ], - "text-anchor": "top", - "text-size": 12 - }, - "paint": { - "text-color": "#666", - "text-halo-color": "#ffffff", - "text-halo-width": 1, - "text-halo-blur": 0.5 - } - }, - { - "id": "airport_label", - "type": "symbol", - "metadata": { - "mapbox:group": "group_poi_label" - }, - "source": "osm2vectortiles", - "source-layer": "airport_label", - "minzoom": 11, - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "in", - "scalerank", - 1, - 2, - 3 - ] - ], - "layout": { - "icon-image": "{maki}-11", - "text-font": [ - "Open Sans Semibold" - ], - "text-field": "{name_en}", - "text-max-width": 9, - "text-padding": 2, - "text-offset": [ - 0, - 0.6 - ], - "text-anchor": "top", - "text-size": 12 - }, - "paint": { - "text-color": "#666", - "text-halo-color": "#ffffff", - "text-halo-width": 1, - "text-halo-blur": 0.5 - } - }, - { - "id": "road_label", - "type": "symbol", - "metadata": { - "mapbox:group": "group_road_label" - }, - "source": "osm2vectortiles", - "source-layer": "road_label", - "interactive": true, - "filter": [ - "!=", - "class", - "ferry" - ], - "layout": { - "text-field": "{name_en}", - "symbol-placement": "line", - "text-size": { - "base": 1, - "stops": [ - [ - 13, - 12 - ], - [ - 14, - 13 - ] - ] - }, - "text-font": [ - "Roboto Regular" - ], - "text-anchor": "center", - "text-offset": [ - 0, - 0.15 - ] - }, - "paint": { - "text-color": "#765", - "text-halo-width": 1, - "text-halo-blur": 0.5 - } - }, - { - "id": "road_label_highway_shield", - "type": "symbol", - "metadata": { - "mapbox:group": "group_road_label" - }, - "source": "osm2vectortiles", - "source-layer": "road_label", - "minzoom": 8, - "interactive": true, - "filter": [ - "<=", - "reflen", - 6 - ], - "layout": { - "text-size": 10, - "icon-image": "default-{reflen}", - "icon-rotation-alignment": "viewport", - "symbol-spacing": 500, - "text-font": [ - "Roboto Regular" - ], - "symbol-placement": { - "base": 1, - "stops": [ - [ - 10, - "point" - ], - [ - 11, - "line" - ] - ] - }, - "text-offset": [ - 0, - 0.1 - ], - "text-rotation-alignment": "viewport", - "text-field": "{ref}" - }, - "paint": {} - }, - { - "id": "place_label_other", - "type": "symbol", - "metadata": { - "mapbox:group": "group_place_label" - }, - "source": "osm2vectortiles", - "source-layer": "place_label", - "interactive": true, - "filter": [ - "in", - "type", - "hamlet", - "island", - "islet", - "neighbourhood", - "suburb" - ], - "layout": { - "text-font": [ - "Roboto Condensed Italic" - ], - "text-transform": "uppercase", - "text-letter-spacing": 0.1, - "text-field": "{name_en}", - "text-max-width": 9, - "text-size": { - "base": 1.2, - "stops": [ - [ - 12, - 10 - ], - [ - 15, - 14 - ] - ] - } - }, - "paint": { - "text-color": "#633", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-width": 1.2 - } - }, - { - "id": "place_label_village", - "type": "symbol", - "metadata": { - "mapbox:group": "group_place_label" - }, - "source": "osm2vectortiles", - "source-layer": "place_label", - "interactive": true, - "filter": [ - "==", - "type", - "village" - ], - "layout": { - "text-font": [ - "Roboto Regular" - ], - "text-field": "{name_en}", - "text-max-width": 8, - "text-size": { - "base": 1.2, - "stops": [ - [ - 10, - 12 - ], - [ - 15, - 22 - ] - ] - } - }, - "paint": { - "text-color": "#333", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-width": 1.2 - } - }, - { - "id": "place_label_town", - "type": "symbol", - "metadata": { - "mapbox:group": "group_place_label" - }, - "source": "osm2vectortiles", - "source-layer": "place_label", - "interactive": true, - "filter": [ - "==", - "type", - "town" - ], - "layout": { - "text-font": [ - "Roboto Regular" - ], - "text-field": "{name_en}", - "text-max-width": 8, - "text-size": { - "base": 1.2, - "stops": [ - [ - 7, - 12 - ], - [ - 11, - 16 - ] - ] - }, - "icon-image": { - "base": 1, - "stops": [ - [ - 0, - "dot-9" - ], - [ - 8, - "" - ] - ] - }, - "text-anchor": "bottom", - "text-offset": [ - 0, - 0 - ] - }, - "paint": { - "text-color": "#333", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-width": 1.2 - } - }, - { - "id": "place_label_city", - "type": "symbol", - "metadata": { - "mapbox:group": "group_place_label" - }, - "source": "osm2vectortiles", - "source-layer": "place_label", - "minzoom": 5, - "interactive": true, - "filter": [ - "==", - "type", - "city" - ], - "layout": { - "text-font": [ - "Roboto Medium" - ], - "text-field": "{name_en}", - "text-max-width": 8, - "text-size": { - "base": 1.2, - "stops": [ - [ - 7, - 14 - ], - [ - 11, - 24 - ] - ] - }, - "icon-image": { - "base": 1, - "stops": [ - [ - 0, - "dot-9" - ], - [ - 8, - "" - ] - ] - }, - "text-anchor": "bottom", - "text-offset": [ - 0, - 0 - ] - }, - "paint": { - "text-color": "#333", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-width": 1.2 - } - }, - { - "id": "marine_label_line_4", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - ">=", - "labelrank", - 4 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-letter-spacing": 0.2, - "symbol-placement": "line", - "text-size": { - "stops": [ - [ - 3, - 11 - ], - [ - 4, - 12 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "marine_label_4", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - ">=", - "labelrank", - 4 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-max-width": 6, - "text-letter-spacing": 0.2, - "symbol-placement": "point", - "text-size": { - "stops": [ - [ - 3, - 11 - ], - [ - 4, - 12 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "marine_label_line_3", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "==", - "labelrank", - 3 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-letter-spacing": 0.2, - "symbol-placement": "line", - "text-size": { - "stops": [ - [ - 3, - 11 - ], - [ - 4, - 14 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "marine_label_point_3", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "labelrank", - 3 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-max-width": 5, - "text-letter-spacing": 0.2, - "symbol-placement": "point", - "text-size": { - "stops": [ - [ - 3, - 11 - ], - [ - 4, - 14 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "marine_label_line_2", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "==", - "labelrank", - 2 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-letter-spacing": 0.2, - "symbol-placement": "line", - "text-size": { - "stops": [ - [ - 3, - 14 - ], - [ - 4, - 16 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "marine_label_point_2", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "labelrank", - 2 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-max-width": 5, - "text-letter-spacing": 0.2, - "symbol-placement": "point", - "text-size": { - "stops": [ - [ - 3, - 14 - ], - [ - 4, - 16 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "marine_label_line_1", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "==", - "labelrank", - 1 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-letter-spacing": 0.2, - "symbol-placement": "line", - "text-size": { - "stops": [ - [ - 3, - 18 - ], - [ - 4, - 22 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "marine_label_point_1", - "type": "symbol", - "metadata": { - "mapbox:group": "group_marine_label" - }, - "source": "osm2vectortiles", - "source-layer": "marine_label", - "interactive": true, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "labelrank", - 1 - ] - ], - "layout": { - "text-font": [ - "Roboto Italic" - ], - "text-field": "{name_en}", - "text-max-width": 5, - "text-letter-spacing": 0.2, - "text-line-height": 1.6, - "symbol-placement": "point", - "text-offset": [ - 0, - 2.4 - ], - "text-size": { - "stops": [ - [ - 1, - 12 - ], - [ - 4, - 18 - ] - ] - } - }, - "paint": { - "text-color": "hsl(224, 43%, 56%)", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 0.75, - "text-halo-blur": 0.75 - } - }, - { - "id": "state_label", - "type": "symbol", - "metadata": { - "mapbox:group": "group_state_label" - }, - "source": "osm2vectortiles", - "source-layer": "state_label", - "maxzoom": 6, - "interactive": true, - "layout": { - "text-field": "{name}", - "text-font": [ - "Roboto Condensed Italic" - ], - "text-transform": "uppercase", - "text-size": { - "stops": [ - [ - 4, - 11 - ], - [ - 6, - 15 - ] - ] - } - }, - "paint": { - "text-color": "#633", - "text-halo-color": "rgba(255,255,255,0.7)", - "text-halo-width": 1 - } - }, - { - "id": "country_label_4", - "type": "symbol", - "metadata": { - "mapbox:group": "group_country_label" - }, - "source": "osm2vectortiles", - "source-layer": "country_label", - "interactive": true, - "filter": [ - ">=", - "scalerank", - 4 - ], - "layout": { - "text-font": [ - "Roboto Bold" - ], - "text-field": "{name_en}", - "text-max-width": 6.25, - "text-transform": "none", - "text-size": { - "stops": [ - [ - 4, - 11 - ], - [ - 6, - 15 - ] - ] - } - }, - "paint": { - "text-color": "#334", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-blur": 1, - "text-halo-width": 1 - } - }, - { - "id": "country_label_3", - "type": "symbol", - "metadata": { - "mapbox:group": "group_country_label" - }, - "source": "osm2vectortiles", - "source-layer": "country_label", - "interactive": true, - "filter": [ - "==", - "scalerank", - 3 - ], - "layout": { - "text-font": [ - "Roboto Bold" - ], - "text-field": "{name_en}", - "text-max-width": 6.25, - "text-transform": "none", - "text-size": { - "stops": [ - [ - 3, - 11 - ], - [ - 7, - 17 - ] - ] - } - }, - "paint": { - "text-color": "#334", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-blur": 1, - "text-halo-width": 1 - } - }, - { - "id": "country_label_2", - "type": "symbol", - "metadata": { - "mapbox:group": "group_country_label" - }, - "source": "osm2vectortiles", - "source-layer": "country_label", - "interactive": true, - "filter": [ - "==", - "scalerank", - 2 - ], - "layout": { - "text-font": [ - "Roboto Bold" - ], - "text-field": "{name_en}", - "text-max-width": 6.25, - "text-transform": "none", - "text-size": { - "stops": [ - [ - 2, - 11 - ], - [ - 5, - 17 - ] - ] - } - }, - "paint": { - "text-color": "#334", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-blur": 1, - "text-halo-width": 1 - } - }, - { - "id": "country_label_1", - "type": "symbol", - "metadata": { - "mapbox:group": "group_country_label" - }, - "source": "osm2vectortiles", - "source-layer": "country_label", - "interactive": true, - "filter": [ - "==", - "scalerank", + "osm2vectortiles": { + "type": "vector", + "url": "https://osm2vectortiles.tileserver.com/v2.json" + } + }, + "sprite": "http://osm-liberty.lukasmartinelli.ch/sprites/osm-liberty", + "glyphs": "http://osm-liberty.lukasmartinelli.ch/fonts/{fontstack}/{range}.pbf", + "layers": [ + { + "id": "background", + "type": "background", + "interactive": true, + "paint": { + "background-color": "rgb(229,229,229)" + } + }, + { + "id": "natural_earth", + "type": "raster", + "source": "natural_earth_shaded_relief", + "maxzoom": 7, + "interactive": true, + "layout": { + "visibility": "visible" + }, + "paint": { + "raster-opacity": { + "base": 1.4, + "stops": [ + [ + 0, + 0.7 + ], + [ + 5, + 0.4 + ], + [ + 7, + 0 + ] + ] + } + } + }, + { + "id": "landuse_overlay_national_park", + "type": "fill", + "metadata": { + "mapbox:group": "group_landuse" + }, + "source": "osm2vectortiles", + "source-layer": "landuse_overlay", + "interactive": true, + "filter": [ + "==", + "class", + "national_park" + ], + "paint": { + "fill-color": "#d8e8c8", + "fill-opacity": { + "base": 1, + "stops": [ + [ + 4, + 0.3 + ], + [ + 9, + 0.7 + ] + ] + } + } + }, + { + "id": "landuse_park", + "type": "fill", + "metadata": { + "mapbox:group": "group_landuse" + }, + "source": "osm2vectortiles", + "source-layer": "landuse", + "interactive": true, + "filter": [ + "==", + "class", + "park" + ], + "paint": { + "fill-antialias": false, + "fill-color": "hsla(98, 61%, 72%, 0.7)" + } + }, + { + "id": "landuse_cemetery", + "type": "fill", + "metadata": { + "mapbox:group": "group_landuse" + }, + "source": "osm2vectortiles", + "source-layer": "landuse", + "interactive": true, + "filter": [ + "==", + "class", + "cemetery" + ], + "paint": { + "fill-color": "#e0e4dd" + } + }, + { + "id": "landuse_hospital", + "type": "fill", + "metadata": { + "mapbox:group": "group_landuse" + }, + "source": "osm2vectortiles", + "source-layer": "landuse", + "interactive": true, + "filter": [ + "==", + "class", + "hospital" + ], + "paint": { + "fill-color": "#fde" + } + }, + { + "id": "landuse_school", + "type": "fill", + "metadata": { + "mapbox:group": "group_landuse" + }, + "source": "osm2vectortiles", + "source-layer": "landuse", + "interactive": true, + "filter": [ + "==", + "class", + "school" + ], + "paint": { + "fill-color": "#f0e8f8" + } + }, + { + "id": "landuse_wood", + "type": "fill", + "metadata": { + "mapbox:group": "group_landuse" + }, + "source": "osm2vectortiles", + "source-layer": "landuse", + "interactive": true, + "filter": [ + "==", + "class", + "wood" + ], + "paint": { + "fill-antialias": false, + "fill-color": "hsl(91, 83%, 35%)", + "fill-opacity": { + "base": 0.4, + "stops": [ + [ + 6, + 0 + ], + [ + 9, + 0.2 + ] + ] + } + } + }, + { + "id": "waterway", + "type": "line", + "metadata": { + "mapbox:group": "group_water" + }, + "source": "osm2vectortiles", + "source-layer": "waterway", + "interactive": true, + "filter": [ + "all", + [ + "!=", + "class", + "canal" + ], + [ + "!=", + "class", + "river" + ], + [ + "!=", + "class", + "stream" + ] + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-color": "#a0c8f0", + "line-width": { + "base": 1.3, + "stops": [ + [ + 13, + 0.5 + ], + [ + 20, + 2 + ] + ] + } + } + }, + { + "id": "waterway_river", + "type": "line", + "metadata": { + "mapbox:group": "group_water" + }, + "source": "osm2vectortiles", + "source-layer": "waterway", + "interactive": true, + "filter": [ + "==", + "class", + "river" + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-color": "#a0c8f0", + "line-width": { + "base": 1.2, + "stops": [ + [ + 11, + 0.5 + ], + [ + 20, + 6 + ] + ] + } + } + }, + { + "id": "waterway_stream_canal", + "type": "line", + "metadata": { + "mapbox:group": "group_water" + }, + "source": "osm2vectortiles", + "source-layer": "waterway", + "interactive": true, + "filter": [ + "in", + "class", + "canal", + "stream" + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-color": "#a0c8f0", + "line-width": { + "base": 1.3, + "stops": [ + [ + 13, + 0.5 + ], + [ + 20, + 6 + ] + ] + } + } + }, + { + "id": "water", + "type": "fill", + "metadata": { + "mapbox:group": "group_water" + }, + "source": "osm2vectortiles", + "source-layer": "water", + "interactive": true, + "paint": { + "fill-color": "hsl(228, 100%, 85%)" + } + }, + { + "id": "aeroway_fill", + "type": "fill", + "metadata": { + "mapbox:group": "group_aeroway" + }, + "source": "osm2vectortiles", + "source-layer": "aeroway", + "minzoom": 11, + "interactive": true, + "filter": [ + "==", + "$type", + "Polygon" + ], + "paint": { + "fill-color": "#f0ede9", + "fill-opacity": 0.7 + } + }, + { + "id": "aeroway_runway", + "type": "line", + "metadata": { + "mapbox:group": "group_aeroway" + }, + "source": "osm2vectortiles", + "source-layer": "aeroway", + "minzoom": 11, + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "type", + "runway" + ] + ], + "paint": { + "line-color": "#f0ede9", + "line-width": { + "base": 1.2, + "stops": [ + [ + 11, + 3 + ], + [ + 20, + 16 + ] + ] + } + } + }, + { + "id": "aeroway_taxiway", + "type": "line", + "metadata": { + "mapbox:group": "group_aeroway" + }, + "source": "osm2vectortiles", + "source-layer": "aeroway", + "minzoom": 11, + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "type", + "taxiway" + ] + ], + "paint": { + "line-color": "#f0ede9", + "line-width": { + "base": 1.2, + "stops": [ + [ + 11, + 0.5 + ], + [ + 20, + 6 + ] + ] + } + } + }, + { + "id": "building", + "type": "fill", + "metadata": { + "mapbox:group": "1444849364238.8171" + }, + "source": "osm2vectortiles", + "source-layer": "building", + "interactive": true, + "paint": { + "fill-color": "hsla(30, 1%, 73%, 0.44)" + } + }, + { + "id": "building_top", + "metadata": { + "mapbox:group": "1444849364238.8171" + }, + "ref": "building", + "interactive": true, + "paint": { + "fill-color": "rgb(236,236,236)", + "fill-opacity": 1, + "fill-outline-color": "hsla(30, 1%, 73%, 0.19)", + "fill-translate": { + "base": 1, + "stops": [ + [ + 16, + [ + 1, 1 + ] ], - "layout": { - "text-font": [ - "Roboto Bold" - ], - "text-field": "{name_en}", - "text-max-width": 6.25, - "text-transform": "none", - "text-size": { - "stops": [ - [ - 1, - 11 - ], - [ - 4, - 17 - ] - ] - } - }, - "paint": { - "text-color": "#334", - "text-halo-color": "rgba(255,255,255,0.8)", - "text-halo-blur": 1, - "text-halo-width": 1 - } + [ + 18, + [ + 3, + 3 + ] + ] + ] } - ] + } + }, + { + "id": "tunnel_motorway_link_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "tunnel" + ] + ], + "layout": { + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-color": "#e9ac77", + "line-dasharray": [ + 0.5, + 0.25 + ], + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "tunnel_service_track_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "service", + "track" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cfcdca", + "line-dasharray": [ + 0.5, + 0.25 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1 + ], + [ + 16, + 4 + ], + [ + 20, + 11 + ] + ] + } + } + }, + { + "id": "tunnel_link_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "class", + "link" + ], + [ + "==", + "structure", + "tunnel" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "tunnel_street_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "street", + "street_limited" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cfcdca", + "line-opacity": { + "stops": [ + [ + 12, + 0 + ], + [ + 12.5, + 1 + ] + ] + }, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 0.5 + ], + [ + 13, + 1 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "tunnel_secondary_tertiary_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 8, + 1.5 + ], + [ + 20, + 17 + ] + ] + } + } + }, + { + "id": "tunnel_trunk_primary_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "primary", + "trunk" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] + } + } + }, + { + "id": "tunnel_motorway_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "tunnel" + ] + ], + "layout": { + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-color": "#e9ac77", + "line-dasharray": [ + 0.5, + 0.25 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] + } + } + }, + { + "id": "tunnel_path_pedestrian", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "path", + "pedestrian" + ] + ] + ], + "paint": { + "line-color": "#cba", + "line-dasharray": [ + 1.5, + 0.75 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1.2 + ], + [ + 20, + 4 + ] + ] + } + } + }, + { + "id": "tunnel_motorway_link", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_motorway_link_casing", + "interactive": true, + "paint": { + "line-color": "#fc8", + "line-width": { + "base": 1.2, + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "tunnel_service_track", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_service_track_casing", + "interactive": true, + "paint": { + "line-color": "#fff", + "line-width": { + "base": 1.2, + "stops": [ + [ + 15.5, + 0 + ], + [ + 16, + 2 + ], + [ + 20, + 7.5 + ] + ] + } + } + }, + { + "id": "tunnel_link", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_link_casing", + "interactive": true, + "paint": { + "line-color": "#fff4c6", + "line-width": { + "base": 1.2, + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "tunnel_street", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_street_casing", + "interactive": true, + "paint": { + "line-color": "#fff", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 13.5, + 0 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "tunnel_secondary_tertiary", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_secondary_tertiary_casing", + "interactive": true, + "paint": { + "line-color": "#fff4c6", + "line-width": { + "base": 1.2, + "stops": [ + [ + 6.5, + 0 + ], + [ + 7, + 0.5 + ], + [ + 20, + 10 + ] + ] + } + } + }, + { + "id": "tunnel_trunk_primary", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_trunk_primary_casing", + "interactive": true, + "paint": { + "line-color": "#fff4c6", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } + } + }, + { + "id": "tunnel_motorway", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_motorway_casing", + "interactive": true, + "paint": { + "line-color": "#ffdaa6", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } + } + }, + { + "id": "tunnel_major_rail", + "type": "line", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "tunnel" + ], + [ + "in", + "class", + "major_rail", + "minor_rail" + ] + ], + "paint": { + "line-color": "#bbb", + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } + } + }, + { + "id": "tunnel_major_rail_hatching", + "metadata": { + "mapbox:group": "group_tunnel" + }, + "ref": "tunnel_major_rail", + "interactive": true, + "paint": { + "line-color": "#bbb", + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } + } + }, + { + "id": "road_motorway_link_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "minzoom": 12, + "interactive": true, + "filter": [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway_link" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "road_service_track_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "service", + "track" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "#cfcdca", + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1 + ], + [ + 16, + 4 + ], + [ + 20, + 11 + ] + ] + } + } + }, + { + "id": "road_link_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "minzoom": 13, + "interactive": true, + "filter": [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "link" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "road_street_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "street", + "street_limited" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "#cfcdca", + "line-opacity": { + "stops": [ + [ + 12, + 0 + ], + [ + 12.5, + 1 + ] + ] + }, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 0.5 + ], + [ + 13, + 1 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "road_secondary_tertiary_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 8, + 1.5 + ], + [ + 20, + 17 + ] + ] + } + } + }, + { + "id": "road_trunk_primary_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "primary", + "trunk" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] + } + } + }, + { + "id": "road_motorway_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "minzoom": 5, + "interactive": true, + "filter": [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "motorway" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-color": "#e9ac77", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] + } + } + }, + { + "id": "road_path_pedestrian", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "path", + "pedestrian" + ] + ] + ], + "paint": { + "line-color": "#cba", + "line-dasharray": [ + 1.5, + 0.75 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1.2 + ], + [ + 20, + 4 + ] + ] + } + } + }, + { + "id": "road_motorway_link", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_motorway_link_casing", + "interactive": true, + "paint": { + "line-color": "#fc8", + "line-width": { + "base": 1.2, + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "road_service_track", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_service_track_casing", + "interactive": true, + "paint": { + "line-color": "#fff", + "line-width": { + "base": 1.2, + "stops": [ + [ + 15.5, + 0 + ], + [ + 16, + 2 + ], + [ + 20, + 7.5 + ] + ] + } + } + }, + { + "id": "road_link", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_link_casing", + "interactive": true, + "paint": { + "line-color": "#fea", + "line-width": { + "base": 1.2, + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "road_street", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_street_casing", + "interactive": true, + "paint": { + "line-color": "#fff", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 13.5, + 0 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "road_secondary_tertiary", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_secondary_tertiary_casing", + "interactive": true, + "paint": { + "line-color": "#fea", + "line-width": { + "base": 1.2, + "stops": [ + [ + 6.5, + 0 + ], + [ + 8, + 0.5 + ], + [ + 20, + 13 + ] + ] + } + } + }, + { + "id": "road_trunk_primary", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_trunk_primary_casing", + "interactive": true, + "paint": { + "line-color": "#fea", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } + } + }, + { + "id": "road_motorway", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_motorway_casing", + "interactive": true, + "paint": { + "line-color": "#fc8", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } + } + }, + { + "id": "road_major_rail", + "type": "line", + "metadata": { + "mapbox:group": "group_road" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "!in", + "structure", + "bridge", + "tunnel" + ], + [ + "==", + "class", + "major_rail" + ] + ], + "paint": { + "line-color": "#bbb", + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } + } + }, + { + "id": "road_major_rail_hatching", + "metadata": { + "mapbox:group": "group_road" + }, + "ref": "road_major_rail", + "interactive": true, + "paint": { + "line-color": "#bbb", + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } + } + }, + { + "id": "bridge_motorway_link_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "class", + "motorway_link" + ], + [ + "==", + "structure", + "bridge" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "bridge_service_track_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "service", + "track" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cfcdca", + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1 + ], + [ + 16, + 4 + ], + [ + 20, + 11 + ] + ] + } + } + }, + { + "id": "bridge_link_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "class", + "link" + ], + [ + "==", + "structure", + "bridge" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 1 + ], + [ + 13, + 3 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "bridge_street_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "street", + "street_limited" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#cfcdca", + "line-opacity": { + "stops": [ + [ + 12, + 0 + ], + [ + 12.5, + 1 + ] + ] + }, + "line-width": { + "base": 1.2, + "stops": [ + [ + 12, + 0.5 + ], + [ + 13, + 1 + ], + [ + 14, + 4 + ], + [ + 20, + 15 + ] + ] + } + } + }, + { + "id": "bridge_secondary_tertiary_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "secondary", + "tertiary" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 8, + 1.5 + ], + [ + 20, + 17 + ] + ] + } + } + }, + { + "id": "bridge_trunk_primary_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "primary", + "trunk" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] + } + } + }, + { + "id": "bridge_motorway_casing", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "class", + "motorway" + ], + [ + "==", + "structure", + "bridge" + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#e9ac77", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0.4 + ], + [ + 6, + 0.7 + ], + [ + 7, + 1.75 + ], + [ + 20, + 22 + ] + ] + } + } + }, + { + "id": "bridge_path_pedestrian", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "==", + "structure", + "bridge" + ], + [ + "in", + "class", + "path", + "pedestrian" + ] + ] + ], + "paint": { + "line-color": "#cba", + "line-dasharray": [ + 1.5, + 0.75 + ], + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1.2 + ], + [ + 20, + 4 + ] + ] + } + } + }, + { + "id": "bridge_motorway_link", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_motorway_link_casing", + "interactive": true, + "paint": { + "line-color": "#fc8", + "line-width": { + "base": 1.2, + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "bridge_service_track", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_service_track_casing", + "interactive": true, + "paint": { + "line-color": "#fff", + "line-width": { + "base": 1.2, + "stops": [ + [ + 15.5, + 0 + ], + [ + 16, + 2 + ], + [ + 20, + 7.5 + ] + ] + } + } + }, + { + "id": "bridge_link", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_link_casing", + "interactive": true, + "paint": { + "line-color": "#fea", + "line-width": { + "base": 1.2, + "stops": [ + [ + 12.5, + 0 + ], + [ + 13, + 1.5 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "bridge_street", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_street_casing", + "interactive": true, + "paint": { + "line-color": "#fff", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 13.5, + 0 + ], + [ + 14, + 2.5 + ], + [ + 20, + 11.5 + ] + ] + } + } + }, + { + "id": "bridge_secondary_tertiary", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_secondary_tertiary_casing", + "interactive": true, + "paint": { + "line-color": "#fea", + "line-width": { + "base": 1.2, + "stops": [ + [ + 6.5, + 0 + ], + [ + 7, + 0.5 + ], + [ + 20, + 10 + ] + ] + } + } + }, + { + "id": "bridge_trunk_primary", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_trunk_primary_casing", + "interactive": true, + "paint": { + "line-color": "#fea", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } + } + }, + { + "id": "bridge_motorway", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_motorway_casing", + "interactive": true, + "paint": { + "line-color": "#fc8", + "line-width": { + "base": 1.2, + "stops": [ + [ + 5, + 0 + ], + [ + 7, + 1 + ], + [ + 20, + 18 + ] + ] + } + } + }, + { + "id": "bridge_major_rail", + "type": "line", + "metadata": { + "mapbox:group": "group_bridge" + }, + "source": "osm2vectortiles", + "source-layer": "road", + "interactive": true, + "filter": [ + "all", + [ + "==", + "class", + "major_rail" + ], + [ + "==", + "structure", + "bridge" + ] + ], + "paint": { + "line-color": "#bbb", + "line-width": { + "base": 1.4, + "stops": [ + [ + 14, + 0.4 + ], + [ + 15, + 0.75 + ], + [ + 20, + 2 + ] + ] + } + } + }, + { + "id": "bridge_major_rail_hatching", + "metadata": { + "mapbox:group": "group_bridge" + }, + "ref": "bridge_major_rail", + "interactive": true, + "paint": { + "line-color": "#bbb", + "line-dasharray": [ + 0.2, + 8 + ], + "line-width": { + "base": 1.4, + "stops": [ + [ + 14.5, + 0 + ], + [ + 15, + 3 + ], + [ + 20, + 8 + ] + ] + } + } + }, + { + "id": "admin_level_3", + "type": "line", + "metadata": { + "mapbox:group": "group_boundary" + }, + "source": "osm2vectortiles", + "source-layer": "admin", + "interactive": true, + "filter": [ + "all", + [ + "==", + "maritime", + 0 + ], + [ + ">=", + "admin_level", + 3 + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#9e9cab", + "line-dasharray": [ + 5, + 1 + ], + "line-width": { + "base": 1, + "stops": [ + [ + 4, + 0.4 + ], + [ + 5, + 1 + ], + [ + 12, + 1.8 + ] + ] + } + } + }, + { + "id": "admin_level_2", + "type": "line", + "metadata": { + "mapbox:group": "group_boundary" + }, + "source": "osm2vectortiles", + "source-layer": "admin", + "interactive": true, + "filter": [ + "all", + [ + "==", + "admin_level", + 2 + ], + [ + "==", + "disputed", + 0 + ], + [ + "==", + "maritime", + 0 + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "hsl(248, 1%, 41%)", + "line-opacity": { + "base": 1, + "stops": [ + [ + 0, + 0.4 + ], + [ + 4, + 1 + ] + ] + }, + "line-width": { + "base": 1, + "stops": [ + [ + 3, + 1 + ], + [ + 5, + 1.2 + ], + [ + 12, + 3 + ] + ] + } + } + }, + { + "id": "admin_level_2_disputed", + "type": "line", + "metadata": { + "mapbox:group": "group_boundary" + }, + "source": "osm2vectortiles", + "source-layer": "admin", + "interactive": true, + "filter": [ + "all", + [ + "==", + "admin_level", + 2 + ], + [ + "==", + "disputed", + 1 + ], + [ + "==", + "maritime", + 0 + ] + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-color": "#9e9cab", + "line-dasharray": [ + 2, + 2 + ], + "line-width": { + "base": 1, + "stops": [ + [ + 4, + 1.4 + ], + [ + 5, + 2 + ], + [ + 12, + 8 + ] + ] + } + } + }, + { + "id": "admin_level_3_maritime", + "type": "line", + "metadata": { + "mapbox:group": "group_boundary" + }, + "source": "osm2vectortiles", + "source-layer": "admin", + "interactive": true, + "filter": [ + "all", + [ + "==", + "maritime", + 1 + ], + [ + ">=", + "admin_level", + 3 + ] + ], + "layout": { + "line-join": "round" + }, + "paint": { + "line-color": "#a0c8f0", + "line-dasharray": [ + 3, + 1, + 1, + 1 + ], + "line-opacity": 0.5, + "line-width": { + "base": 1, + "stops": [ + [ + 4, + 0.4 + ], + [ + 5, + 1 + ], + [ + 12, + 3 + ] + ] + } + } + }, + { + "id": "admin_level_2_maritime", + "type": "line", + "metadata": { + "mapbox:group": "group_boundary" + }, + "source": "osm2vectortiles", + "source-layer": "admin", + "interactive": true, + "filter": [ + "all", + [ + "==", + "admin_level", + 2 + ], + [ + "==", + "maritime", + 1 + ] + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-color": "#a0c8f0", + "line-opacity": 0.5, + "line-width": { + "base": 1, + "stops": [ + [ + 4, + 1.4 + ], + [ + 5, + 2 + ], + [ + 12, + 8 + ] + ] + } + } + }, + { + "id": "water_label", + "type": "symbol", + "metadata": { + "mapbox:group": "group_water_label" + }, + "source": "osm2vectortiles", + "source-layer": "water_label", + "interactive": true, + "filter": [ + "==", + "$type", + "Point" + ], + "layout": { + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-max-width": 5, + "text-size": 12 + }, + "paint": { + "text-color": "#5d60be", + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 1 + } + }, + { + "id": "poi_label_4", + "type": "symbol", + "metadata": { + "mapbox:group": "group_poi_label" + }, + "source": "osm2vectortiles", + "source-layer": "poi_label", + "minzoom": 16, + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "scalerank", + 4 + ] + ], + "layout": { + "icon-image": "{maki}-11", + "text-anchor": "top", + "text-field": "{name_en}", + "text-font": [ + "Roboto Regular" + ], + "text-max-width": 9, + "text-offset": [ + 0, + 0.6 + ], + "text-padding": 2, + "text-size": 12 + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, + { + "id": "poi_label_3", + "type": "symbol", + "metadata": { + "mapbox:group": "group_poi_label" + }, + "source": "osm2vectortiles", + "source-layer": "poi_label", + "minzoom": 15, + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "scalerank", + 3 + ] + ], + "layout": { + "icon-image": "{maki}-11", + "text-anchor": "top", + "text-field": "{name_en}", + "text-font": [ + "Open Sans Semibold" + ], + "text-max-width": 9, + "text-offset": [ + 0, + 0.6 + ], + "text-padding": 2, + "text-size": 12 + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, + { + "id": "poi_label_2", + "type": "symbol", + "metadata": { + "mapbox:group": "group_poi_label" + }, + "source": "osm2vectortiles", + "source-layer": "poi_label", + "minzoom": 14, + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "scalerank", + 2 + ] + ], + "layout": { + "icon-image": "{maki}-11", + "text-anchor": "top", + "text-field": "{name_en}", + "text-font": [ + "Open Sans Semibold" + ], + "text-max-width": 9, + "text-offset": [ + 0, + 0.6 + ], + "text-padding": 2, + "text-size": 12 + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, + { + "id": "rail_station_label", + "type": "symbol", + "metadata": { + "mapbox:group": "group_poi_label" + }, + "source": "osm2vectortiles", + "source-layer": "rail_station_label", + "interactive": true, + "layout": { + "icon-image": "{maki}-11", + "text-anchor": "top", + "text-field": "{name_en}", + "text-font": [ + "Open Sans Semibold" + ], + "text-max-width": 9, + "text-offset": [ + 0, + 0.6 + ], + "text-padding": 2, + "text-size": 12, + "visibility": "visible" + }, + "paint": { + "text-color": "#4898ff", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, + { + "id": "poi_label_1", + "type": "symbol", + "metadata": { + "mapbox:group": "group_poi_label" + }, + "source": "osm2vectortiles", + "source-layer": "poi_label", + "minzoom": 13, + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "scalerank", + 1 + ] + ], + "layout": { + "icon-image": "{maki}-11", + "text-anchor": "top", + "text-field": "{name_en}", + "text-font": [ + "Open Sans Semibold" + ], + "text-max-width": 9, + "text-offset": [ + 0, + 0.6 + ], + "text-padding": 2, + "text-size": 12 + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, + { + "id": "airport_label", + "type": "symbol", + "metadata": { + "mapbox:group": "group_poi_label" + }, + "source": "osm2vectortiles", + "source-layer": "airport_label", + "minzoom": 11, + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "in", + "scalerank", + 1, + 2, + 3 + ] + ], + "layout": { + "icon-image": "{maki}-11", + "text-anchor": "top", + "text-field": "{name_en}", + "text-font": [ + "Open Sans Semibold" + ], + "text-max-width": 9, + "text-offset": [ + 0, + 0.6 + ], + "text-padding": 2, + "text-size": 12 + }, + "paint": { + "text-color": "#666", + "text-halo-blur": 0.5, + "text-halo-color": "#ffffff", + "text-halo-width": 1 + } + }, + { + "id": "road_label", + "type": "symbol", + "metadata": { + "mapbox:group": "group_road_label" + }, + "source": "osm2vectortiles", + "source-layer": "road_label", + "interactive": true, + "filter": [ + "!=", + "class", + "ferry" + ], + "layout": { + "symbol-placement": "line", + "text-anchor": "center", + "text-field": "{name_en}", + "text-font": [ + "Roboto Regular" + ], + "text-offset": [ + 0, + 0.15 + ], + "text-size": { + "base": 1, + "stops": [ + [ + 13, + 12 + ], + [ + 14, + 13 + ] + ] + } + }, + "paint": { + "text-color": "#765", + "text-halo-blur": 0.5, + "text-halo-width": 1 + } + }, + { + "id": "road_label_highway_shield", + "type": "symbol", + "metadata": { + "mapbox:group": "group_road_label" + }, + "source": "osm2vectortiles", + "source-layer": "road_label", + "minzoom": 8, + "interactive": true, + "filter": [ + "<=", + "reflen", + 6 + ], + "layout": { + "icon-image": "default-{reflen}", + "icon-rotation-alignment": "viewport", + "symbol-placement": { + "base": 1, + "stops": [ + [ + 10, + "point" + ], + [ + 11, + "line" + ] + ] + }, + "symbol-spacing": 500, + "text-field": "{ref}", + "text-font": [ + "Roboto Regular" + ], + "text-offset": [ + 0, + 0.1 + ], + "text-rotation-alignment": "viewport", + "text-size": 10 + }, + "paint": {} + }, + { + "id": "place_label_other", + "type": "symbol", + "metadata": { + "mapbox:group": "group_place_label" + }, + "source": "osm2vectortiles", + "source-layer": "place_label", + "interactive": true, + "filter": [ + "in", + "type", + "hamlet", + "island", + "islet", + "neighbourhood", + "suburb" + ], + "layout": { + "text-field": "{name_en}", + "text-font": [ + "Roboto Condensed Italic" + ], + "text-letter-spacing": 0.1, + "text-max-width": 9, + "text-size": { + "base": 1.2, + "stops": [ + [ + 12, + 10 + ], + [ + 15, + 14 + ] + ] + }, + "text-transform": "uppercase" + }, + "paint": { + "text-color": "#633", + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1.2 + } + }, + { + "id": "place_label_village", + "type": "symbol", + "metadata": { + "mapbox:group": "group_place_label" + }, + "source": "osm2vectortiles", + "source-layer": "place_label", + "interactive": true, + "filter": [ + "==", + "type", + "village" + ], + "layout": { + "text-field": "{name_en}", + "text-font": [ + "Roboto Regular" + ], + "text-max-width": 8, + "text-size": { + "base": 1.2, + "stops": [ + [ + 10, + 12 + ], + [ + 15, + 22 + ] + ] + } + }, + "paint": { + "text-color": "#333", + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1.2 + } + }, + { + "id": "place_label_town", + "type": "symbol", + "metadata": { + "mapbox:group": "group_place_label" + }, + "source": "osm2vectortiles", + "source-layer": "place_label", + "interactive": true, + "filter": [ + "==", + "type", + "town" + ], + "layout": { + "icon-image": { + "base": 1, + "stops": [ + [ + 0, + "dot-9" + ], + [ + 8, + "" + ] + ] + }, + "text-anchor": "bottom", + "text-field": "{name_en}", + "text-font": [ + "Roboto Regular" + ], + "text-max-width": 8, + "text-offset": [ + 0, + 0 + ], + "text-size": { + "base": 1.2, + "stops": [ + [ + 7, + 12 + ], + [ + 11, + 16 + ] + ] + } + }, + "paint": { + "text-color": "#333", + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1.2 + } + }, + { + "id": "place_label_city", + "type": "symbol", + "metadata": { + "mapbox:group": "group_place_label" + }, + "source": "osm2vectortiles", + "source-layer": "place_label", + "minzoom": 5, + "interactive": true, + "filter": [ + "==", + "type", + "city" + ], + "layout": { + "icon-image": { + "base": 1, + "stops": [ + [ + 0, + "dot-9" + ], + [ + 8, + "" + ] + ] + }, + "text-anchor": "bottom", + "text-field": "{name_en}", + "text-font": [ + "Roboto Medium" + ], + "text-max-width": 8, + "text-offset": [ + 0, + 0 + ], + "text-size": { + "base": 1.2, + "stops": [ + [ + 7, + 14 + ], + [ + 11, + 24 + ] + ] + } + }, + "paint": { + "text-color": "#333", + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1.2 + } + }, + { + "id": "marine_label_line_4", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + ">=", + "labelrank", + 4 + ] + ], + "layout": { + "symbol-placement": "line", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-size": { + "stops": [ + [ + 3, + 11 + ], + [ + 4, + 12 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "marine_label_4", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + ">=", + "labelrank", + 4 + ] + ], + "layout": { + "symbol-placement": "point", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-max-width": 6, + "text-size": { + "stops": [ + [ + 3, + 11 + ], + [ + 4, + 12 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "marine_label_line_3", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "labelrank", + 3 + ] + ], + "layout": { + "symbol-placement": "line", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-size": { + "stops": [ + [ + 3, + 11 + ], + [ + 4, + 14 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "marine_label_point_3", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "labelrank", + 3 + ] + ], + "layout": { + "symbol-placement": "point", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-max-width": 5, + "text-size": { + "stops": [ + [ + 3, + 11 + ], + [ + 4, + 14 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "marine_label_line_2", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "labelrank", + 2 + ] + ], + "layout": { + "symbol-placement": "line", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-size": { + "stops": [ + [ + 3, + 14 + ], + [ + 4, + 16 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "marine_label_point_2", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "labelrank", + 2 + ] + ], + "layout": { + "symbol-placement": "point", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-max-width": 5, + "text-size": { + "stops": [ + [ + 3, + 14 + ], + [ + 4, + 16 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "marine_label_line_1", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "==", + "labelrank", + 1 + ] + ], + "layout": { + "symbol-placement": "line", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-size": { + "stops": [ + [ + 3, + 18 + ], + [ + 4, + 22 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "marine_label_point_1", + "type": "symbol", + "metadata": { + "mapbox:group": "group_marine_label" + }, + "source": "osm2vectortiles", + "source-layer": "marine_label", + "interactive": true, + "filter": [ + "all", + [ + "==", + "$type", + "Point" + ], + [ + "==", + "labelrank", + 1 + ] + ], + "layout": { + "symbol-placement": "point", + "text-field": "{name_en}", + "text-font": [ + "Roboto Italic" + ], + "text-letter-spacing": 0.2, + "text-line-height": 1.6, + "text-max-width": 5, + "text-offset": [ + 0, + 2.4 + ], + "text-size": { + "stops": [ + [ + 1, + 12 + ], + [ + 4, + 18 + ] + ] + } + }, + "paint": { + "text-color": "hsl(224, 43%, 56%)", + "text-halo-blur": 0.75, + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 0.75 + } + }, + { + "id": "state_label", + "type": "symbol", + "metadata": { + "mapbox:group": "group_state_label" + }, + "source": "osm2vectortiles", + "source-layer": "state_label", + "maxzoom": 6, + "interactive": true, + "layout": { + "text-field": "{name}", + "text-font": [ + "Roboto Condensed Italic" + ], + "text-size": { + "stops": [ + [ + 4, + 11 + ], + [ + 6, + 15 + ] + ] + }, + "text-transform": "uppercase" + }, + "paint": { + "text-color": "#633", + "text-halo-color": "rgba(255,255,255,0.7)", + "text-halo-width": 1 + } + }, + { + "id": "country_label_4", + "type": "symbol", + "metadata": { + "mapbox:group": "group_country_label" + }, + "source": "osm2vectortiles", + "source-layer": "country_label", + "interactive": true, + "filter": [ + ">=", + "scalerank", + 4 + ], + "layout": { + "text-field": "{name_en}", + "text-font": [ + "Roboto Bold" + ], + "text-max-width": 6.25, + "text-size": { + "stops": [ + [ + 4, + 11 + ], + [ + 6, + 15 + ] + ] + }, + "text-transform": "none" + }, + "paint": { + "text-color": "#334", + "text-halo-blur": 1, + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1 + } + }, + { + "id": "country_label_3", + "type": "symbol", + "metadata": { + "mapbox:group": "group_country_label" + }, + "source": "osm2vectortiles", + "source-layer": "country_label", + "interactive": true, + "filter": [ + "==", + "scalerank", + 3 + ], + "layout": { + "text-field": "{name_en}", + "text-font": [ + "Roboto Bold" + ], + "text-max-width": 6.25, + "text-size": { + "stops": [ + [ + 3, + 11 + ], + [ + 7, + 17 + ] + ] + }, + "text-transform": "none" + }, + "paint": { + "text-color": "#334", + "text-halo-blur": 1, + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1 + } + }, + { + "id": "country_label_2", + "type": "symbol", + "metadata": { + "mapbox:group": "group_country_label" + }, + "source": "osm2vectortiles", + "source-layer": "country_label", + "interactive": true, + "filter": [ + "==", + "scalerank", + 2 + ], + "layout": { + "text-field": "{name_en}", + "text-font": [ + "Roboto Bold" + ], + "text-max-width": 6.25, + "text-size": { + "stops": [ + [ + 2, + 11 + ], + [ + 5, + 17 + ] + ] + }, + "text-transform": "none" + }, + "paint": { + "text-color": "#334", + "text-halo-blur": 1, + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1 + } + }, + { + "id": "country_label_1", + "type": "symbol", + "metadata": { + "mapbox:group": "group_country_label" + }, + "source": "osm2vectortiles", + "source-layer": "country_label", + "interactive": true, + "filter": [ + "==", + "scalerank", + 1 + ], + "layout": { + "text-field": "{name_en}", + "text-font": [ + "Roboto Bold" + ], + "text-max-width": 6.25, + "text-size": { + "stops": [ + [ + 1, + 11 + ], + [ + 4, + 17 + ] + ] + }, + "text-transform": "none" + }, + "paint": { + "text-color": "#334", + "text-halo-blur": 1, + "text-halo-color": "rgba(255,255,255,0.8)", + "text-halo-width": 1 + } + } + ] }