I'm using CesuimJS (http://cesiumjs.org/) to present map. I want to take a screenshot of part of the map.
I tried using Three.js (http://learningthreejs.com/blog/2011/09/03/screenshot-in-javascript/) but failed to take a screenshot
Any ideas?
There is no need to use ThreeJS.
You can use the canvas function toDataUrl.
viewer.render();
viewer.canvas.toDataUrl();
toDataUrl returns url that can be used to get the screenshot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With