<?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: Feature Layer label not showing JS 3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-label-not-showing-js-3-x/m-p/1017105#M71388</link>
    <description>&lt;P&gt;Can you share a simplified version of the app that reproduces this issue? If you inspect the layer after it gets added to the map, is the label info in there? Are there any warnings or errors in the console? Have you considered using the 4x version of the ArcGIS API for JavaScript?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 22:58:14 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2021-01-14T22:58:14Z</dc:date>
    <item>
      <title>Feature Layer label not showing JS 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-label-not-showing-js-3-x/m-p/1014214#M71291</link>
      <description>&lt;P&gt;Hi, I have a 2D widget and a piece of code to get label to show.&lt;/P&gt;&lt;P&gt;The layer loads fine however the label isn't. Can anyone advise?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_getLabelClass: function () {
      var labelSymbol = new TextSymbol();
      var defaultPlacement = "above-center"


      var json = {
        "labelExpressionInfo": { "expression": "$feature.symbolname" },
        "useCodedValues": false,
        "labelPlacement": defaultPlacement
      };

      //create instance of LabelClass
      var lc = new LabelClass(json);
      lc.symbol = labelSymbol; // symbol also can be set in LabelClass' json
      return lc;
    },

layer = new FeatureLayer(layerSettings.url, options);     
const layerInfoArr = [this._getLabelClass()];
layer.setLabelingInfo(layerInfoArr);

this.map.addLayer(layer);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Jan 2021 09:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-label-not-showing-js-3-x/m-p/1014214#M71291</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2021-01-06T09:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer label not showing JS 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-label-not-showing-js-3-x/m-p/1017105#M71388</link>
      <description>&lt;P&gt;Can you share a simplified version of the app that reproduces this issue? If you inspect the layer after it gets added to the map, is the label info in there? Are there any warnings or errors in the console? Have you considered using the 4x version of the ArcGIS API for JavaScript?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 22:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-label-not-showing-js-3-x/m-p/1017105#M71388</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-01-14T22:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer label not showing JS 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-label-not-showing-js-3-x/m-p/1017112#M71390</link>
      <description>&lt;P&gt;If this is in any way helpful, I recently ran into a similar issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.co.kendall.il.us/portal/home/item.html?id=5cdf287c15cb49c3b18d8f3811634781" target="_blank"&gt;https://maps.co.kendall.il.us/portal/home/item.html?id=5cdf287c15cb49c3b18d8f3811634781&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Features don't render in any 3x maps, but appear in 4x maps. If it's relevant, the features were submitted via a Notebook using the Spatially Enabled DataFrame.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 23:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-label-not-showing-js-3-x/m-p/1017112#M71390</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-01-14T23:11:09Z</dc:date>
    </item>
  </channel>
</rss>

