How can I create API that returns canvas .png without browser?
<p>I need to create API which will input json file with features, and output will be png image (or base64) which will represent canvas of OpenLayers 3 map (<code>canvas.toDataUrl()</code>). I don't need to show map in the browser or even open the browser. Just API as some url /api/getMapImage which will return image of input json. I want to use NodeJS. I already have javascript which do all required actions (like defining map, taking canvas as image).</p>

<p>Is this possible to do?</p>