{ "version": 8, "metadata": { "test": { "width": 128, "height": 64 } }, "zoom": 0, "sources": { "geojson": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "property": 1 }, "geometry": { "type": "LineString", "coordinates": [ [ -40, -18 ], [ 40, -18 ] ] } }, { "type": "Feature", "properties": { "property": 2 }, "geometry": { "type": "LineString", "coordinates": [ [ -40, -10 ], [ 40, -10 ] ] } }, { "type": "Feature", "properties": { "property": 3 }, "geometry": { "type": "LineString", "coordinates": [ [ -40, -2 ], [ 40, -2 ] ] } }, { "type": "Feature", "properties": { "property": 6 }, "geometry": { "type": "LineString", "coordinates": [ [ -40, 7 ], [ 40, 7 ] ] } }, { "type": "Feature", "properties": { "property": 8 }, "geometry": { "type": "LineString", "coordinates": [ [ -40, 18 ], [ 40, 18 ] ] } } ] } } }, "layers": [ { "id": "road", "type": "line", "source": "geojson", "layout": { "line-cap": "round" }, "paint": { "line-width": ["get", "property"], "line-dasharray": [0, 2] } } ] }