{ "version": 8, "sources": { "openmaptiles": { "type": "vector", "url": "https://tiles.openfreemap.org/planet" }, "vigo_traffic": { "type": "geojson", "data": "/api/traffic" } }, "sprite": "https://tiles.openfreemap.org/sprites/ofm_f384/ofm", "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf", "layers": [ { "id": "background", "type": "background", "paint": { "background-color": "rgb(242,243,240)" } }, { "id": "park", "type": "fill", "source": "openmaptiles", "source-layer": "park", "filter": [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], "paint": { "fill-color": "rgb(230, 233, 229)" } }, { "id": "water", "type": "fill", "source": "openmaptiles", "source-layer": "water", "filter": [ "all", [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], [ "!=", [ "get", "brunnel" ], "tunnel" ] ], "paint": { "fill-antialias": true, "fill-color": "rgb(194, 200, 202)" } }, { "id": "landcover_ice_shelf", "type": "fill", "source": "openmaptiles", "source-layer": "landcover", "maxzoom": 8, "filter": [ "all", [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], [ "==", [ "get", "subclass" ], "ice_shelf" ] ], "paint": { "fill-color": "hsl(0,0%,98%)", "fill-opacity": 0.7 } }, { "id": "landcover_glacier", "type": "fill", "source": "openmaptiles", "source-layer": "landcover", "maxzoom": 8, "filter": [ "all", [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], [ "==", [ "get", "subclass" ], "glacier" ] ], "paint": { "fill-color": "hsl(0,0%,98%)", "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 0, 1, 8, 0.5 ] } }, { "id": "landuse_residential", "type": "fill", "source": "openmaptiles", "source-layer": "landuse", "maxzoom": 16, "filter": [ "all", [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], [ "==", [ "get", "class" ], "residential" ] ], "paint": { "fill-color": "rgb(234, 234, 230)", "fill-opacity": [ "interpolate", [ "exponential", 0.6 ], [ "zoom" ], 8, 0.8, 9, 0.6 ] } }, { "id": "landcover_wood", "type": "fill", "source": "openmaptiles", "source-layer": "landcover", "minzoom": 10, "filter": [ "all", [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], [ "==", [ "get", "class" ], "wood" ] ], "paint": { "fill-color": "rgb(220,224,220)", "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 8, 0, 12, 1 ] } }, { "id": "waterway", "type": "line", "source": "openmaptiles", "source-layer": "waterway", "filter": [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], "paint": { "line-color": "hsl(195,17%,78%)" } }, { "id": "building", "type": "fill", "source": "openmaptiles", "source-layer": "building", "minzoom": 12, "paint": { "fill-antialias": true, "fill-color": "rgb(234, 234, 229)", "fill-outline-color": "rgb(219, 219, 218)" } }, { "id": "tunnel_motorway_casing", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 6, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "==", [ "get", "brunnel" ], "tunnel" ], [ "==", [ "get", "class" ], "motorway" ] ] ], "layout": { "line-cap": "butt", "line-join": "miter" }, "paint": { "line-color": "rgb(213, 213, 213)", "line-opacity": 1, "line-width": [ "interpolate", [ "exponential", 1.4 ], [ "zoom" ], 5.8, 0, 6, 3, 20, 40 ] } }, { "id": "tunnel_motorway_inner", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 6, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "==", [ "get", "brunnel" ], "tunnel" ], [ "==", [ "get", "class" ], "motorway" ] ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "rgb(234,234,234)", "line-width": [ "interpolate", [ "exponential", 1.4 ], [ "zoom" ], 4, 2, 6, 1.3, 20, 30 ] } }, { "id": "aeroway-taxiway", "type": "line", "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 12, "filter": [ "match", [ "get", "class" ], [ "taxiway" ], true, false ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "hsl(0,0%,88%)", "line-opacity": 1, "line-width": [ "interpolate", [ "exponential", 1.55 ], [ "zoom" ], 13, 1.8, 20, 20 ] } }, { "id": "aeroway-runway-casing", "type": "line", "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 11, "filter": [ "match", [ "get", "class" ], [ "runway" ], true, false ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "hsl(0,0%,88%)", "line-opacity": 1, "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 11, 6, 17, 55 ] } }, { "id": "aeroway-area", "type": "fill", "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 4, "filter": [ "all", [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], [ "match", [ "get", "class" ], [ "runway", "taxiway" ], true, false ] ], "paint": { "fill-color": "rgba(255, 255, 255, 1)", "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 13, 0, 14, 1 ] } }, { "id": "aeroway-runway", "type": "line", "source": "openmaptiles", "source-layer": "aeroway", "minzoom": 11, "filter": [ "all", [ "match", [ "get", "class" ], [ "runway" ], true, false ], [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "rgba(255, 255, 255, 1)", "line-opacity": 1, "line-width": [ "interpolate", [ "exponential", 1.5 ], [ "zoom" ], 11, 4, 17, 50 ] } }, { "id": "road_area_pier", "type": "fill", "source": "openmaptiles", "source-layer": "transportation", "filter": [ "all", [ "match", [ "geometry-type" ], [ "MultiPolygon", "Polygon" ], true, false ], [ "==", [ "get", "class" ], "pier" ] ], "paint": { "fill-antialias": true, "fill-color": "rgb(242,243,240)" } }, { "id": "road_pier", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "class" ], [ "pier" ], true, false ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "rgb(242,243,240)", "line-width": [ "interpolate", [ "exponential", 1.2 ], [ "zoom" ], 15, 1, 17, 4 ] } }, { "id": "highway_path", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "==", [ "get", "class" ], "path" ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "rgb(234, 234, 234)", "line-opacity": 0.9, "line-width": [ "interpolate", [ "exponential", 1.2 ], [ "zoom" ], 13, 1, 20, 10 ] } }, { "id": "highway_minor", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 8, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "class" ], [ "minor", "service", "track" ], true, false ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "hsl(0,0%,88%)", "line-opacity": 0.9, "line-width": [ "interpolate", [ "exponential", 1.55 ], [ "zoom" ], 13, 1.8, 20, 20 ] } }, { "id": "highway_major_casing", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 11, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "class" ], [ "primary", "secondary", "tertiary", "trunk" ], true, false ] ], "layout": { "line-cap": "butt", "line-join": "miter" }, "paint": { "line-color": "rgb(213, 213, 213)", "line-dasharray": [ 12, 0 ], "line-width": [ "interpolate", [ "exponential", 1.3 ], [ "zoom" ], 10, 3, 20, 23 ] } }, { "id": "highway_major_inner", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 11, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "class" ], [ "primary", "secondary", "tertiary", "trunk" ], true, false ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "#fff", "line-width": [ "interpolate", [ "exponential", 1.3 ], [ "zoom" ], 10, 2, 20, 20 ] } }, { "id": "highway_major_subtle", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "maxzoom": 11, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "class" ], [ "primary", "secondary", "tertiary", "trunk" ], true, false ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "hsla(0,0%,85%,0.69)", "line-width": 2 } }, { "id": "highway_motorway_casing", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 6, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "match", [ "get", "brunnel" ], [ "bridge", "tunnel" ], false, true ], [ "==", [ "get", "class" ], "motorway" ] ] ], "layout": { "line-cap": "butt", "line-join": "miter" }, "paint": { "line-color": "rgb(213, 213, 213)", "line-dasharray": [ 2, 0 ], "line-opacity": 1, "line-width": [ "interpolate", [ "exponential", 1.4 ], [ "zoom" ], 5.8, 0, 6, 3, 20, 40 ] } }, { "id": "highway_motorway_inner", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 6, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "match", [ "get", "brunnel" ], [ "bridge", "tunnel" ], false, true ], [ "==", [ "get", "class" ], "motorway" ] ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": [ "interpolate", [ "linear" ], [ "zoom" ], 5.8, "hsla(0,0%,85%,0.53)", 6, "#fff" ], "line-width": [ "interpolate", [ "exponential", 1.4 ], [ "zoom" ], 4, 2, 6, 1.3, 20, 30 ] } }, { "id": "highway_motorway_subtle", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "maxzoom": 6, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "==", [ "get", "class" ], "motorway" ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "hsla(0,0%,85%,0.53)", "line-width": [ "interpolate", [ "exponential", 1.4 ], [ "zoom" ], 4, 2, 6, 1.3 ] } }, { "id": "railway_transit", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 16, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "==", [ "get", "class" ], "transit" ], [ "match", [ "get", "brunnel" ], [ "tunnel" ], false, true ] ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#dddddd", "line-width": 3 } }, { "id": "railway_transit_dashline", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 16, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "==", [ "get", "class" ], "transit" ], [ "match", [ "get", "brunnel" ], [ "tunnel" ], false, true ] ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#fafafa", "line-dasharray": [ 3, 3 ], "line-width": 2 } }, { "id": "railway_service", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 16, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "==", [ "get", "class" ], "rail" ], [ "has", "service" ] ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#dddddd", "line-width": 3 } }, { "id": "railway_service_dashline", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 16, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "==", [ "get", "class" ], "rail" ], [ "has", "service" ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#fafafa", "line-dasharray": [ 3, 3 ], "line-width": 2 } }, { "id": "railway", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 13, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "!", [ "has", "service" ] ], [ "==", [ "get", "class" ], "rail" ] ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#dddddd", "line-width": [ "interpolate", [ "exponential", 1.3 ], [ "zoom" ], 16, 3, 20, 7 ] } }, { "id": "railway_dashline", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 13, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "!", [ "has", "service" ] ], [ "==", [ "get", "class" ], "rail" ] ] ], "layout": { "line-join": "round" }, "paint": { "line-color": "#fafafa", "line-dasharray": [ 3, 3 ], "line-width": [ "interpolate", [ "exponential", 1.3 ], [ "zoom" ], 16, 2, 20, 6 ] } }, { "id": "highway_motorway_bridge_casing", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 6, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "==", [ "get", "brunnel" ], "bridge" ], [ "==", [ "get", "class" ], "motorway" ] ] ], "layout": { "line-cap": "butt", "line-join": "miter" }, "paint": { "line-color": "rgb(213, 213, 213)", "line-dasharray": [ 2, 0 ], "line-opacity": 1, "line-width": [ "interpolate", [ "exponential", 1.4 ], [ "zoom" ], 5.8, 0, 6, 5, 20, 45 ] } }, { "id": "highway_motorway_bridge_inner", "type": "line", "source": "openmaptiles", "source-layer": "transportation", "minzoom": 6, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "all", [ "==", [ "get", "brunnel" ], "bridge" ], [ "==", [ "get", "class" ], "motorway" ] ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": [ "interpolate", [ "linear" ], [ "zoom" ], 5.8, "hsla(0,0%,85%,0.53)", 6, "#fff" ], "line-width": [ "interpolate", [ "exponential", 1.4 ], [ "zoom" ], 4, 2, 6, 1.3, 20, 30 ] } }, { "id": "boundary_3", "type": "line", "source": "openmaptiles", "source-layer": "boundary", "minzoom": 8, "filter": [ "all", [ ">=", [ "get", "admin_level" ], 3 ], [ "<=", [ "get", "admin_level" ], 6 ], [ "!=", [ "get", "maritime" ], 1 ], [ "!=", [ "get", "disputed" ], 1 ], [ "!", [ "has", "claimed_by" ] ] ], "paint": { "line-color": "hsl(0,0%,70%)", "line-dasharray": [ 1, 1 ], "line-width": [ "interpolate", [ "linear", 1 ], [ "zoom" ], 7, 1, 11, 2 ] } }, { "id": "boundary_2", "type": "line", "source": "openmaptiles", "source-layer": "boundary", "filter": [ "all", [ "==", [ "get", "admin_level" ], 2 ], [ "!=", [ "get", "maritime" ], 1 ], [ "!=", [ "get", "disputed" ], 1 ], [ "!", [ "has", "claimed_by" ] ] ], "layout": { "line-cap": "round", "line-join": "round" }, "paint": { "line-color": "hsl(0,0%,70%)", "line-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 0, 0.4, 4, 1 ], "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 3, 1, 5, 1.2, 12, 3 ] } }, { "id": "boundary_disputed", "type": "line", "source": "openmaptiles", "source-layer": "boundary", "filter": [ "all", [ "!=", [ "get", "maritime" ], 1 ], [ "==", [ "get", "disputed" ], 1 ] ], "paint": { "line-color": "hsl(0,0%,70%)", "line-dasharray": [ 1, 2 ], "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 3, 1, 5, 1.2, 12, 3 ] } }, { "id": "waterway_line_label", "type": "symbol", "source": "openmaptiles", "source-layer": "waterway", "minzoom": 10, "filter": [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], "layout": { "symbol-placement": "line", "symbol-spacing": 350, "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], " ", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Italic" ], "text-letter-spacing": 0.2, "text-max-width": 5, "text-size": 14 }, "paint": { "text-color": "hsl(0,0%,66%)", "text-halo-color": "rgba(255,255,255,0.7)", "text-halo-width": 1.5 } }, { "id": "water_name_point_label", "type": "symbol", "source": "openmaptiles", "source-layer": "water_name", "filter": [ "match", [ "geometry-type" ], [ "MultiPoint", "Point" ], true, false ], "layout": { "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Italic" ], "text-letter-spacing": 0.2, "text-max-width": 5, "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 0, 10, 8, 14 ] }, "paint": { "text-color": "#495e91", "text-halo-color": "rgba(255,255,255,0.7)", "text-halo-width": 1.5 } }, { "id": "water_name_line_label", "type": "symbol", "source": "openmaptiles", "source-layer": "water_name", "filter": [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], "layout": { "symbol-placement": "line", "symbol-spacing": 350, "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], " ", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Italic" ], "text-letter-spacing": 0.2, "text-max-width": 5, "text-size": 14 }, "paint": { "text-color": "#495e91", "text-halo-color": "rgba(255,255,255,0.7)", "text-halo-width": 1.5 } }, { "id": "highway-name-path", "type": "symbol", "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 15.5, "filter": [ "==", [ "get", "class" ], "path" ], "layout": { "symbol-placement": "line", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], " ", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Regular" ], "text-rotation-alignment": "map", "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 13, 12, 14, 13 ] }, "paint": { "text-color": "hsl(30,0%,62%)", "text-halo-color": "#f8f4f0", "text-halo-width": 0.5 } }, { "id": "highway-name-minor", "type": "symbol", "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 15, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "class" ], [ "minor", "service", "track" ], true, false ] ], "layout": { "symbol-placement": "line", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], " ", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Regular" ], "text-rotation-alignment": "map", "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 13, 12, 14, 13 ] }, "paint": { "text-color": "#666", "text-halo-blur": 0.5, "text-halo-width": 1 } }, { "id": "highway-name-major", "type": "symbol", "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 12.2, "filter": [ "match", [ "get", "class" ], [ "primary", "secondary", "tertiary", "trunk" ], true, false ], "layout": { "symbol-placement": "line", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], " ", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Regular" ], "text-rotation-alignment": "map", "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 13, 12, 14, 13 ] }, "paint": { "text-color": "#666", "text-halo-blur": 0.5, "text-halo-width": 1 } }, { "id": "highway-shield-non-us", "type": "symbol", "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 11, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "network" ], [ "us-highway", "us-interstate", "us-state" ], false, true ] ], "layout": { "icon-image": [ "concat", "road_", [ "get", "ref_length" ] ], "icon-rotation-alignment": "viewport", "icon-size": 1, "symbol-placement": [ "step", [ "zoom" ], "point", 11, "line" ], "symbol-spacing": 200, "text-field": [ "to-string", [ "get", "ref" ] ], "text-font": [ "Noto Sans Regular" ], "text-rotation-alignment": "viewport", "text-size": 10 } }, { "id": "highway-shield-us-interstate", "type": "symbol", "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 11, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "network" ], [ "us-interstate" ], true, false ] ], "layout": { "icon-image": [ "concat", [ "get", "network" ], "_", [ "get", "ref_length" ] ], "icon-rotation-alignment": "viewport", "icon-size": 1, "symbol-placement": [ "step", [ "zoom" ], "point", 7, "line", 8, "line" ], "symbol-spacing": 200, "text-field": [ "to-string", [ "get", "ref" ] ], "text-font": [ "Noto Sans Regular" ], "text-rotation-alignment": "viewport", "text-size": 10 } }, { "id": "road_shield_us", "type": "symbol", "source": "openmaptiles", "source-layer": "transportation_name", "minzoom": 12, "filter": [ "all", [ "match", [ "geometry-type" ], [ "LineString", "MultiLineString" ], true, false ], [ "match", [ "get", "network" ], [ "us-highway", "us-state" ], true, false ] ], "layout": { "icon-image": [ "concat", [ "get", "network" ], "_", [ "get", "ref_length" ] ], "icon-rotation-alignment": "viewport", "icon-size": 1, "symbol-placement": [ "step", [ "zoom" ], "point", 11, "line" ], "symbol-spacing": 200, "text-field": [ "to-string", [ "get", "ref" ] ], "text-font": [ "Noto Sans Regular" ], "text-rotation-alignment": "viewport", "text-size": 10 } }, { "id": "airport", "type": "symbol", "source": "openmaptiles", "source-layer": "aerodrome_label", "minzoom": 11, "filter": [ "all", [ "has", "iata" ] ], "layout": { "icon-image": "airport_11", "icon-size": 1, "text-anchor": "top", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Regular" ], "text-max-width": 9, "text-offset": [ 0, 0.6 ], "text-optional": true, "text-padding": 2, "text-size": 12 }, "paint": { "text-color": "#666", "text-halo-blur": 0.5, "text-halo-color": "#ffffff", "text-halo-width": 1 } }, { "id": "label_other", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "minzoom": 8, "filter": [ "match", [ "get", "class" ], [ "city", "continent", "country", "state", "town", "village" ], false, true ], "layout": { "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Italic" ], "text-letter-spacing": 0.1, "text-max-width": 9, "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 8, 9, 12, 10 ], "text-transform": "uppercase" }, "paint": { "text-color": "#333", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_village", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "minzoom": 9, "filter": [ "==", [ "get", "class" ], "village" ], "layout": { "icon-allow-overlap": true, "icon-image": [ "step", [ "zoom" ], "circle_11_black", 10, "" ], "icon-optional": false, "icon-size": 0.2, "text-anchor": "bottom", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Regular" ], "text-max-width": 8, "text-size": [ "interpolate", [ "exponential", 1.2 ], [ "zoom" ], 7, 10, 11, 12 ] }, "paint": { "text-color": "#000", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_town", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "minzoom": 6, "filter": [ "==", [ "get", "class" ], "town" ], "layout": { "icon-allow-overlap": true, "icon-image": [ "step", [ "zoom" ], "circle_11_black", 10, "" ], "icon-optional": false, "icon-size": 0.2, "text-anchor": "bottom", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Regular" ], "text-max-width": 8, "text-size": [ "interpolate", [ "exponential", 1.2 ], [ "zoom" ], 7, 12, 11, 14 ] }, "paint": { "text-color": "#000", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_state", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "minzoom": 5, "maxzoom": 8, "filter": [ "==", [ "get", "class" ], "state" ], "layout": { "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Italic" ], "text-letter-spacing": 0.2, "text-max-width": 9, "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 5, 10, 8, 14 ], "text-transform": "uppercase" }, "paint": { "text-color": "#333", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_city", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "minzoom": 3, "filter": [ "all", [ "==", [ "get", "class" ], "city" ], [ "!=", [ "get", "capital" ], 2 ] ], "layout": { "icon-allow-overlap": true, "icon-image": [ "step", [ "zoom" ], "circle_11_black", 9, "" ], "icon-optional": false, "icon-size": 0.4, "text-anchor": "bottom", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Regular" ], "text-max-width": 8, "text-offset": [ 0, -0.1 ], "text-size": [ "interpolate", [ "exponential", 1.2 ], [ "zoom" ], 4, 11, 7, 13, 11, 18 ] }, "paint": { "text-color": "#000", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_city_capital", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "minzoom": 3, "filter": [ "all", [ "==", [ "get", "class" ], "city" ], [ "==", [ "get", "capital" ], 2 ] ], "layout": { "icon-allow-overlap": true, "icon-image": [ "step", [ "zoom" ], "circle_11_black", 9, "" ], "icon-optional": false, "icon-size": 0.5, "text-anchor": "bottom", "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Bold" ], "text-max-width": 8, "text-offset": [ 0, -0.2 ], "text-size": [ "interpolate", [ "exponential", 1.2 ], [ "zoom" ], 4, 12, 7, 14, 11, 20 ] }, "paint": { "text-color": "#000", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_country_3", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "minzoom": 2, "maxzoom": 9, "filter": [ "all", [ "==", [ "get", "class" ], "country" ], [ ">=", [ "get", "rank" ], 3 ] ], "layout": { "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Bold" ], "text-max-width": 6.25, "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 3, 9, 7, 17 ] }, "paint": { "text-color": "#000", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_country_2", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "maxzoom": 9, "filter": [ "all", [ "==", [ "get", "class" ], "country" ], [ "==", [ "get", "rank" ], 2 ] ], "layout": { "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Bold" ], "text-max-width": 6.25, "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 2, 9, 5, 17 ] }, "paint": { "text-color": "#000", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "label_country_1", "type": "symbol", "source": "openmaptiles", "source-layer": "place", "maxzoom": 9, "filter": [ "all", [ "==", [ "get", "class" ], "country" ], [ "==", [ "get", "rank" ], 1 ] ], "layout": { "text-field": [ "case", [ "has", "name:nonlatin" ], [ "concat", [ "get", "name:latin" ], "\n", [ "get", "name:nonlatin" ] ], [ "coalesce", [ "get", "name_en" ], [ "get", "name" ] ] ], "text-font": [ "Noto Sans Bold" ], "text-max-width": 6.25, "text-size": [ "interpolate", [ "linear" ], [ "zoom" ], 1, 9, 4, 17 ] }, "paint": { "text-color": "#000", "text-halo-blur": 1, "text-halo-color": "#fff", "text-halo-width": 1 } }, { "id": "vigo_traffic", "type": "line", "source": "vigo_traffic", "layout": {}, "paint": { "line-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 0, 1, 14, 1, 16, 0.8, 18, 0.6, 22, 0.6 ], "line-color": [ "match", [ "get", "style" ], "#CONGESTION", "hsl(70.7 100% 38%)", "#MUYDENSO", "hsl(36.49 100% 50%)", "#DENSO", "hsl(47.61 100% 49%)", "#FLUIDO", "hsl(83.9 100% 40%)", "#MUYFLUIDO", "hsl(161.25 100% 42%)", "hsl(0.0 0% 0%)" ], "line-width": [ "interpolate", [ "linear" ], [ "zoom" ], 14, 2, 18, 4 ] } } ] }