<?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: Install label to Sceneview in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1053825#M5479</link>
    <description>&lt;P&gt;&lt;SPAN&gt;If the FeatureLayer has labels disabled by default, you can enable them by setting &lt;STRONG&gt;featureLayer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="pl-k"&gt;.&lt;/SPAN&gt;setLabelsEnabled(&lt;SPAN class="pl-c1"&gt;true&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;) and&amp;nbsp;&lt;/STRONG&gt;setting a LabelDefinition on the feature layer.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/arcgisservices/LabelDefinition.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/arcgisservices/LabelDefinition.html&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;If your map is coming from a arcgis online webmap portalitem, you can also set LabelDefinition defined in the webmap itself on the ArcGIS Online MapViewer, otherwise you would need to come with a LabelDefinition similar to the one in the above provided sample.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 17:11:22 GMT</pubDate>
    <dc:creator>RamaChintapalli</dc:creator>
    <dc:date>2021-05-03T17:11:22Z</dc:date>
    <item>
      <title>Install label to Sceneview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1051026#M5467</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;I'm using the ArcGIS Runtime SDK Android&lt;/P&gt;&lt;P&gt;How do I get FeatureLayer from SceneView to install label? I tried like this :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;mArView&lt;/SPAN&gt;!!.&lt;SPAN&gt;sceneView&lt;/SPAN&gt;.&lt;SPAN&gt;scene&lt;/SPAN&gt;.&lt;SPAN&gt;operationalLayers&lt;/SPAN&gt;.&lt;SPAN&gt;forEach &lt;/SPAN&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;layer &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;(layer &lt;SPAN&gt;is &lt;/SPAN&gt;FeatureLayer) {&lt;BR /&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;l = &lt;SPAN&gt;layer&lt;/SPAN&gt;.&lt;SPAN&gt;featureTable&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;featureLayer = FeatureLayer(l)&lt;BR /&gt;        featureLayer.&lt;SPAN&gt;labelDefinitions&lt;/SPAN&gt;.add(labelDefinition)&lt;BR /&gt;    }&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I set a lable for a layer?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 14:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1051026#M5467</guid>
      <dc:creator>AlexanderKulikov</dc:creator>
      <dc:date>2021-04-24T14:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Install label to Sceneview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1053404#M5475</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can you check if the labels are enabled on the feature layer,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;featureLayer&lt;/SPAN&gt;&lt;SPAN class="pl-k"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setLabelsEnabled(&lt;/SPAN&gt;&lt;SPAN class="pl-c1"&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;Here is a sample,&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/main/java/show-labels-on-layer/src/main/java/com/esri/arcgisruntime/showlabelsonlayer" target="_blank"&gt;https://github.com/Esri/arcgis-runtime-samples-android/tree/main/java/show-labels-on-layer/src/main/java/com/esri/arcgisruntime/showlabelsonlayer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 19:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1053404#M5475</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2021-04-30T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Install label to Sceneview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1053539#M5478</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that this code&amp;nbsp;if (layer is FeatureLayer)&amp;nbsp;returns false. How can I set a layer's lable?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alexander&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 May 2021 16:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1053539#M5478</guid>
      <dc:creator>AlexanderKulikov</dc:creator>
      <dc:date>2021-05-01T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Install label to Sceneview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1053825#M5479</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If the FeatureLayer has labels disabled by default, you can enable them by setting &lt;STRONG&gt;featureLayer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="pl-k"&gt;.&lt;/SPAN&gt;setLabelsEnabled(&lt;SPAN class="pl-c1"&gt;true&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;) and&amp;nbsp;&lt;/STRONG&gt;setting a LabelDefinition on the feature layer.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/arcgisservices/LabelDefinition.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/arcgisservices/LabelDefinition.html&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;If your map is coming from a arcgis online webmap portalitem, you can also set LabelDefinition defined in the webmap itself on the ArcGIS Online MapViewer, otherwise you would need to come with a LabelDefinition similar to the one in the above provided sample.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 17:11:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/install-label-to-sceneview/m-p/1053825#M5479</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2021-05-03T17:11:22Z</dc:date>
    </item>
  </channel>
</rss>

