<?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: Reorder TOC Sublayers in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14440#M329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aaron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; This is something I have not dealt with or attempted. It seems like an awefull lot of code and headache for little return on needed ability.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2013 11:40:16 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2013-11-15T11:40:16Z</dc:date>
    <item>
      <title>Reorder TOC Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14435#M324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to move the sublayers (children) up and down in the TOC and map drawing order? I have set the ability to drag and drop layers in the TOC, the UI allows the ability to move the sublayers, but the map/toc reorder only applies to the parent layers. Is there a way to allow users to reorder the sublayers both in the TOC and map drawing/layering? Do each of the sublayers have to brought in as ArcGISMapServiceLayers for this to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gratefully,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 13:59:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14435#M324</guid>
      <dc:creator>AaronBarkhurst</dc:creator>
      <dc:date>2013-11-01T13:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TOC Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14436#M325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aaron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; There is a whole sample dedicated to demonstrating exactly what you are asking:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/flex/sample-code/changelayerordering.htm"&gt;https://developers.arcgis.com/en/flex/sample-code/changelayerordering.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:07:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14436#M325</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-11-01T14:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TOC Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14437#M326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the link. I looked over it and have been working to get something similar implemented into the TOC widget and here's where I'm at. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data source for the TOC in the link you referenced is a list of the layer infos, but the TOC widget TOC scroller seems to only really be "aware" of the main parents (indices) involved in the scroller if there are subcategories/layers. So what I was attempting to do was to dispatch an event with the TOC data on the dragDrop event. From there, I was going to listen for that dispatched event in the TocMapLayerItem.as and basically create and run another function similar to the createChildren function that would reorder the dynamic layer infos to match the new order of the subcategories/layers and then call toc.map.reorderLayer to redraw the map layers. However I'm having some trouble getting the index of the subcategory/layer being moved to be able to know how to reorder the dynamic layer infos in the new function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I WAY off track here? If so, do you have an easier solution/idea that could get me on the right path?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gratefully,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 15:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14437#M326</guid>
      <dc:creator>AaronBarkhurst</dc:creator>
      <dc:date>2013-11-14T15:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TOC Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14438#M327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aaron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You are off in a whole new area that I have not considered going down. I don't have any advice at this point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 16:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14438#M327</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-11-14T16:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TOC Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14439#M328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My crazy method aside, is there a more efficient method that makes more sense? Or is this something you haven't dealt with or attempted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 19:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14439#M328</guid>
      <dc:creator>AaronBarkhurst</dc:creator>
      <dc:date>2013-11-14T19:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TOC Sublayers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14440#M329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aaron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; This is something I have not dealt with or attempted. It seems like an awefull lot of code and headache for little return on needed ability.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 11:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/reorder-toc-sublayers/m-p/14440#M329</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-11-15T11:40:16Z</dc:date>
    </item>
  </channel>
</rss>

