{ "version": 8, "metadata": { "test": { "width": 64, "height": 64 } }, "zoom": 0.5, "sources": { "geojson": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "property": 1 }, "geometry": { "type": "LineString", "coordinates": [ [ -10, -5 ], [ 10, -5 ] ] } }, { "type": "Feature", "properties": { "property": 2 }, "geometry": { "type": "LineString", "coordinates": [ [ -10, 0 ], [ 10, 0 ] ] } }, { "type": "Feature", "properties": { "property": 3 }, "geometry": { "type": "LineString", "coordinates": [ [ -10, 5 ], [ 10, 5 ] ] } } ] } } }, "layers": [ { "id": "road", "type": "line", "source": "geojson", "paint": { "line-width": { "property": "property", "type": "categorical", "stops": [ [ { "zoom": 0, "value": 1 }, 1 ], [ { "zoom": 0, "value": 2 }, 2 ], [ { "zoom": 0, "value": 3 }, 3 ], [ { "zoom": 1, "value": 1 }, 4 ], [ { "zoom": 1, "value": 2 }, 5 ], [ { "zoom": 1, "value": 3 }, 6 ] ] }, "line-dasharray": { "stops": [ [ 0, [ 1, 1 ] ], [ 1, [ 2, 1 ] ] ] } } } ] }