canvas output for tessel in browsers
npm install --save tessel-canvas-browser
Given a tessel map state and a canvas element from the DOM, download all necessary
tiles and render them into the canvas, calling
callback with any errors and
the canvas element when finished.
crossOrigin is a boolean flag for whether images are loaded with CORS so that
the resulting Canvas does not suffer from the same origin policy.
var tessel = require'tessel'tesselCanvas = require'tessel-canvas-browser';var map = tesselmapcanvas = documentbodyappendChilddocumentcreateElement'canvas';canvaswidth = 500;canvasheight = 500;tesselCanvasmapstate canvas;