<?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: How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565492#M52772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Use labelClass:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink1" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 18:35:19 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-02-27T18:35:19Z</dc:date>
    <item>
      <title>How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565491#M52771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am&amp;nbsp;adding a TextSymbol renderer to a feaure layer, but I cannot figure out how to make the text dynamic and pull from an attribute.&amp;nbsp; All the examples I found show static text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.motoLayer = new FeatureLayer({&lt;BR /&gt; url: this.layerURL,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; popupTemplate: this.motoTemplate,&lt;BR /&gt; popupEnabled: true,&lt;BR /&gt; labelingInfo: this.motoLabel,&lt;BR /&gt; labelsVisible: true&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var symbol = {&lt;BR /&gt; type: "text",&amp;nbsp;&lt;BR /&gt; color: "black",&lt;BR /&gt; haloColor: "white",&lt;BR /&gt; haloSize: "2px",&lt;BR /&gt; text: "\ue61d ${training_site}",&lt;BR /&gt; xoffset: 0,&lt;BR /&gt; yoffset: 0,&lt;BR /&gt; font: { // autocast as new Font()&lt;BR /&gt; size: 12,&lt;BR /&gt; family: "CalciteWebCoreIcons",&lt;BR /&gt; weight: "bolder"&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;this.motoLayer.renderer = {&lt;BR /&gt; type: "simple", // autocasts as new SimpleRenderer()&lt;BR /&gt; symbol: symbol&lt;BR /&gt; };&lt;BR /&gt; this.map.add(this.motoLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried putting a function in as well and that did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565491#M52771</guid>
      <dc:creator>PaulBrown</dc:creator>
      <dc:date>2018-02-27T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565492#M52772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Use labelClass:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink1" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565492#M52772</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-27T18:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565493#M52773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&amp;nbsp; I should of mentioned this is a 2D map and 3D is not an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565493#M52773</guid>
      <dc:creator>PaulBrown</dc:creator>
      <dc:date>2018-02-27T18:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565494#M52774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can still use LabelClass if you are labeling a MapImageLayer in 2D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565494#M52774</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-27T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565495#M52775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I am not using a mapimagelayer.&amp;nbsp; I am using a feature layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565495#M52775</guid>
      <dc:creator>PaulBrown</dc:creator>
      <dc:date>2018-02-27T19:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565496#M52776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not much I can do for you then as labeling in 2D is still pretty much unsupported.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565496#M52776</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-27T19:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make the text in a TextSymbol for a featurelayer pull from an attribute in 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565497#M52777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kind of a pain but it could be possible to use a graphics layer instead. Perhaps do a query against the feature service, get all of the features, then loop through each feature giving it the text symbol you want and adding it to the graphics layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-make-the-text-in-a-textsymbol-for-a/m-p/565497#M52777</guid>
      <dc:creator>BrandonFlessner</dc:creator>
      <dc:date>2018-02-28T14:29:09Z</dc:date>
    </item>
  </channel>
</rss>

