<?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 jsapi 4.0 Legend: Layer titles with defintion expressions in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-0-legend-layer-titles-with-defintion/m-p/204090#M18917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again - &lt;/P&gt;&lt;P&gt;In prep for the upcoming layer list widget, I am setting up a legend widget:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var legend = new Legend({
&amp;nbsp; view: view,
&amp;nbsp; layerInfos: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: lyrEnvBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Environmental"
&amp;nbsp; }, 
&amp;nbsp; {
&amp;nbsp; layer: lyrFacBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Facilities"
&amp;nbsp; },
&amp;nbsp; {
&amp;nbsp; layer: lyrMobBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Transportation"
&amp;nbsp; },
&amp;nbsp; {
&amp;nbsp; layer: lyrUtilBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Utilities"
&amp;nbsp; }]
&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;very straighforward, except each layer in the array has been filtered with a defintion expression.&amp;nbsp; What happens is the title is then not honored, even though the consol log for the legend widget clearly shows the title in the array:&lt;/P&gt;&lt;OL class="children expanded" style="list-style-type: none; padding-left: 12px; color: #212121; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="name properties-accessor-property-name" style="color: #881391;"&gt;layerInfos&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="object-value-array value" style="color: inherit;"&gt;Array[4]&lt;/SPAN&gt;&lt;OL class="children expanded" style="list-style-type: none; padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="name" style="color: #881391;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="object-value-object value" style="color: inherit;"&gt;Object&lt;/SPAN&gt;&lt;OL class="children expanded" style="list-style-type: none; padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="name" style="color: #881391;"&gt;layer&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="object-value-object value" style="color: inherit;"&gt;Object&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="name" style="color: #881391;"&gt;title&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="value object-value-string" style="color: #c41a16;"&gt;"Environmental"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;something similar happened with the layer list at the 3.14 ( I think) release where the title param wasn't being passed to the dom node to display the title correctly in the layer list - ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:07:49 GMT</pubDate>
    <dc:creator>DavidColey</dc:creator>
    <dc:date>2021-12-11T10:07:49Z</dc:date>
    <item>
      <title>jsapi 4.0 Legend: Layer titles with defintion expressions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-0-legend-layer-titles-with-defintion/m-p/204090#M18917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again - &lt;/P&gt;&lt;P&gt;In prep for the upcoming layer list widget, I am setting up a legend widget:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var legend = new Legend({
&amp;nbsp; view: view,
&amp;nbsp; layerInfos: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: lyrEnvBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Environmental"
&amp;nbsp; }, 
&amp;nbsp; {
&amp;nbsp; layer: lyrFacBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Facilities"
&amp;nbsp; },
&amp;nbsp; {
&amp;nbsp; layer: lyrMobBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Transportation"
&amp;nbsp; },
&amp;nbsp; {
&amp;nbsp; layer: lyrUtilBnds,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Utilities"
&amp;nbsp; }]
&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;very straighforward, except each layer in the array has been filtered with a defintion expression.&amp;nbsp; What happens is the title is then not honored, even though the consol log for the legend widget clearly shows the title in the array:&lt;/P&gt;&lt;OL class="children expanded" style="list-style-type: none; padding-left: 12px; color: #212121; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="name properties-accessor-property-name" style="color: #881391;"&gt;layerInfos&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="object-value-array value" style="color: inherit;"&gt;Array[4]&lt;/SPAN&gt;&lt;OL class="children expanded" style="list-style-type: none; padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="name" style="color: #881391;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="object-value-object value" style="color: inherit;"&gt;Object&lt;/SPAN&gt;&lt;OL class="children expanded" style="list-style-type: none; padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="name" style="color: #881391;"&gt;layer&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="object-value-object value" style="color: inherit;"&gt;Object&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="name" style="color: #881391;"&gt;title&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="value object-value-string" style="color: #c41a16;"&gt;"Environmental"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;something similar happened with the layer list at the 3.14 ( I think) release where the title param wasn't being passed to the dom node to display the title correctly in the layer list - ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-0-legend-layer-titles-with-defintion/m-p/204090#M18917</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-12-11T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: jsapi 4.0 Legend: Layer titles with defintion expressions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-0-legend-layer-titles-with-defintion/m-p/204091#M18918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a known issue at 4.0. Should not be a problem at 4.1. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 23:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-0-legend-layer-titles-with-defintion/m-p/204091#M18918</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2016-08-04T23:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: jsapi 4.0 Legend: Layer titles with defintion expressions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-0-legend-layer-titles-with-defintion/m-p/204092#M18919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Undral-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 15:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-4-0-legend-layer-titles-with-defintion/m-p/204092#M18919</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2016-08-05T15:10:35Z</dc:date>
    </item>
  </channel>
</rss>

