AnsweredAssumed Answered

PrintTask shows copyright from service

Question asked by daitam on Aug 26, 2013
Latest reply on Aug 26, 2013 by daitam
I'm using PrintTask to get my map in JPG format and everything goes ok, except if any of services, loaded on map, have some copyright text, that text is being added at the bottom right corner of JPG. I'm using MAP_ONLY template. I have full control of application and Export Web Map task server. Services are hosted elsewhere and I can't modify their properties. I need to get rid of those copyright texts in JPG. Tried to use layoutOptions hoping it would replace service's copyright, but had no luck with that. As I reduce DPI parameter, the copyright text becomes smaller, but it affects image quality so it's not a solution. Printing function code below:

var url =' Web Map Task'; var template = new esri.tasks.PrintTemplate();   template.exportOptions = {  width: 500,  height: 530,  dpi: 200   };   template.format = "JPG";   template.layoutTemplate = "MAP_ONLY";   template.preserveScale = false;   template.layoutOptions = {  'copyright' : 'better this text, than from service...'   }; var printTask = new esri.tasks.PrintTask(url); var printResult = function(result){  /* outputs link to download JPG */ }; var params = new esri.tasks.PrintParameters(); = map; params.template = template; printTask.execute(params, printResult);

Attached a resulting JPG.