<?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 Sublayer Popups in 2.5 with visiblelayers in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472607#M10840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an issue with popups in the flex 2.5 viewer. When I have an operational layer that has the visiblelayer attribute set, the sublayer popups will not appear. If I remove the visiblelayer attribute from the layer tag, they work just fine. Bug?? Or am I doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;layer label="NGA Transportation" type="dynamic" visible="false" alpha="1"
&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://services.nationalmap.gov/ArcGIS/rest/services/transportation/MapServer"
&amp;nbsp;&amp;nbsp;&amp;nbsp; visiblelayers="8,9"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sublayer id="8" popupconfig="popups/PopUp_Airports.xml"/&amp;gt;
&amp;lt;/layer&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:31:11 GMT</pubDate>
    <dc:creator>AngieCausey</dc:creator>
    <dc:date>2021-12-12T16:31:11Z</dc:date>
    <item>
      <title>Sublayer Popups in 2.5 with visiblelayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472607#M10840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an issue with popups in the flex 2.5 viewer. When I have an operational layer that has the visiblelayer attribute set, the sublayer popups will not appear. If I remove the visiblelayer attribute from the layer tag, they work just fine. Bug?? Or am I doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;layer label="NGA Transportation" type="dynamic" visible="false" alpha="1"
&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://services.nationalmap.gov/ArcGIS/rest/services/transportation/MapServer"
&amp;nbsp;&amp;nbsp;&amp;nbsp; visiblelayers="8,9"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sublayer id="8" popupconfig="popups/PopUp_Airports.xml"/&amp;gt;
&amp;lt;/layer&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472607#M10840</guid>
      <dc:creator>AngieCausey</dc:creator>
      <dc:date>2021-12-12T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sublayer Popups in 2.5 with visiblelayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472608#M10841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Angie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You need to post Flex Viewer/Widget Question in the future to the Flex Viewer forum here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex"&gt;http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have tested and can confirm that the same behavior that you describe (popups not working when using the visiblelayers attribute) does not work for me either for that Map Service. But I am not leaning towards a bug as I can not duplicate this with other map services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 15:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472608#M10841</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-01-27T15:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sublayer Popups in 2.5 with visiblelayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472609#M10842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a bug that's being caused by TocMapLayerItem.as reversing the order of the layerInfos on the dynamic layer. This is a problem in this service since it has group layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use two "feature" layers instead, or you can fix the code by changing line 283 of TocMapLayerItem.as from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var actualVisibleLayers:Array = getActualVisibleLayers(arcGISDynamicMapServiceLayer.visibleLayers.toArray(), arcGISDynamicMapServiceLayer.layerInfos);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var actualVisibleLayers:Array = getActualVisibleLayers(arcGISDynamicMapServiceLayer.visibleLayers.toArray(), arcGISDynamicMapServiceLayer.layerInfos.slice());&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 16:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472609#M10842</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-01-27T16:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sublayer Popups in 2.5 with visiblelayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472610#M10843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you dpaddock!&amp;nbsp; Your fix worked beautifully!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 12:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/sublayer-popups-in-2-5-with-visiblelayers/m-p/472610#M10843</guid>
      <dc:creator>AngieCausey</dc:creator>
      <dc:date>2012-01-30T12:55:56Z</dc:date>
    </item>
  </channel>
</rss>

