<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PrintDigit not setting exportOptions in req. - problem with scale dependencies in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printdigit-not-setting-exportoptions-in-req/m-p/574199#M53642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;exportOptions control output size and dpi, which shouldn't affect the scale dependency. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a parameter "preserveScale", please make sure it's been set as true.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2012 21:25:56 GMT</pubDate>
    <dc:creator>JianHuang</dc:creator>
    <dc:date>2012-07-27T21:25:56Z</dc:date>
    <item>
      <title>PrintDigit not setting exportOptions in req. - problem with scale dependencies</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printdigit-not-setting-exportoptions-in-req/m-p/574198#M53641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Scale dependancies are not working correctly in a print task using the print digit.&amp;nbsp; The map layers are drawing correctly in the web interface, but the scales depenancies are not being honoured when printing.&amp;nbsp; 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.&amp;nbsp; I am wondering if this is causing ArcGIS Server issues in determining the the correct resolution.&amp;nbsp; The map looks correct in all respects, except that it showing a layer that should definitely be turned off at the current scale.&amp;nbsp;&amp;nbsp; I am not sure how it is working at all without exportOptions in the JSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the request that was sent to the 10.1 server from the printDigit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;GET /arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?f=json&amp;amp;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":"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;","title":"layer0","opacity":1},{"id":"layer1","url":"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://xxx.xxx.xxx.xxx:6080/arcgis/rest/services/plants/plantsgen1/MapServer" rel="nofollow" target="_blank"&gt;http://xxx.xxx.xxx.xxx:6080/arcgis/rest/services/plants/plantsgen1/MapServer&lt;/A&gt;&lt;SPAN&gt;","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]}]}}}&amp;amp;Format=JPG&amp;amp;Layout_Template=A3 Landscape&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The print task works correctly in silverlight API.&amp;nbsp; It specifies exportOptions&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 21:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printdigit-not-setting-exportoptions-in-req/m-p/574198#M53641</guid>
      <dc:creator>ArtUllman</dc:creator>
      <dc:date>2012-07-27T21:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: PrintDigit not setting exportOptions in req. - problem with scale dependencies</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printdigit-not-setting-exportoptions-in-req/m-p/574199#M53642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;exportOptions control output size and dpi, which shouldn't affect the scale dependency. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a parameter "preserveScale", please make sure it's been set as true.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 21:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printdigit-not-setting-exportoptions-in-req/m-p/574199#M53642</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2012-07-27T21:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: PrintDigit not setting exportOptions in req. - problem with scale dependencies</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printdigit-not-setting-exportoptions-in-req/m-p/574200#M53643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; You were correct.&amp;nbsp; There was nothing wrong with the scale dependancies or exportOptions parameter.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out that there was another layer that was being drawn which looked identical to the layer that I thought I had scale dependancy issue.&amp;nbsp; I did not expect this layer to be drawn because of the filters I set in the Query Definition.&amp;nbsp; However, my Java Script added a new filter using a layer definition.&amp;nbsp; It looks like the LayerDefinition overrode the query definition in the MXD.&amp;nbsp; I thought it would just append to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, my problem had nothing to do with scale dependancies or exportOptions.&amp;nbsp; My problem was that I did not understand how layerDefinition interacted with Query Definition in the MXD.&amp;nbsp; I am not sure why it worked correctly in the Java Script interface, but did not work in the Print Task.&amp;nbsp; It doesn't matter though, since I was able to fix my code by appending the original query definition in my layer definition.&amp;nbsp; Once I did this, I got consistent results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your assistance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 18:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printdigit-not-setting-exportoptions-in-req/m-p/574200#M53643</guid>
      <dc:creator>ArtUllman</dc:creator>
      <dc:date>2012-07-31T18:05:55Z</dc:date>
    </item>
  </channel>
</rss>

