$(function() { var viewer = document.getElementById("cesiumContainer"); function print_voucher() { var win = window.open(); win.document.write("<br><img src='"+viewer.toDataURL()+"'/>"); win.print(); win.location.reload(); } $("#printVoucher").click(function(){ print_voucher(); }); });
var viewer = new Cesium.Viewer('cesiumContainer', { contextOptions: { webgl: { preserveDrawingBuffer: true } }});
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I hope I can help you.