<?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: set ArcGISDynamicMapServiceLayer properties in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417850#M11913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rhett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this thread give you any pointers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/79733-Enable-default-popups-for-user-added-layer" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/79733-Enable-default-popups-for-user-added-layer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2013 22:47:37 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2013-03-13T22:47:37Z</dc:date>
    <item>
      <title>set ArcGISDynamicMapServiceLayer properties</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417848#M11911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am utilizing the following code from the MapServicesWidget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;case "dynamic":
 {
&amp;nbsp; var dynLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(url);
&amp;nbsp; dynLayer.alpha = alpha;
&amp;nbsp; dynLayer.id = label;
&amp;nbsp; dynLayer.name = label;
&amp;nbsp; dynLayer.token = token;
&amp;nbsp; dynLayer.visible = visible;
&amp;nbsp; dynLayer.useMapTime = useMapTime;
&amp;nbsp; dynLayer.sublayerid = sublayerid ;
&amp;nbsp; dynLayer.popupconfig= popupconfig;

&amp;nbsp; if (autoRefresh &amp;gt; 0)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; setInterval(dynLayer.refresh, autoRefresh * 1000);
&amp;nbsp; }
&amp;nbsp; if (imageFormat)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; dynLayer.imageFormat = imageFormat;
&amp;nbsp; }
&amp;nbsp; if (visibleLayers)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var vizLayers:Array = visibleLayers.split(",");
&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt; vizLayers.length; i++)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; vizLayers&lt;I&gt; = Number(vizLayers&lt;I&gt;); // convert to Numbers
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; dynLayer.visibleLayers = new ArrayCollection(vizLayers);
&amp;nbsp; }
&amp;nbsp; if (proxyUrl &amp;amp;&amp;amp; useProxy)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; dynLayer.proxyURL = proxyUrl;
&amp;nbsp; }

&amp;nbsp; map.addLayer(dynLayer);
&amp;nbsp; break;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This allows me to pick from a list, and load the service into the current map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Was wondering if there is a way to set the popupconfig file to use for each sublayer (similar to the config.xml file) so that when i load the service with the widget (something like in red above), it will recongnize the appropriate popupconfig.xml file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any suggestions,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417848#M11911</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-12T16:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: set ArcGISDynamicMapServiceLayer properties</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417849#M11912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bump...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still no way to define the popup config file for layers added programtically?&amp;nbsp; Maybe and enhancement in 3.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still hoping,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 22:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417849#M11912</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-03-13T22:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: set ArcGISDynamicMapServiceLayer properties</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417850#M11913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rhett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this thread give you any pointers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/79733-Enable-default-popups-for-user-added-layer" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/79733-Enable-default-popups-for-user-added-layer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 22:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417850#M11913</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-03-13T22:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: set ArcGISDynamicMapServiceLayer properties</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417851#M11914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Anthony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That was good timing, had not seen that new post yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should help get me on the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 22:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/set-arcgisdynamicmapservicelayer-properties/m-p/417851#M11914</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-03-13T22:52:39Z</dc:date>
    </item>
  </channel>
</rss>

