Why is takeScreenshot in JavaScript missing layers?

499
0
02-26-2020 10:12 AM
JohnHarris3
New Contributor

When I use `view.takeScreenshot()` I'm only getting part of the topo layer. I'm not sure why this is is. I included a screenshot from takeScreenshot and a screen shot of what's actually on my screen.

view.takeScreenshot({ format: "jpg" })
.then(function (screenshot) {
console.log(screenshot);
});

What do I need to change to get the drawing and the other layers?

0 Kudos
0 Replies