Select to view content in your preferred language

ArcGIS 10.1 Print SOE?

4783
1
03-14-2016 05:09 AM
JorgeVinagre
Deactivated User

Hi there

I followed the exemple at ArcGIS Help 10.1 to made a geoprocessing task for a custom print. The web app is using version 3.2 of the JS API and it´s producing wrong results, namely when the basemap scale is out of range, its suppose to export the map with a "blank basemap" but the task seems to try to adjust something to the visibles layers .

I´ve found that upgrading the API version the problem is solved but i cant convert the entire app now(lots of non AMD code)

Can the exemple above be made using a SOE? I havent found any examples so that what im asking.

The ArcGIS Server version is 10.1

Thanks

0 Kudos
1 Reply
nicogis
MVP Frequent Contributor

if you change api js and if there is a problem it should be on the client.

what's the difference between two js client when return definition of map ( var webMapAsJSON ) :

              var printTask = new PrintTask();
              // _getPrintDefinition isn't documented in help
              // ExportWebMap json http://resources.arcgis.com/en/help/main/10.1/index.html#/ExportWebMap_specification/0154000004w8000...
             
              var proxy_getPrintDefinition = printTask._getPrintDefinition;

              printTask._getPrintDefinition = function () {
                  var getPrintDefResult = proxy_getPrintDefinition.apply(this, arguments);
                  return getPrintDefResult;
              }

              var printParameters = new PrintParameters();

              var webMapAsJSON = printTask._getPrintDefinition(this.map, printParameters);

0 Kudos