{ "version": 8, "name": "Light Topographic", "sources": { "osm": { "type": "vector", "url": "mbtiles://osm" }, "contours": { "type": "vector", "url": "mbtiles://contours" } }, "glyphs": "/fonts/{fontstack}/{range}.pbf", "layers": [ { "id": "background", "type": "background", "paint": { "background-color": "hsl(47, 26%, 88%)" } }, { "id": "water", "type": "fill", "source": "osm", "source-layer": "water", "paint": { "fill-color": "hsl(205, 56%, 73%)" } }, { "id": "residential", "type": "fill", "source": "osm", "source-layer": "landuse", "filter": ["==", "class", "residential"], "paint": { "fill-color": "hsl(47, 13%, 86%)", "fill-opacity": 0.7 } }, { "id": "landcover-wood", "type": "fill", "source": "osm", "source-layer": "landcover", "filter": ["==", "class", "wood"], "paint": { "fill-color": "hsl(82, 46%, 72%)", "fill-opacity": { "base": 1, "stops": [[8, 0.6], [22, 1]] } } }, { "id": "landcover-wetland", "type": "fill", "source": "osm", "source-layer": "landcover", "filter": ["==", "class", "wetland"], "paint": { "fill-color": "hsl(82, 46%, 72%)", "fill-opacity": 0.45 } }, { "id": "parks", "type": "fill", "source": "osm", "source-layer": "landuse", "filter": ["==", "class", "park"], "paint": { "fill-color": "#E1EBB0", "fill-opacity": { "base": 1, "stops": [[5, 0], [9, 0.75]] } } }, { "id": "roads-small", "type": "line", "source": "osm", "source-layer": "transportation", "filter": ["in", "class", "residential", "service", "track", "path"], "minzoom": 5, "paint": { "line-color": "hsl(0, 0%, 97%)", "line-width": [ "interpolate", ["linear"], ["zoom"], 5, 0.15, 7, 0.25, 12, 0.6, 16, 1 ], "line-opacity": [ "interpolate", ["linear"], ["zoom"], 5, 0.1, 7, 0.2, 12, 0.6 ] } }, { "id": "roads-local", "type": "line", "source": "osm", "source-layer": "transportation", "filter": ["==", "class", "minor"], "minzoom": 6, "paint": { "line-color": "hsl(0, 0%, 97%)", "line-width": [ "interpolate", ["linear"], ["zoom"], 6, 0.15, 8, 0.3, 12, 0.8, 16, 1.2 ], "line-opacity": [ "interpolate", ["linear"], ["zoom"], 6, 0.1, 8, 0.3, 12, 0.6 ] } }, { "id": "roads-primary", "type": "line", "source": "osm", "source-layer": "transportation", "filter": ["in", "class", "primary", "secondary"], "minzoom": 7, "paint": { "line-color": "#fff", "line-width": [ "interpolate", ["linear"], ["zoom"], 7, 0.3, 12, 1.5, 16, 3 ] } }, { "id": "roads-motorway", "type": "line", "source": "osm", "source-layer": "transportation", "filter": ["in", "class", "motorway", "trunk"], "minzoom": 6, "paint": { "line-color": "hsl(0, 0%, 100%)", "line-width": [ "interpolate", ["linear"], ["zoom"], 6, 0.5, 10, 2, 14, 5 ] } }, { "id": "boundary-country", "type": "line", "source": "osm", "source-layer": "boundary", "filter": ["all", ["==", "admin_level", 2], ["!=", "maritime", 1]], "paint": { "line-color": "hsl(0, 0%, 60%)", "line-width": [ "interpolate", ["linear"], ["zoom"], 0, 0.5, 4, 1.5, 6, 2 ], "line-opacity": 0.5 } }, { "id": "boundary-state", "type": "line", "source": "osm", "source-layer": "boundary", "filter": ["all", ["==", "admin_level", 4], ["!=", "maritime", 1]], "minzoom": 2, "paint": { "line-color": "hsla(0, 0%, 60%, 0.5)", "line-dasharray": [2, 1], "line-width": [ "interpolate", ["linear"], ["zoom"], 2, 0.5, 5, 1, 8, 2 ] } }, { "id": "boundary-local", "type": "line", "source": "osm", "source-layer": "boundary", "filter": ["all", ["==", "admin_level", 6], ["!=", "maritime", 1]], "minzoom": 6, "paint": { "line-color": "#bbbbbb", "line-width": [ "interpolate", ["linear"], ["zoom"], 6, 0.5, 10, 1.2 ], "line-opacity": 0.5 } }, { "id": "buildings", "type": "fill", "source": "osm", "source-layer": "building", "minzoom": 14, "paint": { "fill-color": "rgba(222, 211, 190, 1)", "fill-opacity": { "base": 1, "stops": [[13, 0], [15, 1]] } } }, { "id": "places", "type": "symbol", "source": "osm", "source-layer": "place", "minzoom": 2, "filter": ["!=", "class", "continent"], "layout": { "text-size": 12, "text-font": ["Noto Sans Regular"], "text-field": ["coalesce", ["get", "name:en"], ["get", "name_en"], ["get", "name"]] }, "paint": { "text-color": "#444", "text-halo-color": "#ffffff", "text-halo-width": 2 } }, { "id": "road-labels", "type": "symbol", "source": "osm", "source-layer": "transportation_name", "minzoom": 13, "layout": { "symbol-placement": "line", "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]], "text-font": ["Noto Sans Regular"], "text-size": [ "interpolate", ["linear"], ["zoom"], 13, 10, 16, 14 ] }, "paint": { "text-color": "#444", "text-halo-color": "#ffffff", "text-halo-width": 1 } }, { "id": "poi-labels", "type": "symbol", "source": "osm", "source-layer": "poi", "minzoom": 14, "layout": { "text-field": ["coalesce", ["get", "name:en"], ["get", "name_en"], ["get", "name"]], "text-font": ["Noto Sans Regular"], "text-size": [ "interpolate", ["linear"], ["zoom"], 14, 9, 18, 13 ] }, "paint": { "text-color": "rgba(100,100,100,0.6)", "text-halo-color": "rgba(255,255,255,0.6)", "text-halo-width": 1 } }, { "id": "airport-labels", "type": "symbol", "source": "osm", "source-layer": "aeroway", "minzoom": 14, "layout": { "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]], "text-font": ["Noto Sans Regular"], "text-size": 12 }, "paint": { "text-color": "rgba(100,100,100,0.6)", "text-halo-color": "rgba(255,255,255,0.6)", "text-halo-width": 1 } }, { "id": "rail-labels", "type": "symbol", "source": "osm", "source-layer": "transportation", "filter": ["==", "class", "rail"], "minzoom": 14, "layout": { "symbol-placement": "line", "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]], "text-font": ["Noto Sans Regular"], "text-size": 11 }, "paint": { "text-color": "rgba(100,100,100,0.6)", "text-halo-color": "rgba(255,255,255,0.6)", "text-halo-width": 1 } }, { "id": "natural-labels", "type": "symbol", "source": "osm", "source-layer": "natural", "minzoom": 14, "layout": { "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]], "text-font": ["Noto Sans Regular"], "text-size": 11 }, "paint": { "text-color": "rgba(100,100,100,0.6)", "text-halo-color": "rgba(255,255,255,0.6)", "text-halo-width": 1 } }, { "id": "house-numbers", "type": "symbol", "source": "osm", "source-layer": "housenumber", "minzoom": 15, "layout": { "text-field": "{housenumber}", "text-font": ["Noto Sans Regular"], "text-size": [ "interpolate", ["linear"], ["zoom"], 15, 10, 29, 14 ] }, "paint": { "text-color": "rgba(100,100,100,0.5)", "text-halo-color": "rgba(255,255,255,0.6)", "text-halo-width": 1 } }, { "id": "contours-line", "type": "line", "source": "contours", "source-layer": "contour", "minzoom": 10, "paint": { "line-color": "#999", "line-opacity": [ "interpolate", ["linear"], ["zoom"], 10, 0.2, 14, 0.5 ], "line-width": [ "interpolate", ["linear"], ["zoom"], 10, 0.5, 14, 1.2 ] } } ], "id": "light-matter-basic" }