<?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 Labels Custom Widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560314#M14909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmm.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;If true, any FeatureLayer added to the map will automatically label based on &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#labelinginfo" style="color: #00629b; background-color: #ffffff;"&gt;labelingInfo&lt;/A&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;. Default is false. &lt;/SPAN&gt;&lt;EM style="color: #000000; background-color: #ffffff;"&gt;Added at v3.11&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have not tested with a FeatureLayer created from a FeatureCollection. Did you say that you tested this in JS API app and you can get&amp;nbsp;&lt;SPAN&gt; a FeatureCollection FeatureLayer to label?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 15:55:02 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-10-27T15:55:02Z</dc:date>
    <item>
      <title>Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560307#M14902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am creating a custom widget that utilises a feature layer created either from a feature collection or a URL to an existing published feature service (I have tried both methods). I want to label the features but I have tried every possibility going with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I create a sample HTML page using the 3.18 JS library out side of WAB I can get the labels to appear. I think the issue is setting the map.showLabels to true within the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To experiment a little further I have tried turning the map attribution off within the widget using map.showAttribution = false but this does not work either. I see there is no getter or setter methods for changing these attributes to the map object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has anyone else managed to get labels to work on a feature layer within a WAB widget? Or is this a limitation of WAB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 19:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560307#M14902</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2016-10-26T19:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560308#M14903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the Apps jimu.js/MapManager.js find the&amp;nbsp;_show2DWebMap function and make this addition (line 3):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapOptions = this._processMapOptions(appConfig.map.mapOptions) || {};
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapOptions.isZoomSlider = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapOptions.showLabels = true;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560308#M14903</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T00:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560309#M14904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the rapid response, I have logged off for the evening, so will give your response a try first thing in the morning and let you know how I get on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its a shame you cannot change this parameter in the widget so you can distribute to existing apps without having to then go and change other external files to the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 19:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560309#M14904</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2016-10-26T19:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560310#M14905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Yes that is a big draw back. I have run into other things that I have wanted/needed to change in the jimu.js core for a widget and I have considered building an installer app that will do the changes to the core files and add my widget. That is one route.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 19:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560310#M14905</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-26T19:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560311#M14906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your fix off changing the _show2DWebMap function in the jimu.js/MapManager.js file worked for adding labels when the feature class is created from a URL, but I am still having issues when creating the feature class from a feature collection within the client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a snippet of the JavaScript where I am setting up the label class and applying it to the feature layer. If the feature layer is created from an existing feature layer from a URL the labeling works (commented out below), if the layer is created from a feature collection it does show the labels. Is there anything else I need to enable to show the labels when using a feature collection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help so far,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// create a renderer for the grg layer to override default symbology&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; gridColor &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Color&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"#000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; gridLine &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SimpleLineSymbol&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"solid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; gridColor&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; gridSymbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SimpleFillSymbol&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"solid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; gridLine&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; gridRenderer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SimpleRenderer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gridSymbol&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; featureCollection &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="string token"&gt;"layerDefinition"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"geometryType"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"esriGeometryPolygon"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"fields"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"name"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"grid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"alias"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"grid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"type"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"esriFieldTypeString"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// create a text symbol to define the style of labels&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; GRGLabel &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;TextSymbol&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setColor&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gridColor&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
GRGLabel&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;font&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setSize&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"12pt"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
GRGLabel&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;font&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setFamily&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"arial"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; json &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="string token"&gt;"labelExpressionInfo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"value"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{grid}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; labelClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;LabelClass&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

