AnsweredAssumed Answered

How can I take a screenshot of a web page that contains an ESRI MapView?

Question asked by jordancwright on Dec 5, 2019
Latest reply on Dec 8, 2019 by khutchins-esristaff

I am trying to take a screenshot of a specific section of a web page that contains an ESRI MapView.  That MapView contains a FeatureLayer with features built locally on the client side.  I have tried using html2canvas, and everything on the page renders correctly, including rendering the map container, but the actual map data does not appear.  The Zoom UI tool and the attribution both show up correctly, but the map is just an empty gray box.  I have tried running html2canvas with both 'allowTaint: true' and 'useCORS: true', but neither makes a difference.


Has anyone had luck taking a screenshot of a page with an ESRI map embedded in it using html2canvas or any other tool?


I am using the Arcgis JS API version 4.12