<?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: Custom Legend Control - Nothing Fancy in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248328#M5877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: nelsm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really like what you have done here. I 'm trying to do something similar. Do you have a newer version for agslib302102? When it first loads it shows the layers on in the map service and they draw properly, but the first time you turn on another layer it tuns off all the "default" layers and turns on the one you clicked. From then on it seems to manage events OK. Also....what type of container shoudl the legend be placed? I currently have it in a tab container and scrolling is grayed out even though I have it enabled. Any advice? Any chance I coudl peak under the hood of the SWC?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for posting this!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2012 20:59:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-12-27T20:59:36Z</dc:date>
    <item>
      <title>Custom Legend Control - Nothing Fancy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248327#M5876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm fairly new to the ArcGIS Forums, but I have been doing some development work with our GIS department for some time.&amp;nbsp; I decided to upload a legend control that I have been working on to the site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Requirements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;agslib-2.3.1.swc&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;as3corelib&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Flex 4.5.1&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18640[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:Map id="map" width="500" height="500"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer id="DL_BaseMap" name="My Base Map" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://....../MapServer" rel="nofollow" target="_blank"&gt;http://....../MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer id="DL_Planning" name="County Planning" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://....../MapServer" rel="nofollow" target="_blank"&gt;http://....../MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;legend:JLegend id="myLegend" x="600" y="0" width="350" height="100%"&amp;nbsp; Map="{map}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: 10/23/2012 - The Layer ID needs to have the DL_.&amp;nbsp; It's how I chose to pick the layers I wish to get the legend for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.forsythco.com/gis/jlegend/jlegend_1.2.0.zip"&gt;http://www.forsythco.com/gis/jlegend/jlegend_1.2.0.zip&lt;/A&gt;&lt;SPAN&gt; ALSO ATTACHED&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 18:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248327#M5876</guid>
      <dc:creator>JustinWilson</dc:creator>
      <dc:date>2012-10-22T18:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Legend Control - Nothing Fancy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248328#M5877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: nelsm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really like what you have done here. I 'm trying to do something similar. Do you have a newer version for agslib302102? When it first loads it shows the layers on in the map service and they draw properly, but the first time you turn on another layer it tuns off all the "default" layers and turns on the one you clicked. From then on it seems to manage events OK. Also....what type of container shoudl the legend be placed? I currently have it in a tab container and scrolling is grayed out even though I have it enabled. Any advice? Any chance I coudl peak under the hood of the SWC?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for posting this!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 20:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248328#M5877</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-12-27T20:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Legend Control - Nothing Fancy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248329#M5878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what type of container shoudl the legend be placed? I currently have it in a tab container and scrolling is grayed out even though I have it enabled. Any advice? Any chance I coudl peak under the hood of the SWC?&lt;BR /&gt;&lt;BR /&gt;Thanks for posting this!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm so sorry for taking so long to respond.&amp;nbsp; I'm really not very good at keeping active on the Forum.&amp;nbsp; We used the legend in an Accordion in the NavigationContent tag. The interface guy sent me this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;mx:Accordion id="myAccordion" right="0" top="95" width="300" height="100%" chromeColor="#DFDBC1" color="#142B41" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; depth="1" fontFamily="calibri" fontWeight="bold" fontSize="14" openDuration="500" openEasingFunction="{Circular.easeOut}"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:NavigatorContent id="accForm" width="100%" height="100%" backgroundColor="#28435D" label="TOOL FORM"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:NavigatorContent&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:NavigatorContent id="accresults" width="100%" height="100%" backgroundColor="#28435D" label="RESULTS"&amp;gt;&amp;lt;/s:NavigatorContent&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:NavigatorContent id="accLayers" width="100%" height="100%" backgroundColor="#FAFAF6" label="LAYERS"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:layout&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:VerticalLayout paddingLeft="8" paddingRight="2"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:layout&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;legend:JLegend height="{accLayers.height - 5}" width="{accLayers.width - 10}" horizontalCenter="{accLayers}" id="jl" Map="{map}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:NavigatorContent&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Accordion&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's how he's using it.&amp;nbsp; We had some issued with the scroll bar not showing up, but in our case it was due to the positioning.&amp;nbsp; You may want to put it in another control that allows scrolling.&amp;nbsp; The version we use is one newer that what was posted as we found a slight bug. I'm attaching the class library for this control.&amp;nbsp; Hope it helps!&amp;nbsp; Also, hope it's not irrelevant anymore.&amp;nbsp; We're moving to the JavaScript API. I'm hoping to remake this in JS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is our application:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://maps.forsythco.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.forsythco.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248329#M5878</guid>
      <dc:creator>JustinWilson</dc:creator>
      <dc:date>2021-12-11T12:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Legend Control - Nothing Fancy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248330#M5879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rioman&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hi.. i love your &lt;/SPAN&gt;&lt;A href="http://maps.forsythco.com/"&gt;http://maps.forsythco.com/&lt;/A&gt;&lt;SPAN&gt; design. I'M new with flex and i also doesn't know about coding. can you give me the zip file for this project. i want to take a look at it with flash builder. i got flash builder 4.6. thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 05:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248330#M5879</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-03-24T05:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Legend Control - Nothing Fancy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248331#M5880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For that project, I only built the class library for the legend and the top button bar.&amp;nbsp; I didn't make the design.&amp;nbsp;&amp;nbsp; I'll check with our GUI designer and see if they are willing to share the project.&amp;nbsp; I think he did it in 4.5, but that shouldn't make a huge difference.&amp;nbsp; I'll check back in Monday.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 13:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248331#M5880</guid>
      <dc:creator>JustinWilson</dc:creator>
      <dc:date>2013-03-24T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Legend Control - Nothing Fancy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248332#M5881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rioman&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi sumof2cubes. Any good news?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 00:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-legend-control-nothing-fancy/m-p/248332#M5881</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-02T00:21:00Z</dc:date>
    </item>
  </channel>
</rss>

