<?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 Remap Legend Labels - Dynamic Options? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/remap-legend-labels-dynamic-options/m-p/1648707#M66249</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a Web Map containing a Point Layer, with the symbology based on a field in that layer ("Stop_Number"). By default, the label in the Legend is just the value of the field that determines the symbology, i.e. Stop_Number - so in this case, stops are labeled things like 1, 2, 3, etc.&lt;/P&gt;&lt;P&gt;I want to programmatically change the labels in the Legend to pull values from another field, "Title". From what I have found so far, it should be possible to do this by modifying the renderer portion JSON layer definition: I will access the feature layer, create a dictionary mapping Stop_Number values to their corresponding Title values, and then use that dictionary to change the value for the "label" key to have the Title text, based on a match with the "values" key (which holds Stop_Number). I am working on this process currently, but as far as I can tell, it should work.&lt;BR /&gt;&lt;BR /&gt;However, this would require the script to be re-run each time the underlying layer is modified to have more points, or change the value for Title or Stop_Number on existing points.&lt;BR /&gt;&lt;BR /&gt;I am wondering:&lt;BR /&gt;&lt;BR /&gt;1) Does this JSON-based editing approach make sense? Am I on the right track with this?&lt;BR /&gt;&lt;BR /&gt;2) Is there a better way to have this remapping done dynamically, i.e. to always be up to date whenever the Point layer is edited, without having to periodically re-run my script?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any insights or suggestions!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2025 19:10:19 GMT</pubDate>
    <dc:creator>JasperRomero</dc:creator>
    <dc:date>2025-09-08T19:10:19Z</dc:date>
    <item>
      <title>Remap Legend Labels - Dynamic Options?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/remap-legend-labels-dynamic-options/m-p/1648707#M66249</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a Web Map containing a Point Layer, with the symbology based on a field in that layer ("Stop_Number"). By default, the label in the Legend is just the value of the field that determines the symbology, i.e. Stop_Number - so in this case, stops are labeled things like 1, 2, 3, etc.&lt;/P&gt;&lt;P&gt;I want to programmatically change the labels in the Legend to pull values from another field, "Title". From what I have found so far, it should be possible to do this by modifying the renderer portion JSON layer definition: I will access the feature layer, create a dictionary mapping Stop_Number values to their corresponding Title values, and then use that dictionary to change the value for the "label" key to have the Title text, based on a match with the "values" key (which holds Stop_Number). I am working on this process currently, but as far as I can tell, it should work.&lt;BR /&gt;&lt;BR /&gt;However, this would require the script to be re-run each time the underlying layer is modified to have more points, or change the value for Title or Stop_Number on existing points.&lt;BR /&gt;&lt;BR /&gt;I am wondering:&lt;BR /&gt;&lt;BR /&gt;1) Does this JSON-based editing approach make sense? Am I on the right track with this?&lt;BR /&gt;&lt;BR /&gt;2) Is there a better way to have this remapping done dynamically, i.e. to always be up to date whenever the Point layer is edited, without having to periodically re-run my script?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any insights or suggestions!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 19:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/remap-legend-labels-dynamic-options/m-p/1648707#M66249</guid>
      <dc:creator>JasperRomero</dc:creator>
      <dc:date>2025-09-08T19:10:19Z</dc:date>
    </item>
  </channel>
</rss>

