Im having an issue trying to get the url of the map being printed with a dynamic layer. WIth just tiled services and basemap it prints just fine.
// USED FOR PRINTING OF MAPS
function print(map_div_id)
{
var printUrl = "http://prodgis.agriculture.purdue.edu:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute";
printTask = new esri.tasks.PrintTask(printUrl);
var template = new esri.tasks.PrintTemplate();
template.format = "JPG";
template.layout = "MAP_ONLY";
template.preserveScale = true;
var params = new esri.tasks.PrintParameters();
params.map = map[map_div_id];
params.template = template;
printTask.execute(params, printComplete);
}
My Error I get is
0: "Error executing tool.: Layer "prime_soil_map_graphics": Missing 'style' in symbol.↵Failed to execute (Export Web Map).↵Failed to execute (Export Web Map Task)."
Any ideas what is happening ?
Here is a JS fiddle to test with just press the print button !
prime_soil_map_graphics
? – Mintx May 8 '13 at 21:17