<?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: Flex Sample Viewer TOC order in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694721#M15507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;huh...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help though Robert. Its always good to know what can and can't be done (easily).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 18:12:25 GMT</pubDate>
    <dc:creator>DanielSmith</dc:creator>
    <dc:date>2010-09-28T18:12:25Z</dc:date>
    <item>
      <title>Flex Sample Viewer TOC order</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694716#M15502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Thanks to all who contribute on these forums. This resource is beyond valuable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) i need to reorder my layers in the TOC. Specifically i have tiled and dynamic services in my application (running AGS 9.3.1 and associated Flex lib version) and i need to mix and match their groupings based on year. Essentially we have 1 dynamic layer containing all of our vector data (3 years&amp;nbsp; broken into group layers and ordered appropriately) and 6 tiled raster layers (2 for each year). i am looking for a way to put the year specific tiled services below the year specific group of vector data. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;current TOC:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- point 2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- Line 2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- Poly 2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- point 2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- Line 2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- Poly 2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2009 Raster1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2009 Raster2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2008 Raster1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2008 Raster2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;intended TOC:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- point 2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- Line 2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- Poly 2009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- 2009 Raster 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- 2009 Raster 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; |- point 2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; |- Line 2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; |- Poly 2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |-2008 Raster 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |-2008 Raster 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help is greatly appreciated and returned with MVP bumps (assuming that functionality has been enabled on these new forums)... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a great day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 17:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694716#M15502</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2010-09-27T17:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Sample Viewer TOC order (looking for more elegant solution)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694717#M15503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well i forgot/realized that i can manipulate the config.xml file to re order the layers. This is kinda of a workaround because I will have to generate year specific map services (not that big a deal but we are a small firm with limited resources).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This brings up the broader question though, How can/do you control the order of layers in the LiveMaps widget using Action script? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 03:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694717#M15503</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2010-09-28T03:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Sample Viewer TOC order</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694718#M15504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can do the same thing in ActionScript using the Map.reorderLayer method&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ActionScript code to move a layer to the bottom of all layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.reorderLayer("myGraphicsLayer", 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ActionScript code to move a layer to the top of all other layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.reorderLayer("myTiledLayer", myMap.layers.length);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 11:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694718#M15504</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-09-28T11:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Sample Viewer TOC order</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694719#M15505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much Robert!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From my reading/understanding the map.reorderLayer() method reorders how map services are layered in the map and hence the TOC. But what do we do if we want to put a tiled service in between layers within a dynamic map service? Thanks again for your time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 16:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694719#M15505</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2010-09-28T16:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Sample Viewer TOC order</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694720#M15506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; That is not feasible, from what I know of the TOC as it is now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 16:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694720#M15506</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-09-28T16:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Sample Viewer TOC order</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694721#M15507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;huh...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help though Robert. Its always good to know what can and can't be done (easily).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 18:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-sample-viewer-toc-order/m-p/694721#M15507</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2010-09-28T18:12:25Z</dc:date>
    </item>
  </channel>
</rss>

