Skip to content

deckgl layer does not show up in html-to-image #8985

Answered by dCogs
dCogs asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to get it to work with this:

<script> HTMLCanvasElement.prototype.getContext = function(origFn) { return function(type, attribs) { attribs = attribs || {}; attribs.preserveDrawingBuffer = true; return origFn.call(this, type, attribs); }; }(HTMLCanvasElement.prototype.getContext); </script>

I haven't finished testing everything, but looks promising.

  • Dan

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dCogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant