<?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: Changing the icons in the LayerList Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-icons-in-the-layerlist-widget/m-p/1395705#M84000</link>
    <description>&lt;P&gt;Hi, there's a new property for that since 4.29:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#visibilityAppearance" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#visibilityAppearance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;before that version we used !important in css:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.esri-icon-non-visible::before {
	content: "\e610" !important;
}
.esri-icon-visible::before {
	content: "\e611" !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 07:59:09 GMT</pubDate>
    <dc:creator>AndreV</dc:creator>
    <dc:date>2024-03-14T07:59:09Z</dc:date>
    <item>
      <title>Changing the icons in the LayerList Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-icons-in-the-layerlist-widget/m-p/1395385#M83990</link>
      <description>&lt;P&gt;I would really love to use the LayerList widget in my custom js api apps (built using React and Vite), but my clients really don't like the eyeball to indicate if the layer is visible or not.&amp;nbsp; They prefer the checkbox found in the layer list of the web app builder.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was inspired by this post (&lt;A href="https://codepen.io/anon/pen/QovRre?editors=1000#anon-login" target="_blank"&gt;https://codepen.io/anon/pen/QovRre?editors=1000#anon-login&lt;/A&gt;) and I have tried to change the icon using the css with something like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;.esri-layer-list__visible-icon::before {&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;content: "\e611";&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;but the eyeball remains, only with a question mark in front of it, like the css is adding an unknown icon.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does anyone have a suggestion as to how I can replace the eyeball icon in a React app?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Mar 2024 16:17:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-icons-in-the-layerlist-widget/m-p/1395385#M83990</guid>
      <dc:creator>MichelleStuart</dc:creator>
      <dc:date>2024-03-13T16:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the icons in the LayerList Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-icons-in-the-layerlist-widget/m-p/1395705#M84000</link>
      <description>&lt;P&gt;Hi, there's a new property for that since 4.29:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#visibilityAppearance" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#visibilityAppearance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;before that version we used !important in css:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.esri-icon-non-visible::before {
	content: "\e610" !important;
}
.esri-icon-visible::before {
	content: "\e611" !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 07:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-icons-in-the-layerlist-widget/m-p/1395705#M84000</guid>
      <dc:creator>AndreV</dc:creator>
      <dc:date>2024-03-14T07:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the icons in the LayerList Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-icons-in-the-layerlist-widget/m-p/1395773#M84005</link>
      <description>&lt;P&gt;I don't know how I missed that when I was scanning the properties in the documentation.&amp;nbsp; Thank you for kindly pointing the way!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 12:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-icons-in-the-layerlist-widget/m-p/1395773#M84005</guid>
      <dc:creator>MichelleStuart</dc:creator>
      <dc:date>2024-03-14T12:30:02Z</dc:date>
    </item>
  </channel>
</rss>

