<?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: Combine legend items in ArcGIS Online? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1250870#M49933</link>
    <description>&lt;P&gt;Experiencing this same issue: grouped symbology are being separated in the Map Viewer, AND in the web service when added to Pro. Group remains when viewing in Map Viewer Classic. I can save a lyrx file from the web service, with the symbology "re-grouped" and that seems to work.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 16:39:42 GMT</pubDate>
    <dc:creator>ArtRod_ODF</dc:creator>
    <dc:date>2023-01-24T16:39:42Z</dc:date>
    <item>
      <title>Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1199231#M47227</link>
      <description>&lt;P&gt;I made a simple map in ArcGIS Pro 3.0 where my one layer has combined, or grouped, symbology, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianWelsh_0-1659569630720.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47749i90E30D7D9589ADC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianWelsh_0-1659569630720.png" alt="AdrianWelsh_0-1659569630720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are only five classes yet that green class at the bottom is a combination of seven items. In Pro, this works normal and as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once it gets to ArcGIS Online, the legend spaces itself out, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianWelsh_1-1659569799033.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47750i126FB246023101FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianWelsh_1-1659569799033.png" alt="AdrianWelsh_1-1659569799033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I combine these in AGOL so it doesn't look spread out?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or is that not an option? It looks the same as this in the dashboard in which is it being shown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One interesting thing is that in the Map Viewer Classic, they get combined in the legend:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianWelsh_2-1659569902789.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47751i234AC00F4E5E51A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianWelsh_2-1659569902789.png" alt="AdrianWelsh_2-1659569902789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if I go to edit my symbology in Map Viewer Classic, they get ungrouped again:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdrianWelsh_3-1659569992506.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47752iFE7424C55ED8B6DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdrianWelsh_3-1659569992506.png" alt="AdrianWelsh_3-1659569992506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 23:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1199231#M47227</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2022-08-03T23:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1202160#M47366</link>
      <description>&lt;P&gt;I just stumbled on this as well. It appears to be a bug with the new map viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, confirmed that the bug impacts Experience Builder apps. At least the one I tested which is the Public Information template.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 20:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1202160#M47366</guid>
      <dc:creator>ZorbaConlen1</dc:creator>
      <dc:date>2022-08-11T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1205866#M47560</link>
      <description>&lt;P&gt;I also experienced this issue in the new map viewer. This issue doesn't happen in the classic map viewer.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 15:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1205866#M47560</guid>
      <dc:creator>SupriyaK</dc:creator>
      <dc:date>2022-08-24T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1250870#M49933</link>
      <description>&lt;P&gt;Experiencing this same issue: grouped symbology are being separated in the Map Viewer, AND in the web service when added to Pro. Group remains when viewing in Map Viewer Classic. I can save a lyrx file from the web service, with the symbology "re-grouped" and that seems to work.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1250870#M49933</guid>
      <dc:creator>ArtRod_ODF</dc:creator>
      <dc:date>2023-01-24T16:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1251421#M49960</link>
      <description>&lt;P&gt;Here is the bug for it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDE1MTMzMg==" target="_blank"&gt;https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDE1MTMzMg==&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 17:24:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1251421#M49960</guid>
      <dc:creator>SupriyaK</dc:creator>
      <dc:date>2023-01-25T17:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1252952#M50019</link>
      <description>&lt;P&gt;While this bug is being looked into, the work around I used was a fairly simple Arcade expression using "Decode", which allowed me to identify the attribute values and "code" them with the legend output I wanted. This worked well for me as I only had ~10 possible attribute values going into 7 different codes.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 16:37:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1252952#M50019</guid>
      <dc:creator>ArtRod_ODF</dc:creator>
      <dc:date>2023-01-30T16:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1255881#M50207</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/588294"&gt;@ArtRod_ODF&lt;/a&gt;&amp;nbsp;&amp;nbsp;Can you share your arcade code where you used decode?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 20:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1255881#M50207</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2023-02-07T20:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1255916#M50211</link>
      <description>&lt;P&gt;This is the exact expression I used, in the "Set an expression" button in the Symbology pane in Pro. This pulled in my potential values from a field, and then output them into the groups I wanted for the symbology.&lt;/P&gt;&lt;P&gt;Decode(Left($feature.ELCODE,2), "KP", "Algae/Lichen", "NA", "Algae/Lichen", "NL", "Algae/Lichen", "AA", "Amphibian", "AB", "Bird", "AF", "Fish", "NF", "Fungus", "IA", "Invertebrate", "IC", "Invertebrate", "II", "Invertebrate", "IL", "Invertebrate", "IM", "Invertebrate", "IP", "Invertebrate", "AM", "Mammal", "NB", "Plant", "PD", "Plant", "PG", "Plant", "PM", "Plant", "PP", "Plant", "AR", "Reptile", "Other")&lt;/P&gt;&lt;P&gt;For my use, I wanted to symbolize on the first two characters of the ELCODE field, which is where this part of the expression comes from:&amp;nbsp;Left($feature.ELCODE,2)&lt;/P&gt;&lt;P&gt;Decode works off a list made up of first the value from the field being examined, and then the output that matches it (kind of like a simplified If/Then statement). In my case, for the values "KP", "NA", and "NL" all return the same "Algae/Lichen" value, which essentially groups those input values in the symbology class. Note you also need one last output value, which gets returned if the input value doesn't match any of the possibilities. Since they all get grouped from the Arcade expression, it then symbolizes correctly within the service in both AGOL map viewers, and when added into Pro.&lt;/P&gt;&lt;P&gt;More info on Decode here -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 21:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1255916#M50211</guid>
      <dc:creator>ArtRod_ODF</dc:creator>
      <dc:date>2023-02-07T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Combine legend items in ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1312834#M53613</link>
      <description>&lt;P&gt;Thank you so much for figuring this out. I've been dealing with it for forever as well, and even after troubleshooting it with an ESRI tech their best advice was to just add a new field for symbology and manually group categories. Neither of us came across this particular thread beforehand I guess.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 20:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/combine-legend-items-in-arcgis-online/m-p/1312834#M53613</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2023-07-27T20:48:43Z</dc:date>
    </item>
  </channel>
</rss>

