{ "version": 8, "metadata": { "test": { "width": 64, "height": 64 } }, "sources": { "geojson": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "property": 0 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -12, -12 ], [ -12, 12 ], [ -4, 12 ], [ -4, -12 ], [ -12, -12 ] ] ] } }, { "type": "Feature", "properties": { "property": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -4, -12 ], [ -4, 12 ], [ 4, 12 ], [ 4, -12 ], [ -4, -12 ] ] ] } }, { "type": "Feature", "properties": { "property": 2 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 4, -12 ], [ 4, 12 ], [ 12, 12 ], [ 12, -12 ], [ 4, -12 ] ] ] } } ] } } }, "sprite": "local://sprites/emerald", "layers": [ { "id": "fill", "type": "fill", "source": "geojson", "paint": { "fill-antialias": false, "fill-pattern": "generic_icon", "fill-opacity": { "property": "property", "stops": [ [ 0, 1 ], [ 4, 0 ] ] } } } ] }