<?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: Group layers in Flex viewer in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/group-layers-in-flex-viewer/m-p/496783#M13980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Like Robert mentioned, if you can group them and republish your services, that would be the best bet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;However, if you cannot for whatever reason, you could create multiple layer lists using the default layer list widget that would allow you to group the individual services together as necessary.&amp;nbsp; For example, you would have (1) layer list for geographic data, another for demographic data, etc.&amp;nbsp; You could have them side by side in your main widget container or stack them in a new widget group.&amp;nbsp; I've done both to clean things up a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Its not the ideal way to go about it, but if you are forced to use an excessive amount of layers then it will allow you to control them to some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't remember how to post code in a nice manner so I'll just copy and post an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; &amp;lt;widgetcontainer layout="float"&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widgetgroup label="Misc Tools" icon="assets/images/i_options.png"&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widget label="Draw &amp;amp;amp; Measure" url="widgets/eDraw/eDrawWidget.swf" config="widgets/eDraw/eDrawWidget.xml" icon="assets/images/i_measure.png" top="150" right="20" /&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widget label="Bookmarks" url="widgets/Bookmark/BookmarkWidget.swf" config="widgets/Bookmark/BookmarkWidget.xml" icon="assets/images/i_bookmark.png" top="200" right="20" /&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widget label="Print" url="widgets/Print/PrintWidget.swf" config="widgets/Print/PrintWidget.xml" icon="assets/images/i_print.png" top="250" right="20" /&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/widgetgroup&amp;gt;\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If you are using something like XML Notepad it would look like this:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.esri.com/legacyfs/online/80973_widgetGroup.JPG"&gt;&lt;IMG alt="widgetGroup.JPG" class="image-1 jive-image" height="130" src="https://community.esri.com/legacyfs/online/81652_widgetGroup.JPG" style="margin: 10px 10px 10px 0; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="217" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;An ESRI example with widgetgroup&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Widget_Container/01m300000003000000/" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;ArcGIS Viewer for Flex&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Granted I don't use the App Builder when working with the Viewer for Flex, its too limiting.&amp;nbsp; I edit the tag references via XML Notepad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 16:56:24 GMT</pubDate>
    <dc:creator>HaskettGeorge</dc:creator>
    <dc:date>2015-04-03T16:56:24Z</dc:date>
    <item>
      <title>Group layers in Flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/group-layers-in-flex-viewer/m-p/496781#M13978</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;SPAN&gt;we are three students who have to do some wprk in ArcGIS viewer for flex. We have some layers in ArcGIS Online added to viewer for flex and need to create "group layers" in Layer list. For example,,, we have railway layer, highway layer and road layer... we need to make group of these layers named "comunications". We don't have Arcgis server, so we dont know how to do it and the term of submission is on Saturday night. Please help us, we are helpless.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 02:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/group-layers-in-flex-viewer/m-p/496781#M13978</guid>
      <dc:creator>OznogOznoggg</dc:creator>
      <dc:date>2012-11-30T02:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Group layers in Flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/group-layers-in-flex-viewer/m-p/496782#M13979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To put it simply... You can not... That would have to be done in the MXD&amp;nbsp; that you are publishing to ArcGIS Server and as you said you do not&amp;nbsp; have ArcGIS Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: I am moving this thread to the ArcGIS Viewer for Flex forum where this thread belongs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer3.0/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 11:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/group-layers-in-flex-viewer/m-p/496782#M13979</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-11-30T11:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Group layers in Flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/group-layers-in-flex-viewer/m-p/496783#M13980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Like Robert mentioned, if you can group them and republish your services, that would be the best bet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;However, if you cannot for whatever reason, you could create multiple layer lists using the default layer list widget that would allow you to group the individual services together as necessary.&amp;nbsp; For example, you would have (1) layer list for geographic data, another for demographic data, etc.&amp;nbsp; You could have them side by side in your main widget container or stack them in a new widget group.&amp;nbsp; I've done both to clean things up a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Its not the ideal way to go about it, but if you are forced to use an excessive amount of layers then it will allow you to control them to some point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't remember how to post code in a nice manner so I'll just copy and post an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; &amp;lt;widgetcontainer layout="float"&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widgetgroup label="Misc Tools" icon="assets/images/i_options.png"&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widget label="Draw &amp;amp;amp; Measure" url="widgets/eDraw/eDrawWidget.swf" config="widgets/eDraw/eDrawWidget.xml" icon="assets/images/i_measure.png" top="150" right="20" /&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widget label="Bookmarks" url="widgets/Bookmark/BookmarkWidget.swf" config="widgets/Bookmark/BookmarkWidget.xml" icon="assets/images/i_bookmark.png" top="200" right="20" /&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;widget label="Print" url="widgets/Print/PrintWidget.swf" config="widgets/Print/PrintWidget.xml" icon="assets/images/i_print.png" top="250" right="20" /&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/widgetgroup&amp;gt;\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If you are using something like XML Notepad it would look like this:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.esri.com/legacyfs/online/80973_widgetGroup.JPG"&gt;&lt;IMG alt="widgetGroup.JPG" class="image-1 jive-image" height="130" src="https://community.esri.com/legacyfs/online/81652_widgetGroup.JPG" style="margin: 10px 10px 10px 0; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="217" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;An ESRI example with widgetgroup&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Widget_Container/01m300000003000000/" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;ArcGIS Viewer for Flex&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Granted I don't use the App Builder when working with the Viewer for Flex, its too limiting.&amp;nbsp; I edit the tag references via XML Notepad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 16:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/group-layers-in-flex-viewer/m-p/496783#M13980</guid>
      <dc:creator>HaskettGeorge</dc:creator>
      <dc:date>2015-04-03T16:56:24Z</dc:date>
    </item>
  </channel>
</rss>

