<?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: Legend problems Version 2.2 Viewer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557457#M12549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone found a resolution to this problem?&amp;nbsp; I am using the esri:Legend component, and am getting the same error when trying to set the map or layers property in code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2011 22:53:02 GMT</pubDate>
    <dc:creator>KenMatthews</dc:creator>
    <dc:date>2011-06-24T22:53:02Z</dc:date>
    <item>
      <title>Legend problems Version 2.2 Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557452#M12544</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;BR /&gt;&lt;SPAN&gt;I have built the version 2.2 viewer from the source code and am using it with a version 10 (SP1) ArcGIS server and a dynamic map service published from ArcMAP version 10 (Build 2800).&amp;nbsp; When I use the legend widget that comes with the version 2.2 widget I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.skins::LegendSkin/extentChangeHandler()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.core::UIComponent/dispatchEvent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags::Map/tweenEndHandler()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at MoveResize/enterFrameHandler()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error occurs as soon as the widget loads (if I preload it), and after any change to the map that affects the layer visibility subsequently (Zoom, toggle layer from TOC, etc).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;++ Ray&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 14:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557452#M12544</guid>
      <dc:creator>RaymondBlack</dc:creator>
      <dc:date>2011-01-05T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Legend problems Version 2.2 Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557453#M12545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;could you check using firebug/fiddler to see if&amp;nbsp; correct requests/responses are being sent/received?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 22:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557453#M12545</guid>
      <dc:creator>MehulChoksey</dc:creator>
      <dc:date>2011-01-05T22:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Legend problems Version 2.2 Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557454#M12546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't get that issue but I do get a couple of others.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; It seems that only items that are loaded as "feature" type appear in the legend.&amp;nbsp; I realize that this issue may be because my application is internal and behind a firewall but it would be nice to confirm so I can take steps to get it working on my end.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Also, there is a large space between items in the legend when I check on the top layer and the bottom layer.&amp;nbsp; It's as if there is line added to the top of each layer as they are shown in the legend and that line multiplies depending on how many layers you have loaded in your viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://picasaweb.google.com/lh/photo/yL3Nlkg4RVLjKxJd3HVsyg?feat=directlink" /&gt;&lt;SPAN&gt; (Don't seem to have any luck inserting this image)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this link to see what I am talking about...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://picasaweb.google.com/lh/photo/yL3Nlkg4RVLjKxJd3HVsyg?feat=directlink"&gt;http://picasaweb.google.com/lh/photo/yL3Nlkg4RVLjKxJd3HVsyg?feat=directlink&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 14:11:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557454#M12546</guid>
      <dc:creator>JeffLegato</dc:creator>
      <dc:date>2011-01-07T14:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Legend problems Version 2.2 Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557455#M12547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get the same problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at MethodInfo-989()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.skins::LegendSkin/commitProperties()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.core::UIComponent/validateProperties()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.managers::LayoutManager/validateProperties()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.managers::LayoutManager/doPhasedInstantiation()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.managers::LayoutManager/doPhasedInstantiationCallback()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This error makes flash crash. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how this happpened - the map used to display correctly - it seems like this problem started after I removed a layer from my operational layers...but everything was working fine before i even added that layer in the first place. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know more about this issue? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try firebug again but it seems to be saying there are no errors? &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;Giuseppe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 19:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557455#M12547</guid>
      <dc:creator>giuseppemolinario</dc:creator>
      <dc:date>2011-02-16T19:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Legend problems Version 2.2 Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557456#M12548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.skins::LegendSkin/commitProperties()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.core::UIComponent/validateProperties()&lt;E&gt;&lt;/E&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.managers::LayoutManager/validateProperties()&lt;E&gt;&lt;/E&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.managers::LayoutManager/doPhasedInstantiation()&lt;E&gt;&lt;/E&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.managers::LayoutManager/doPhasedInstantiationCallback()&lt;E&gt;&lt;/E&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And when using firebug, all legend elements are queried correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 14:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557456#M12548</guid>
      <dc:creator>Ganael_Jatteau</dc:creator>
      <dc:date>2011-04-07T14:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Legend problems Version 2.2 Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557457#M12549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone found a resolution to this problem?&amp;nbsp; I am using the esri:Legend component, and am getting the same error when trying to set the map or layers property in code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 22:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/legend-problems-version-2-2-viewer/m-p/557457#M12549</guid>
      <dc:creator>KenMatthews</dc:creator>
      <dc:date>2011-06-24T22:53:02Z</dc:date>
    </item>
  </channel>
</rss>

