Hi,
We noticed a strange problem:
We created additional print service to print our web map.
It works ok except extent problem when printing a map with extent including "international date line" (or +/-180 (dateline)) (or the horizon of the coordinate system) - (it ok for Europe or Africa).
Example:
We zoom in on our web map to see only New Zealand (include "international date line" or what is a correct name?)
Press print - the printout has wrong extent - include all world.
Even we do NOT include our own data (switch off all data layers) and print ESRI basemap - the extent is still wrong.
We set in mxd template
-> MainMap -> Properties ->CoordinateSystem: WGS 84 Web Mercator auxilary wkid: 3857.
-> MainMap ->Properties->DataFrame->Extent-> Automatic
Any help please.
Maybe wrong CoordinateSystem?
Hi Piterson, I met this issue before, and resolved it finally.
I use ArcGIS API for JavaScript 3.2. 'esri/tasks/PrintTask' class.
The solution is: don't define Parameters.outSpatialReference in printTask.execute function.
I think somehow this is a bug in exportWebMap service. in mapOptions the spatialReference and outSpatialReference are transformed to wkt. and if you define outSpatialReference, it isn't transformed.