<?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 WAB FeatureLayer not showing labels in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wab-featurelayer-not-showing-labels/m-p/1291853#M81227</link>
    <description>&lt;P&gt;I have a WAB app on AGE which is running a custom widget (JS v3). The widget adds a few FeatureLayers into the map:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      const newLayer = new FeatureLayer(url, {
        mode: FeatureLayer.MODE_ONDEMAND,
        outFields: ["*"],
        showLabels: true
      });&lt;/LI-CODE&gt;&lt;P&gt;I explicitly set the showLabels flag to true. However, when the layer loads into the map, the labels are not visible and the LayerList widget shows an option to "Show labels", even though the property showLabels is still set to TRUE on the given layer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_0-1684789457837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71350i9D2CAE56CD21C32B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_0-1684789457837.png" alt="ViktorSafar_0-1684789457837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_1-1684789500462.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71351i118BF99B6B1D485E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_1-1684789500462.png" alt="ViktorSafar_1-1684789500462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I click the "Show labels" option, the labels are indeed shown. The showLabels property on the layer continues to show TRUE. The option on the layer in the LayerList changes to "Hide labels" and when I click that, the labels go away and the showLabels property changes to FALSE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_2-1684789628332.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71352i5764811FFD539170/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_2-1684789628332.png" alt="ViktorSafar_2-1684789628332.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to make the labels show on load?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 21:11:40 GMT</pubDate>
    <dc:creator>ViktorSafar</dc:creator>
    <dc:date>2023-05-22T21:11:40Z</dc:date>
    <item>
      <title>WAB FeatureLayer not showing labels</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wab-featurelayer-not-showing-labels/m-p/1291853#M81227</link>
      <description>&lt;P&gt;I have a WAB app on AGE which is running a custom widget (JS v3). The widget adds a few FeatureLayers into the map:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      const newLayer = new FeatureLayer(url, {
        mode: FeatureLayer.MODE_ONDEMAND,
        outFields: ["*"],
        showLabels: true
      });&lt;/LI-CODE&gt;&lt;P&gt;I explicitly set the showLabels flag to true. However, when the layer loads into the map, the labels are not visible and the LayerList widget shows an option to "Show labels", even though the property showLabels is still set to TRUE on the given layer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_0-1684789457837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71350i9D2CAE56CD21C32B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_0-1684789457837.png" alt="ViktorSafar_0-1684789457837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_1-1684789500462.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71351i118BF99B6B1D485E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_1-1684789500462.png" alt="ViktorSafar_1-1684789500462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I click the "Show labels" option, the labels are indeed shown. The showLabels property on the layer continues to show TRUE. The option on the layer in the LayerList changes to "Hide labels" and when I click that, the labels go away and the showLabels property changes to FALSE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_2-1684789628332.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71352i5764811FFD539170/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_2-1684789628332.png" alt="ViktorSafar_2-1684789628332.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to make the labels show on load?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 21:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wab-featurelayer-not-showing-labels/m-p/1291853#M81227</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-05-22T21:11:40Z</dc:date>
    </item>
  </channel>
</rss>

