<?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: Arcgis-Android add labels to feature layer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720726#M5041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mengyi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answering! I have seen that discussion and read resources, but unfortunately using&amp;nbsp; &lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt;ArcGISDynamicMapServiceLayer is not a good option. I guess I also didn't believe there is no simpler way for feature service implemented in API..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt;In the application I have polygons which have name field (which should be used for labels). By single-tap user can access features info and edit polygons name. I need the label to update according to these changes. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the only option to make this happen is to have two layers -&amp;nbsp; feature service for editing and map for labeling, correct? As suggested in discussion "How to display label information". In your opinion, do you think that will drag performing speed down a lot? That polygon cluster is fairly dense. Also, do you know if labels are rendered statically or dynamically (do they rotate if I rotate the mapView)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for all the help!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 13:00:33 GMT</pubDate>
    <dc:creator>AneteFridrihsone</dc:creator>
    <dc:date>2015-06-16T13:00:33Z</dc:date>
    <item>
      <title>Arcgis-Android add labels to feature layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720724#M5039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to figure out how to add labels to a feature layer in my ArcGISAndroid mobile application. I have seen labeingInfo(), but that as far as I understand that goes to ArcGISDynamicServiceLayer. I have seen featureLayer.setEnableLabels(true) but I cannot find a place where I can specify which field to use for labels and how labels would look like. Can somebody please advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am actually having ArcGISFeatureLayer that I want to label. If there are solutions for that, it would be the best! But understanding how I can label feature layer will be helpful too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 15:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720724#M5039</guid>
      <dc:creator>AneteFridrihsone</dc:creator>
      <dc:date>2015-06-15T15:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis-Android add labels to feature layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720725#M5040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva;"&gt;Hi Dian,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva;"&gt;As you seen on this discussion: &lt;A href="https://community.esri.com/thread/93384"&gt;How to display label infomation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva;"&gt;There are two ways to do this. If you are working with ArcGISFeatureLayer, then you need to set up labels in your data in ArcMap. You get what you set for labels before publishing, you can not specify fields in your Android code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 10pt;"&gt;The second way to do it is using ArcGISDynamicMapServiceLayer. You may already notice that you can operate it with DrawingInfo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 10pt;"&gt;LabelingInfo.setLabelExpression(String labelExpression) can help you choose the fields you want to show. Simply by &lt;SPAN style="color: #333333;"&gt;controling the label expression, you can choose which fields to show the values of as labels, concatenate multiple fields, add a custom String, round numerical values, and more using the syntax outlined in the REST specification at &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/label.html" style="color: #006699; font-family: arial, sans-serif; font-size: 13px;"&gt;http://resources.arcgis.com/en/help/rest/apiref/label.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 22:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720725#M5040</guid>
      <dc:creator>MengyiGuo</dc:creator>
      <dc:date>2015-06-15T22:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis-Android add labels to feature layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720726#M5041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mengyi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answering! I have seen that discussion and read resources, but unfortunately using&amp;nbsp; &lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt;ArcGISDynamicMapServiceLayer is not a good option. I guess I also didn't believe there is no simpler way for feature service implemented in API..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt;In the application I have polygons which have name field (which should be used for labels). By single-tap user can access features info and edit polygons name. I need the label to update according to these changes. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the only option to make this happen is to have two layers -&amp;nbsp; feature service for editing and map for labeling, correct? As suggested in discussion "How to display label information". In your opinion, do you think that will drag performing speed down a lot? That polygon cluster is fairly dense. Also, do you know if labels are rendered statically or dynamically (do they rotate if I rotate the mapView)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for all the help!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 13:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720726#M5041</guid>
      <dc:creator>AneteFridrihsone</dc:creator>
      <dc:date>2015-06-16T13:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis-Android add labels to feature layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720727#M5042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other way I can think of is using TextSymbol to create a label by yourself. When you rotate the mapView, I think every layer on the map will be redrew as well as the mapview itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 16:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-android-add-labels-to-feature-layer/m-p/720727#M5042</guid>
      <dc:creator>MengyiGuo</dc:creator>
      <dc:date>2015-06-17T16:21:43Z</dc:date>
    </item>
  </channel>
</rss>

