This is just a snippet of the code, but I'm trying to get a grasp on Mapbox interpolate/zoom syntax.
"layerStyle": [
{
"type": "line",
"layout": {},
"paint": {
"line-color": "#6a6a6a",
"line-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
0,
0,
14,
0.3,
22,
0.6
]
}
}
],
So each of these numbers represents a degree of line opacity at a given zoom level right? Or are they in pairs(I didn't write this code, just inherited it)? I've seen examples online of numbers under line-opacity written as pairs in square brackets.
My goal is to have this layer be "invisible" when zoomed out the most (zoom level 1?) and appear closer to a county level (zoom level I'm not sure).