<?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: Set symbology in Map Viewer before data arrives in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188655#M46758</link>
    <description>&lt;P&gt;This is on our roadmap to support adding additional values to the types renderer that might not be there. Aiming for end of this year update.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 12:03:31 GMT</pubDate>
    <dc:creator>RussRoberts</dc:creator>
    <dc:date>2022-07-01T12:03:31Z</dc:date>
    <item>
      <title>Set symbology in Map Viewer before data arrives</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188537#M46754</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I feel like I've been doing this the hard way and am hoping someone has a solution here.&lt;/P&gt;&lt;P&gt;I want to preset the symbology by one field type in Map Viewer (not in Classic) to unique types. I haven't figured out how to set the symbology until&amp;nbsp; after the data set is populating. Normally, that's what I do. I'll build the web map and show it to the client after I have their data, but this time, I have to build the map and have the portal ready before the data arrives.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 00:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188537#M46754</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-07-01T00:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set symbology in Map Viewer before data arrives</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188625#M46757</link>
      <description>&lt;P&gt;I havent' found a way to do this without data.&lt;/P&gt;&lt;P&gt;I think the best (only?) way to do this is to create a dummy feature for each of the types you expect, configure the symbols, then delete the dummy features.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 09:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188625#M46757</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-07-01T09:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set symbology in Map Viewer before data arrives</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188655#M46758</link>
      <description>&lt;P&gt;This is on our roadmap to support adding additional values to the types renderer that might not be there. Aiming for end of this year update.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 12:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188655#M46758</guid>
      <dc:creator>RussRoberts</dc:creator>
      <dc:date>2022-07-01T12:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set symbology in Map Viewer before data arrives</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188685#M46759</link>
      <description>&lt;P&gt;There are a couple ways to do this without data. One's simple enough, the other less so.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The easier way:&lt;/STRONG&gt; If you want this configured on a&amp;nbsp;&lt;EM&gt;per-map&amp;nbsp;&lt;/EM&gt;basis, open the map with the empty feature layer in ArcGIS Pro. From there, you can configure the symbology any way that you wish, including adding symbology categories for yet-to-be-added values. After configuring as you need, you can then save the web map from Pro with all the settings intact.&lt;/P&gt;&lt;P&gt;To then make this symbology the default for the layer definition, so that the symbology loads in any new maps elsewhere, simply open that map in the Classic map viewer and click "Save layer" in the contents panel. This saves the layer configuration back to the service itself.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The harder way:&amp;nbsp;&lt;/STRONG&gt;To do this for the layer's default settings directly (not using map), manipulating the service JSON is the only way for it. You can modify the service JSON through the REST endpoint, the Python API, or by using the AGOL Assistant.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you get the JSON, look for the&amp;nbsp;&lt;STRONG&gt;drawingInfo&lt;/STRONG&gt; object. It will look like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  "renderer": {
    "type": "simple",
    "symbol": {
      "color": [79, 129, 189, 0],
      "outline": {
        "color": [54, 93, 141, 255],
        "width": 1.5,
        "type": "esriSLS",
        "style": "esriSLSSolid"
      },
      "type": "esriSFS",
      "style": "esriSFSSolid"
    }
  },
  "transparency": 0
}&lt;/LI-CODE&gt;&lt;P&gt;Mind, this example is for a very simple symbology type. Having a classified rendering style can get more complex very quickly. But by modifying this object and passing it back to the service, you can update the symbology to account for data types not present yet.&lt;/P&gt;&lt;P&gt;Try the Pro approach first, though.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 13:22:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1188685#M46759</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-07-01T13:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set symbology in Map Viewer before data arrives</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1190618#M46870</link>
      <description>&lt;P&gt;Thanks community for your replies. Great discussion.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;, I'm going to give this a go.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17874"&gt;@RussRoberts&lt;/a&gt;&amp;nbsp;looking forward to this upgrade.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/423844"&gt;@JoHo&lt;/a&gt;&amp;nbsp;yes that's what I used to do too.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 22:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/set-symbology-in-map-viewer-before-data-arrives/m-p/1190618#M46870</guid>
      <dc:creator>Lindsay</dc:creator>
      <dc:date>2022-07-07T22:04:17Z</dc:date>
    </item>
  </channel>
</rss>

