My code is virtually identical to that post, other than changing the references to the map, etc to actually point to my map instances.
Is there a better way to save an image of a map? Something not so convoluted? Or, if not, how can I fix this issue? For what it's worth, I've also looked at the client side option listed in that thread, but being that it is written in typescript, and the compiled version gives an error (not to mention all the errors about missing requires when compiling), I haven't been able to get that to work either.
Solved! Go to Solution.
Thanks. Using the print dijit works - sometimes. Generally I have to click the button two or three times before I get the Printout link, the rest of the time I just get timeout errors. This is using sampleserver6.arcgisonline.com.
I'd like to update to 4, but at first glance it looks like that would be a fairly major overhaul.
Correct, upgrading to 4x would be a rewrite of your application(s). But something worth considering for future projects.
I would not recommend using sampleserver6 for production applications. That service is primarily used for samples and testing. The AGO utility print service or your own hosted print service would be recommended.