<?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 How do I get the Label String of a Feature? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-i-get-the-label-string-of-a-feature/m-p/704053#M4943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to get the String a Feature would have as a Label? I saw you have the LabelingInfo and the LabelDefinition classes but I can't find a way to get the String. As far as I saw you can only get the LabelExpression but it would be a very&amp;nbsp;tedious task to parse this into the right String.&lt;/P&gt;&lt;P&gt;I am using the latest ArcGis Runtime version 100.2.1&lt;/P&gt;&lt;P&gt;I hope someone can help me. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 17:58:39 GMT</pubDate>
    <dc:creator>DanielKilimnik</dc:creator>
    <dc:date>2018-07-04T17:58:39Z</dc:date>
    <item>
      <title>How do I get the Label String of a Feature?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-i-get-the-label-string-of-a-feature/m-p/704053#M4943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to get the String a Feature would have as a Label? I saw you have the LabelingInfo and the LabelDefinition classes but I can't find a way to get the String. As far as I saw you can only get the LabelExpression but it would be a very&amp;nbsp;tedious task to parse this into the right String.&lt;/P&gt;&lt;P&gt;I am using the latest ArcGis Runtime version 100.2.1&lt;/P&gt;&lt;P&gt;I hope someone can help me. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 17:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-i-get-the-label-string-of-a-feature/m-p/704053#M4943</guid>
      <dc:creator>DanielKilimnik</dc:creator>
      <dc:date>2018-07-04T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the Label String of a Feature?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-i-get-the-label-string-of-a-feature/m-p/704054#M4944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel.&lt;/P&gt;&lt;PRE&gt;String ldString = featureLayer.getLabelDefinitions().get(0).toJson();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if 'featureLayer' has at least 1 labelDefinition, calling toJson() will give you the serialized&amp;nbsp;representation of that. In that string, you'll see the "Expression" value of where the text for that label comes from.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this what you're looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/sample-code/show-labels-on-layer.htm" title="https://developers.arcgis.com/android/latest/sample-code/show-labels-on-layer.htm"&gt;Show Labels on Layer—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 04:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-i-get-the-label-string-of-a-feature/m-p/704054#M4944</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2018-07-09T04:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the Label String of a Feature?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-i-get-the-label-string-of-a-feature/m-p/704055#M4945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it's not really what I am looking for. I don't want the expression of where the text for the label comes from. I want the final text of the label. If you compare it to a renderer there you can get the symbol of each feature and I want the same but for the labels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am 9. Juli 2018, 06:57, um 06:57, Eric Bader &amp;lt;geonet@esri.com&amp;gt; schrieb:&lt;/P&gt;&lt;P&gt;&amp;gt;Eric Bader&lt;/P&gt;&lt;P&gt;&amp;gt;[https://community.esri.com/people/ebader-esristaff?et=watches.email.thread]&lt;/P&gt;&lt;P&gt;&amp;gt;replied to the discussion&lt;/P&gt;&lt;P&gt;&amp;gt;"Re: How do I get the Label String of a Feature?"&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;To view the discussion, visit:&lt;/P&gt;&lt;P&gt;&amp;gt;https://community.esri.com/message/783444-re-how-do-i-get-the-label-string-of-a-feature?commentID=783444&amp;amp;et=watches.email.thread#comment-783444&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 07:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-do-i-get-the-label-string-of-a-feature/m-p/704055#M4945</guid>
      <dc:creator>DanielKilimnik</dc:creator>
      <dc:date>2018-07-09T07:12:16Z</dc:date>
    </item>
  </channel>
</rss>

