{ "version": 8, "metadata": { "test": { "height": 64, "width": 64 } }, "center": [ 0, 0 ], "zoom": 0, "sprite": "local://sprites/sprite", "sources": { "geojson": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "x": 35 }, "geometry": { "type": "Point", "coordinates": [ -5, 0 ] } }, { "type": "Feature", "properties": { "x": 55 }, "geometry": { "type": "Point", "coordinates": [ 5, 0 ] } } ] } } }, "glyphs": "local://glyphs/{fontstack}/{range}.pbf", "layers": [ { "id": "background", "type": "background", "paint": { "background-color": "white" } }, { "id": "text", "type": "symbol", "source": "geojson", "layout": { "icon-allow-overlap": true, "icon-image": "building-12" }, "paint": { "icon-opacity": { "property": "x", "base": 1, "stops": [ [ 0, 0 ], [ 100, 1 ] ] } } } ] }