Select to view content in your preferred language

Print extent problem when printing include extent with "international date line"

683
2
12-15-2016 03:53 PM
PitersonPaulgek
New Contributor III

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.

0 Kudos
2 Replies
PitersonPaulgek
New Contributor III

Maybe wrong CoordinateSystem?

0 Kudos
phoebezhang
New Contributor

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.

0 Kudos