artullman

PrintDigit not setting exportOptions in req. - problem with scale dependencies

Discussion created by artullman on Jul 27, 2012
Latest reply on Jul 31, 2012 by artullman
Scale dependancies are not working correctly in a print task using the print digit.  The map layers are drawing correctly in the web interface, but the scales depenancies are not being honoured when printing.  I used fiddler to capture the URL going to the 10.1 Print Utility. I noticed that the exportOptions parameter is not in the URL.  I am wondering if this is causing ArcGIS Server issues in determining the the correct resolution.  The map looks correct in all respects, except that it showing a layer that should definitely be turned off at the current scale.   I am not sure how it is working at all without exportOptions in the JSON.

Here is the request that was sent to the 10.1 server from the printDigit:

GET /arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?f=json&Web_Map_as_JSON={"mapOptions":{"extent":{"xmin":-11147195.71856907,"ymin":2961706.9129124978,"xmax":-9437452.26988671,"ymax":4056285.1579559264,"spatialReference":{"wkid":102100}},"spatialReference":{"wkid":102100},"scale":4622324.43430898},"operationalLayers":[{"id":"layer0","url":"http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer","title":"layer0","opacity":1},{"id":"layer1","url":"http://xxx.xxx.xxx.xxx:6080/arcgis/rest/services/plants/plantsgen1/MapServer","title":"layer1","opacity":1,"visibleLayers":[0,2,3,4],"layers":[{"id":2,"layerDefinition":{"definitionExpression":"SYMBOL='SPAL'"}},{"id":3,"layerDefinition":{"definitionExpression":"SYMBOL='SPAL'"}},{"id":4,"layerDefinition":{"definitionExpression":"SYMBOL='SPAL'"}}]}],"layoutOptions":{"titleText":"NRCS Plant Database - SPAL","authorText":"xxxx","copyrightText":"xxxx","scaleBarOptions":{"metricUnit":"Kilometers","metricLabel":"km","nonMetricUnit":"Miles","nonMetricLabel":"mi"},"legendOptions":{"operationalLayers":[{"id":"layer1","subLayerIds":[0,2,3,4]}]}}}&Format=JPG&Layout_Template=A3 Landscape

The print task works correctly in silverlight API.  It specifies exportOptions

Outcomes