webglearth / webglearth2

[UNMAINTAINED] WebGL Earth 2 - the source code of the project
Apache License 2.0
884 stars 212 forks source link

Canvas toBlob #104

Open nudgesource opened 6 years ago

nudgesource commented 6 years ago

When you call toBlob() on the canvas that is generated it produces an empty image. It appears that when the context ("webgl") for the canvas is created for drawing, a parameter needs to be passed in preserveDrawingBuffer:true as an option. Is that something that can be added as on option on the map constructor options so that the image generated can be accessed?

ghost commented 5 years ago

I would like to draw earth.canvas to another canvas. I believe that it is not working for a similar reason.