Closed andest01 closed 5 years ago
https://www.mapbox.com/maps/outdoors/
Available in Mapbox Terrain V2
{
"id": "contour-line",
"type": "line",
"source": "composite",
"source-layer": "contour",
"minzoom": 11,
"filter": ["!=", ["get", "index"], -1],
"layout": {},
"paint": {
"line-opacity": [
"interpolate",
["linear"],
["zoom"],
11,
["match", ["get", "index"], [1, 2], 0.15, 0.25],
12,
["match", ["get", "index"], [1, 2], 0.3, 0.5]
],
"line-color": "hsl(100, 100%, 20%)",
"line-width": [
"interpolate",
["linear"],
["zoom"],
13,
["match", ["get", "index"], [1, 2], 0.5, 0.6],
16,
["match", ["get", "index"], [1, 2], 0.8, 1.2]
],
"line-offset": [
"interpolate",
["linear"],
["zoom"],
13,
["match", ["get", "index"], [1, 2], 1, 0.6],
16,
["match", ["get", "index"], [1, 2], 1.6, 1.2]
]
}
},
and the source
"sources": {
"composite": {
"url": "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2",
"type": "vector"
}
},
fixed and deployed