Using ArcGIS version 3.23, I am attempting to follow the directions in this question save map as image using javascript using utility.arcgis.com in order to create an image of my current map. Unfortunately, when I try running that code, calling printTask.execute just results in a "TypeError: undefined is not an object (evaluating 'this._url.query')" error. 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.
... View more