<?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 ArcGISDynamicMapServiceLayer problem in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/arcgisdynamicmapservicelayer-problem/m-p/745987#M16522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGISDynamicMapServiceLayer (API v.2.4) pointing to the Map service containing 40+ layers. Some of these layers defined visible in the MXD, others - not. I need to show selected features from one of layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; layerDefs[layerID] = expression;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.visibleLayers = new ArrayCollection([layerID]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.layerDefinitions = layerDefs;

&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.dpi = 96;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.imageFormat = "png24";
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.imageTransparency = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.disableClientCaching = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.visible = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.alpha = 0.5;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine in the development environment, and I can see in the Fiddler the correct request for export .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when the swf is uploaded onto the production server, this request is issued wrong: instead of setting layers=show:layerID (show:37 in my case), it is set to the list of all layers, defined as visible in the MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only difference between two environments: in the dev environment I'm using proxy to access the production services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What may be wrong ?&amp;nbsp; What should I do to isolate the problem ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be highly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gennady&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2014 15:30:13 GMT</pubDate>
    <dc:creator>GennadyOster</dc:creator>
    <dc:date>2014-03-13T15:30:13Z</dc:date>
    <item>
      <title>ArcGISDynamicMapServiceLayer problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/arcgisdynamicmapservicelayer-problem/m-p/745987#M16522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGISDynamicMapServiceLayer (API v.2.4) pointing to the Map service containing 40+ layers. Some of these layers defined visible in the MXD, others - not. I need to show selected features from one of layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; layerDefs[layerID] = expression;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.visibleLayers = new ArrayCollection([layerID]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.layerDefinitions = layerDefs;

&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.dpi = 96;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.imageFormat = "png24";
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.imageTransparency = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.disableClientCaching = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.visible = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; designLand.alpha = 0.5;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine in the development environment, and I can see in the Fiddler the correct request for export .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when the swf is uploaded onto the production server, this request is issued wrong: instead of setting layers=show:layerID (show:37 in my case), it is set to the list of all layers, defined as visible in the MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only difference between two environments: in the dev environment I'm using proxy to access the production services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What may be wrong ?&amp;nbsp; What should I do to isolate the problem ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be highly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gennady&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 15:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/arcgisdynamicmapservicelayer-problem/m-p/745987#M16522</guid>
      <dc:creator>GennadyOster</dc:creator>
      <dc:date>2014-03-13T15:30:13Z</dc:date>
    </item>
  </channel>
</rss>

