I'm using the PrintTask to export my map to PDF and it's working when I have graphics in the default GraphicsLayer of the map. But if a create a new GraphicsLayer and add new graphics to it the PrintTask won't execute but won't throw an error. Is this a bug?
Does anyone have an example of printing graphics in a GraphicsLayer using PrintTask? For more details I'm adding polygons to my GraphicsLayer using SimpleFillSymbols.
Using Chrome I got this message: Uncaught typeerror: Converting circular structure to JSON. That helped me find what was going on. Firefox console and firebug were not sending any message.
Using Chrome I got this message: Uncaught typeerror: Converting circular structure to JSON. That helped me find what was going on. Firefox console and firebug were not sending any message.
By the way, if you aren't seeing any error messages in the console (when there clearly is an error), you can wrap a try/catch around the problematic code.
try{
//code here
}catch(e){
console.log('error', e);
}
You mean you are able to add and print image on PDF document, but not capable of printing image in GraphicsLayer? It's really strange. I have never had such problem before.