<?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: how to get  the attributes of a node in a FeatureLayer's cluster? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-nbsp-the-attributes-of-a-node-in-a/m-p/175459#M4376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried FindGraphicsInHostCoordinates(), but it cannot know which node is clicked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I make a temporary solution�?set a Maptip and use MapTip.DataContext as IDictionary&amp;lt;string, object&amp;gt; to get the correct attributes now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is related thread: &lt;A href="http://forums.arcgis.com/threads/18534-FlareClusterer-event-bug"&gt;http://forums.arcgis.com/threads/18534-FlareClusterer-event-bug&lt;/A&gt; Kindly look at post #2. What is returned by FindGraphicsInHostCoordinates() is an IEnumerable&amp;lt;Graphic&amp;gt;, which are the individual nodes contained in the cluster. You can iterate through these nodes and get their attributes.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jan 2011 04:46:25 GMT</pubDate>
    <dc:creator>LianchengRen</dc:creator>
    <dc:date>2011-01-10T04:46:25Z</dc:date>
    <item>
      <title>how to get  the attributes of a node in a FeatureLayer's cluster?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-nbsp-the-attributes-of-a-node-in-a/m-p/175457#M4374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A featurelayer has Cluster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void FeatureLayer_Initialized(object sender, EventArgs e)
&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; ((FeatureLayer)sender).MouseRightButtonDown += new FeatureLayer.MouseButtonEventHandler(FeatureLayer_MouseRightButtonDown);
&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; private void FeatureLayer_MouseRightButtonDown(object sender, GraphicMouseButtonEventArgs args)
&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; args.Handled = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string key = (string)args.Graphic.Attributes["JH"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; (string)args.Graphic.Attributes["JH"]: I cannot get the attribute if the clicking graphic is a node of a cluster. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 23:38:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-nbsp-the-attributes-of-a-node-in-a/m-p/175457#M4374</guid>
      <dc:creator>LianchengRen</dc:creator>
      <dc:date>2010-12-27T23:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to get  the attributes of a node in a FeatureLayer's cluster?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-nbsp-the-attributes-of-a-node-in-a/m-p/175458#M4375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is related thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18534-FlareClusterer-event-bug"&gt;http://forums.arcgis.com/threads/18534-FlareClusterer-event-bug&lt;/A&gt;&lt;SPAN&gt; Kindly look at post #2. What is returned by FindGraphicsInHostCoordinates() is an IEnumerable&amp;lt;Graphic&amp;gt;, which are the individual nodes contained in the cluster. You can iterate through these nodes and get their attributes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 19:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-nbsp-the-attributes-of-a-node-in-a/m-p/175458#M4375</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-09T19:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get  the attributes of a node in a FeatureLayer's cluster?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-nbsp-the-attributes-of-a-node-in-a/m-p/175459#M4376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried FindGraphicsInHostCoordinates(), but it cannot know which node is clicked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I make a temporary solution�?set a Maptip and use MapTip.DataContext as IDictionary&amp;lt;string, object&amp;gt; to get the correct attributes now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is related thread: &lt;A href="http://forums.arcgis.com/threads/18534-FlareClusterer-event-bug"&gt;http://forums.arcgis.com/threads/18534-FlareClusterer-event-bug&lt;/A&gt; Kindly look at post #2. What is returned by FindGraphicsInHostCoordinates() is an IEnumerable&amp;lt;Graphic&amp;gt;, which are the individual nodes contained in the cluster. You can iterate through these nodes and get their attributes.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 04:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-get-nbsp-the-attributes-of-a-node-in-a/m-p/175459#M4376</guid>
      <dc:creator>LianchengRen</dc:creator>
      <dc:date>2011-01-10T04:46:25Z</dc:date>
    </item>
  </channel>
</rss>

