<?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: Custom Symbology Using Arcade Question Issue in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1596340#M64042</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/485161"&gt;@Amir-Sarrafzadeh-Arasi&lt;/a&gt;&amp;nbsp;much appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Mar 2025 21:28:07 GMT</pubDate>
    <dc:creator>KeiranBray</dc:creator>
    <dc:date>2025-03-17T21:28:07Z</dc:date>
    <item>
      <title>Custom Symbology Using Arcade Question Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1383097#M57505</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working on an ArcGIS Online map and I need some assistance with creating custom symbology using Arcade expressions. I have two fields in my dataset: 'Win/Loss' and 'MARTIN_OR_BLUE_WATER'. Here's what I'm trying to achieve:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I want the points to be colored blue if the 'Win/Loss' field is 'Retained' or 'Win'.&lt;/LI&gt;&lt;LI&gt;If the 'Win/Loss' field is 'Bid / Not Win', 'No Bid', or 'Loss', the points should be red.&lt;/LI&gt;&lt;LI&gt;Additionally, I'd like the points to have a green outline if the 'MARTIN_OR_BLUE_WATER' field value is 'BLUE'.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I received a helpful response that provided the following Arcade expression solution, but all I get are gray points on the screen:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Determine the point color based on 'Win/Loss' field values&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;color&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;If&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"Win/Loss"&lt;/SPAN&gt;&lt;SPAN&gt;] == &lt;/SPAN&gt;&lt;SPAN&gt;'Retained'&lt;/SPAN&gt;&lt;SPAN&gt; || &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"Win/Loss"&lt;/SPAN&gt;&lt;SPAN&gt;] == &lt;/SPAN&gt;&lt;SPAN&gt;'Win'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'blue'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// If 'Retained' or 'Win', set color to blue&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"Win/Loss"&lt;/SPAN&gt;&lt;SPAN&gt;] == &lt;/SPAN&gt;&lt;SPAN&gt;'Bid / Not Win'&lt;/SPAN&gt;&lt;SPAN&gt; || &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"Win/Loss"&lt;/SPAN&gt;&lt;SPAN&gt;] == &lt;/SPAN&gt;&lt;SPAN&gt;'No Bid'&lt;/SPAN&gt;&lt;SPAN&gt; || &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"Win/Loss"&lt;/SPAN&gt;&lt;SPAN&gt;] == &lt;/SPAN&gt;&lt;SPAN&gt;'Loss'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'red'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// If 'Bid / Not Win', 'No Bid', or 'Loss', set color to red&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;Else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'yellow'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Default color if none of the conditions above are met&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Determine if the outline should be green based on 'MARTIN_OR_BLUE_WATER' field&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;outlineColor&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;If&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"MARTIN_OR_BLUE_WATER"&lt;/SPAN&gt;&lt;SPAN&gt;] == &lt;/SPAN&gt;&lt;SPAN&gt;'BLUE WATER'&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;outlineColor&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'green'&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// If 'MARTIN_OR_BLUE_WATER' is 'BLUE WATER', set outline color to green&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;Else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;outlineColor&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// No outline if condition is not met&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Construct the symbol with the determined color and outlineColor&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;symbol&lt;/SPAN&gt;&lt;SPAN&gt; = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;// Use a simple marker symbol&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"color"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;color&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;// Set the fill color based on 'Win/Loss' field&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"outline"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"color"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;outlineColor&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;// Set the outline color based on 'MARTIN_OR_BLUE_WATER' field&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"width"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN&gt;// Set the outline width (adjust as needed)&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;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;symbol&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Any idea how to fix this code to get the desired results?&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 20:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1383097#M57505</guid>
      <dc:creator>JonJones1</dc:creator>
      <dc:date>2024-02-15T20:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Symbology Using Arcade Question Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1383138#M57507</link>
      <description>&lt;P&gt;Arcade cannot return symbols like that. What you'll have to do is symbolize the returned values in the legend editor.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var output;
If ($feature["Win/Loss"] == 'Retained' || $feature["Win/Loss"] == 'Win') {
  output = 'blue'; 
} Else If ($feature["Win/Loss"] == 'Bid / Not Win' || $feature["Win/Loss"] == 'No Bid' || $feature["Win/Loss"] == 'Loss') {
  output = 'red';
} Else {
  output = 'yellow '; 
}
If ($feature["MARTIN_OR_BLUE_WATER"] == 'BLUE WATER') output += ' outlined';
return output;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 21:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1383138#M57507</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-02-15T21:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Symbology Using Arcade Question Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1383278#M57511</link>
      <description>&lt;P&gt;Dear JonJones,&lt;/P&gt;&lt;P&gt;I hope you are doing great,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the issue you have mentioned the best approach can be utilizing Dictionary Renderer.&lt;/P&gt;&lt;P&gt;You can create a simple .stylx utlizing DB Browser for SQLite, but you need a little knowledge of Arcade.&lt;/P&gt;&lt;P&gt;I have published a sample map with points, as you want in ArcGIS Online, please check the below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://where-tech.maps.arcgis.com/apps/mapviewer/index.html?layers=7b7b9e533bb644f89add272e7e3470d7" target="_blank"&gt;https://where-tech.maps.arcgis.com/apps/mapviewer/index.html?layers=7b7b9e533bb644f89add272e7e3470d7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check carefully the table and values, and the colors on the map.&lt;/P&gt;&lt;P&gt;You have lots of freedom in Symbology Renderer, you can modify size of the points dynamicly, or add dynamic text and ......&lt;/P&gt;&lt;P&gt;Please check my Github link in the below to see more in details symbology renderer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AmirSarrafzadeh/symbology_dictionary" target="_blank"&gt;https://github.com/AmirSarrafzadeh/symbology_dictionary&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I also attached below some useful links to get more in deep about dictionary renderer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/styles-and-data-visualization/display-symbols-with-a-dictionary-renderer/" target="_blank"&gt;https://developers.arcgis.com/net/styles-and-data-visualization/display-symbols-with-a-dictionary-renderer/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/mapping/layer-properties/dictionary-renderer.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.1/help/mapping/layer-properties/dictionary-renderer.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 10:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1383278#M57511</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2024-02-16T10:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Symbology Using Arcade Question Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1595458#M64015</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/485161"&gt;@Amir-Sarrafzadeh-Arasi&lt;/a&gt;&amp;nbsp;do you still have the symbology_dictionary repository available? I was keen to take a look at it if it was still available,&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Keiran&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 23:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1595458#M64015</guid>
      <dc:creator>KeiranBray</dc:creator>
      <dc:date>2025-03-13T23:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Symbology Using Arcade Question Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1595520#M64016</link>
      <description>&lt;P&gt;Dear Keiran,&lt;/P&gt;&lt;P&gt;Please find the repository in the below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AmirSarrafzadeh/ArcGIS-Pro" target="_blank"&gt;https://github.com/AmirSarrafzadeh/ArcGIS-Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not update them recently, if you need more info please let me know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great weekend&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best Regards&lt;BR /&gt;Amir&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 09:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1595520#M64016</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2025-03-14T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Symbology Using Arcade Question Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1596340#M64042</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/485161"&gt;@Amir-Sarrafzadeh-Arasi&lt;/a&gt;&amp;nbsp;much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 21:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-symbology-using-arcade-question-issue/m-p/1596340#M64042</guid>
      <dc:creator>KeiranBray</dc:creator>
      <dc:date>2025-03-17T21:28:07Z</dc:date>
    </item>
  </channel>
</rss>

