{ "version": 8, "metadata": { "test": { "width": 100, "height": 100 } }, "sources": { "geojson": { "type": "geojson", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "offset": [0,1] }, "geometry": { "type": "Point", "coordinates": [ -10, 0 ] } }, { "type": "Feature", "properties": { "offset": [1,-1] }, "geometry": { "type": "Point", "coordinates": [ 10, 0 ] } } ] } } }, "glyphs": "local://glyphs/{fontstack}/{range}.pbf", "sprite": "local://sprites/sprite", "layers": [ { "id": "symbol", "type": "symbol", "source": "geojson", "layout": { "text-field": "hello", "icon-image": "oneway", "text-offset": { "type": "identity", "property": "offset" }, "text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ], "text-size": 10 }, "paint": { "text-color": "black" } } ] }