<?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: Display Dynamic Labels for Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-dynamic-labels-for-layer/m-p/710170#M66042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not totally sure I follow the question, but here is an example displaying a featureLayer from client-side graphics using an Arcade expression to label features with the current year.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/noash/pen/YzPNJYQ" title="https://codepen.io/noash/pen/YzPNJYQ"&gt;https://codepen.io/noash/pen/YzPNJYQ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2019 20:53:25 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2019-12-18T20:53:25Z</dc:date>
    <item>
      <title>Display Dynamic Labels for Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-dynamic-labels-for-layer/m-p/710169#M66041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to create labels on streets that would show the AADT (Annual Average Daily Traffic) for a street segment. I can easily do this by creating a spatial view that pulls the AADT as the label.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem: The year is hardcoded in the label's SQL Query. I would like to pass in the Year value from the browser and have the correct AADT values applied. Is this something that can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note, I've attempted creating a new FeatureLayer on the client using the featureset returned for the street affected. This works fine and I can change the labelinfo for the new featurelayer, but my labels aren't showing. I'm thinking this is a limitation to what the ArcGIS API can do. Is this a feasible solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 15:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-dynamic-labels-for-layer/m-p/710169#M66041</guid>
      <dc:creator>TomLewis</dc:creator>
      <dc:date>2019-12-18T15:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Display Dynamic Labels for Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-dynamic-labels-for-layer/m-p/710170#M66042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not totally sure I follow the question, but here is an example displaying a featureLayer from client-side graphics using an Arcade expression to label features with the current year.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/noash/pen/YzPNJYQ" title="https://codepen.io/noash/pen/YzPNJYQ"&gt;https://codepen.io/noash/pen/YzPNJYQ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 20:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-dynamic-labels-for-layer/m-p/710170#M66042</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-12-18T20:53:25Z</dc:date>
    </item>
  </channel>
</rss>

