<?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: Legend not showing layer names in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/legend-not-showing-layer-names/m-p/1053747#M14482</link>
    <description>&lt;P&gt;Figured it out myself.&lt;BR /&gt;If anyone else comes across this and wonder, Ii was a style/css issue, even though I added some styles for the legend in the css I hadn't looked through the (very long) style.ccs-file for LayerList. It already had a part with legend-styles where some parts (the missing ones) had the display property set to none which explains why they didn't show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;/*********legend css from LegendDijit************/
.jimu-widget-layerList .esriLegendService {
  padding-bottom: 0;
}
.jimu-widget-layerList .esriLegendLayerLabel {
  padding-top: 0;
  height: 0;
  display: none;
}
.jimu-widget-layerList .esriLegendServiceLabel {
  display: none;
}
.jimu-widget-layerList .esriLegendLayer{
  font-size: 12px;
}

.jimu-widget-layerList .esriLegendMsg{
  display: none;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 12:52:07 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2021-05-03T12:52:07Z</dc:date>
    <item>
      <title>Legend not showing layer names</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/legend-not-showing-layer-names/m-p/1051721#M14477</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm extending the LayerList Widget by adding a tab container so that I have the layerlist in one tab and a Legend in the other tab. I've come pretty far but my problem is that my Legend does not show any layer names, group layer names or map service names. It only shows "layer swatches labels" if there is one.&lt;/P&gt;&lt;P&gt;Se attached screenshot.&lt;/P&gt;&lt;P&gt;I can't find any properties to the Legend dijit to control this behavior, and I have the styles for the labels in my css. Any ideas why the names doesn't show?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/legend-not-showing-layer-names/m-p/1051721#M14477</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-04-27T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Legend not showing layer names</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/legend-not-showing-layer-names/m-p/1053747#M14482</link>
      <description>&lt;P&gt;Figured it out myself.&lt;BR /&gt;If anyone else comes across this and wonder, Ii was a style/css issue, even though I added some styles for the legend in the css I hadn't looked through the (very long) style.ccs-file for LayerList. It already had a part with legend-styles where some parts (the missing ones) had the display property set to none which explains why they didn't show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;/*********legend css from LegendDijit************/
.jimu-widget-layerList .esriLegendService {
  padding-bottom: 0;
}
.jimu-widget-layerList .esriLegendLayerLabel {
  padding-top: 0;
  height: 0;
  display: none;
}
.jimu-widget-layerList .esriLegendServiceLabel {
  display: none;
}
.jimu-widget-layerList .esriLegendLayer{
  font-size: 12px;
}

.jimu-widget-layerList .esriLegendMsg{
  display: none;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 12:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/legend-not-showing-layer-names/m-p/1053747#M14482</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-05-03T12:52:07Z</dc:date>
    </item>
  </channel>
</rss>

