jquery - javascript: draw an image underground and save -



jquery - javascript: draw an image underground and save -

i working on censiumjs, javascript map library. want create heatmap json info , render on map.

currently thought draw heatmap on hidden canvas using heatmap javascript plugin, save canvas image file, , render image on map.

however found cannot draw on hidden canvas. wondering how can draw image underground , save while loading map?

thanks help!

you can utilize offscreen rendering

function main(){ // here create offscreen canvas var offscreencanvas = document.createelement('canvas'); offscreencanvas.width = 300px; offscreencanvas.height = 300px; var context = offscreencanvas.getcontext('2d'); // draw offscreen context context.fillrect(10,10,290,290); // ... }

javascript jquery html5 canvas cesium

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -