<?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 LabelPoints from GeometryService, am I missing something? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/labelpoints-from-geometryservice-am-i-missing/m-p/275506#M7180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to label some selected polygon features using the following process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Send the list of selected polygon features to a geometry service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Get the returned label points&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) For each returned point, add text based on the polygon's attributes to a graphics layer &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far 1 and 2 work fine, but the returned label points have no attributes!&amp;nbsp; I would have expected the geometry service to return the label point with all of the polygon's attributes intact so I would have something to label with, or at least the very least keep the ObjectID so I can go look up what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I know which returned label point corresponds to which polygon, so I can retrieve the attributes needed for the label text?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Oct 2010 19:54:31 GMT</pubDate>
    <dc:creator>PaulAbbott</dc:creator>
    <dc:date>2010-10-13T19:54:31Z</dc:date>
    <item>
      <title>LabelPoints from GeometryService, am I missing something?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/labelpoints-from-geometryservice-am-i-missing/m-p/275506#M7180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to label some selected polygon features using the following process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Send the list of selected polygon features to a geometry service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Get the returned label points&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) For each returned point, add text based on the polygon's attributes to a graphics layer &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far 1 and 2 work fine, but the returned label points have no attributes!&amp;nbsp; I would have expected the geometry service to return the label point with all of the polygon's attributes intact so I would have something to label with, or at least the very least keep the ObjectID so I can go look up what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I know which returned label point corresponds to which polygon, so I can retrieve the attributes needed for the label text?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 19:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/labelpoints-from-geometryservice-am-i-missing/m-p/275506#M7180</guid>
      <dc:creator>PaulAbbott</dc:creator>
      <dc:date>2010-10-13T19:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: LabelPoints from GeometryService, am I missing something?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/labelpoints-from-geometryservice-am-i-missing/m-p/275507#M7181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The LabelPointsAsync() method of the GeometryService has a second parameter "userToken". When invoking this method also include your graphics list in the second parameter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;geometryService.LabelPointsAsync(graphicsList, graphicsList);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then on LabelPointsCompleted event handler get the list of your graphics (with attributes) using "UserState" property of the GraphicsEventArgs, ie:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;IList&amp;lt;Graphic&amp;gt; graphicsWithAttributes = e.UserState as IList&amp;lt;Graphic&amp;gt;;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The sequence of graphics in e.Results matches e.UserState hence, you just need to grab the attributes from the corresponding graphic in graphicsWithAttributes in above code snippet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 17:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/labelpoints-from-geometryservice-am-i-missing/m-p/275507#M7181</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2010-10-14T17:32:19Z</dc:date>
    </item>
  </channel>
</rss>