labelClass&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;symbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GRGLabel&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_featureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureCollection&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; outFields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;&lt;SPAN&gt;//this._featureLayer = new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fxxxx%2Fags%2Frest%2Fservices%2FGRG_Layer%2FFeatureServer%2F0" target="_blank"&gt;https://xxxx/ags/rest/services/GRG_Layer/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",{&lt;/SPAN&gt;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;//outFields: ["*"]&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//});&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_featureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setRenderer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gridRenderer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_featureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setLabelingInfo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; labelClass &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_featureLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560311#M14906</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2021-12-12T00:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560312#M14907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_featureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureCollection&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; outFields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; showLabels&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560312#M14907</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T00:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560313#M14908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That property is set to true by default, I have tried setting it manually but no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 15:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560313#M14908</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2016-10-27T15:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560314#M14909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmm.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;If true, any FeatureLayer added to the map will automatically label based on &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#labelinginfo" style="color: #00629b; background-color: #ffffff;"&gt;labelingInfo&lt;/A&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;. Default is false. &lt;/SPAN&gt;&lt;EM style="color: #000000; background-color: #ffffff;"&gt;Added at v3.11&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have not tested with a FeatureLayer created from a FeatureCollection. Did you say that you tested this in JS API app and you can get&amp;nbsp;&lt;SPAN&gt; a FeatureCollection FeatureLayer to label?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 15:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560314#M14909</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-27T15:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560315#M14910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes when I label in a straight forward page outside of Web AppBuilder it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just sent you an email to your work account with the widget attached for you to look at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 15:58:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560315#M14910</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2016-10-27T15:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560316#M14911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a certain amount of head scratching and a lot of code chasing, I managed to figure out the issue of the features not labelling, it was nothing to do with the set up of my labels, it was how the geometry of the feature was created, if the ring of the polygon was created anti clockwise the feature would not label, ensuring all polygon rings are created clockwise sorted it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a function within the JavaScript API on polygon geometry that checks if the geometry is clockwise:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#isclockwise" title="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#isclockwise"&gt;Polygon | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this stops other people from the headache,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 20:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560316#M14911</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2016-11-01T20:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560317#M14912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way you can also set the map properties inside the main config.json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"mapOptions": {&lt;BR /&gt; "showAttribution": false,&lt;BR /&gt; "showLabels": true&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 20:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560317#M14912</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2016-11-01T20:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560318#M14913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem as you. I need to create a Feature Layer from FeatureCollection. My layer is a point FL. And I need to show labels on this layer. I have read this thread, add mapOptions.showLabels = true to the jimu.js/MapManager.js as Robert recomanded, add showLabels": true to the config.json as you recomanded but no labels are shown.&lt;/P&gt;&lt;P&gt;I tested FL made from url and it works but FL from FeatureCollection doesn't.&lt;/P&gt;&lt;P&gt;Do you have any suggestions what else should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Zdenek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/560318#M14913</guid>
      <dc:creator>ZdeněkSoldán</dc:creator>
      <dc:date>2017-04-28T10:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1049774#M20722</link>
      <description>&lt;P&gt;Did you find the solution for this? I have the same issue!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 19:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1049774#M20722</guid>
      <dc:creator>ErfanGoharian</dc:creator>
      <dc:date>2021-04-21T19:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1306273#M23102</link>
      <description>&lt;P&gt;I have the same problem. I can't see the labels.&lt;/P&gt;&lt;P&gt;I create a layer with FeatureLayer. I don't know where I should deactivate the label.&lt;/P&gt;&lt;P&gt;I added it indicates it but still it does not activate the label&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="H__DanielRamos_Mendoza_0-1688663253255.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74934iEFDA6576903D61B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="H__DanielRamos_Mendoza_0-1688663253255.png" alt="H__DanielRamos_Mendoza_0-1688663253255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 17:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1306273#M23102</guid>
      <dc:creator>H__DanielRamos_Mendoza</dc:creator>
      <dc:date>2023-07-06T17:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1307358#M23107</link>
      <description>&lt;P&gt;Seguí todos los pasos que indica Robert y Anthony. El detalle de mío que la asignación del valor demora unos segundos. Agregue un SETTIMEOUT y con ello se soluciona el problema.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="H__DanielRamos_Mendoza_1-1689096209714.png" style="width: 632px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75189iE1C39EBE4CCB2051/image-dimensions/632x351?v=v2" width="632" height="351" role="button" title="H__DanielRamos_Mendoza_1-1689096209714.png" alt="H__DanielRamos_Mendoza_1-1689096209714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="H__DanielRamos_Mendoza_0-1689096178885.png" style="width: 644px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75188i4638945846E6F02E/image-dimensions/644x103?v=v2" width="644" height="103" role="button" title="H__DanielRamos_Mendoza_0-1689096178885.png" alt="H__DanielRamos_Mendoza_0-1689096178885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 17:23:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1307358#M23107</guid>
      <dc:creator>H__DanielRamos_Mendoza</dc:creator>
      <dc:date>2023-07-11T17:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1307366#M23109</link>
      <description>&lt;P&gt;Resultado final&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="H__DanielRamos_Mendoza_0-1689096420077.png" style="width: 768px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75194i9FEC00AB499B08FB/image-dimensions/768x545?v=v2" width="768" height="545" role="button" title="H__DanielRamos_Mendoza_0-1689096420077.png" alt="H__DanielRamos_Mendoza_0-1689096420077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 17:27:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1307366#M23109</guid>
      <dc:creator>H__DanielRamos_Mendoza</dc:creator>
      <dc:date>2023-07-11T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Labels Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1307371#M23110</link>
      <description>&lt;P&gt;Capa creada dinamicamente para su posterior carga dinamicamente.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="H__DanielRamos_Mendoza_1-1689096999552.png" style="width: 544px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75196i079366FB40E2800D/image-dimensions/544x431?v=v2" width="544" height="431" role="button" title="H__DanielRamos_Mendoza_1-1689096999552.png" alt="H__DanielRamos_Mendoza_1-1689096999552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 17:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-labels-custom-widget/m-p/1307371#M23110</guid>
      <dc:creator>H__DanielRamos_Mendoza</dc:creator>
      <dc:date>2023-07-11T17:37:15Z</dc:date>
    </item>
  </channel>
</rss>

