<?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: Fetch icons/symbology directly from feature layer into ArcGIS List in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1325642#M8423</link>
    <description>&lt;P&gt;I don't think you can. In Arcade, Feature and FeatureSet objects don't include any information about the symbology. In general, the feature icon is useless for Data Expressions.&lt;/P&gt;&lt;P&gt;However! Depending on how complex your symbology is, you can use Advanced Formatting and SVGs to recreate your icons in the list, that way each feature can have a data-driven symbol that updates with the layer. More tedious to set up, but definitely doable. I can dig up an example if you like, but similar posts are here on the Community already, and you could probably find them with a search.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 21:27:34 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-09-05T21:27:34Z</dc:date>
    <item>
      <title>Fetch icons/symbology directly from feature layer into ArcGIS List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1325593#M8420</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am configuring a dashboard where I used a list widget and would like to display the right icons besides the listed features.&lt;/P&gt;&lt;P&gt;I have used arcade coding to get the output of this list which is derived from one of the feature layers used in the web map present in my dashboard. I am aware that to get the list icons, one can simply choose Configure&amp;gt;List&amp;gt;&lt;SPAN&gt;Line item icon&amp;gt;Symbol.&amp;nbsp; But this way, my list widget is not able to draw the right symbology of the feature layer (red colored circles) as shown in the&amp;nbsp;screenshot below instead it just draws the default ArcGIS symbology for point geometry (reddish-orange-colored&amp;nbsp;circles).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there a way to directly the fetch the symbology/icon from the feature layer into the list widget, maybe through advanced formatting or so?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shubhreet_0-1693942475170.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79889i0AFBB88BC510B00B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shubhreet_0-1693942475170.png" alt="Shubhreet_0-1693942475170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1325593#M8420</guid>
      <dc:creator>Shubhreet</dc:creator>
      <dc:date>2023-09-05T19:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch icons/symbology directly from feature layer into ArcGIS List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1325642#M8423</link>
      <description>&lt;P&gt;I don't think you can. In Arcade, Feature and FeatureSet objects don't include any information about the symbology. In general, the feature icon is useless for Data Expressions.&lt;/P&gt;&lt;P&gt;However! Depending on how complex your symbology is, you can use Advanced Formatting and SVGs to recreate your icons in the list, that way each feature can have a data-driven symbol that updates with the layer. More tedious to set up, but definitely doable. I can dig up an example if you like, but similar posts are here on the Community already, and you could probably find them with a search.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 21:27:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1325642#M8423</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-09-05T21:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch icons/symbology directly from feature layer into ArcGIS List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1326080#M8427</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;. As per your suggestion, I just tried advanced formatting in the List widget using SVG code but could not get the desired result. Below is my code. Could you please take a look to suggest any improvement(s)?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please note: I am trying to display only one icon (red colored circle) which is associated with one of my fields&amp;nbsp;in the attribute table. The name of the field is 'OutbreakStatus' which can have only two values - 'Yes' or 'No'. The output of the List only includes 'Yes' values for the 'OutbreakStatus' and hence the icons of those outputs should be all same and show only red circles.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;red_circle&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;`&amp;lt;svg height="100" width="100"&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;circle cx="50" cy="50" r="10" stroke="maroon" stroke-width="3" fill="red" /&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/svg&amp;gt;`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// set icon var by attribute&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;icon&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Decode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$datapoint&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&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t;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;selectionTextColor&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;attributes&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;icon&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Sep 2023 18:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1326080#M8427</guid>
      <dc:creator>Shubhreet</dc:creator>
      <dc:date>2023-09-06T18:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch icons/symbology directly from feature layer into ArcGIS List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1326087#M8430</link>
      <description>&lt;P&gt;Oh! If the icon is the same for each row, you don't need Arcade at all. In the line item template, click to view the source and just drop in your &amp;lt;svg&amp;gt;...&amp;lt;/svg&amp;gt; tags. You'll probably need a couple of divs to get them aligned nicely.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 18:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1326087#M8430</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-09-06T18:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch icons/symbology directly from feature layer into ArcGIS List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1326917#M8442</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;for sharing your idea. I did exactly the same as you suggested but still cannot see the desired icon instead only the default icons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shubhreet_0-1694196886935.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80230i8700B992B4489277/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shubhreet_0-1694196886935.png" alt="Shubhreet_0-1694196886935.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 18:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1326917#M8442</guid>
      <dc:creator>Shubhreet</dc:creator>
      <dc:date>2023-09-08T18:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch icons/symbology directly from feature layer into ArcGIS List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1330688#M8491</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I was wondering if you had a chance to look into my latest reply to this post.&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 16:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/fetch-icons-symbology-directly-from-feature-layer/m-p/1330688#M8491</guid>
      <dc:creator>Shubhreet</dc:creator>
      <dc:date>2023-09-20T16:12:56Z</dc:date>
    </item>
  </channel>
</rss>

