<?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: Symbology JSON Creation in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/symbology-json-creation/m-p/278836#M3270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this question too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2020 19:13:58 GMT</pubDate>
    <dc:creator>NathanRyan</dc:creator>
    <dc:date>2020-08-04T19:13:58Z</dc:date>
    <item>
      <title>Symbology JSON Creation</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/symbology-json-creation/m-p/278835#M3269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an easy way to generate the JSON for a symbol renderer.&amp;nbsp; For example, can I automatically generate the symbol JSON from a layer file for symbology that we have already defined via ArcMap?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can update the renderer for a loaded FeatureLayer with something similar to the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renderer ren = Renderer.FromJson(File.ReadAllText(symbolJson));&lt;/P&gt;&lt;P&gt;loadedLayer.Renderer = ren;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symbol JSON is similar to the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "type": "uniqueValue",&lt;BR /&gt; "field1": "SUBTYPECD",&lt;BR /&gt; "field2": "WORKFUNCTION",&lt;BR /&gt; "field3": null,&lt;BR /&gt; "defaultSymbol": {&lt;BR /&gt; "type": "esriSLS",&lt;BR /&gt; "style": "esriSLSSolid",&lt;BR /&gt; "color": [&lt;BR /&gt; 156,&lt;BR /&gt; 156,&lt;BR /&gt; 156,&lt;BR /&gt; 255&lt;BR /&gt; ],&lt;BR /&gt; "width": 1&lt;BR /&gt; },&lt;BR /&gt; "defaultLabel": "&amp;lt;all other values&amp;gt;",&lt;BR /&gt; "uniqueValueInfos": [&lt;BR /&gt; {&lt;BR /&gt; "symbol": {&lt;BR /&gt; "type": "esriSLS",&lt;BR /&gt; "style": "esriSLSSolid",&lt;BR /&gt; "color": [&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 255&lt;BR /&gt; ],&lt;BR /&gt; "width": 0.5&lt;BR /&gt; },&lt;BR /&gt; "value": "1,30",&lt;BR /&gt; "label": "Primary Bus Bar, In Service",&lt;BR /&gt; "description": ""&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "symbol": {&lt;BR /&gt; "type": "esriSLS",&lt;BR /&gt; "style": "esriSLSSolid",&lt;BR /&gt; "color": [&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 255&lt;BR /&gt; ],&lt;BR /&gt; "width": 0.5&lt;BR /&gt; },&lt;BR /&gt; "value": "1,5",&lt;BR /&gt; "label": "Primary Bus Bar, In Service",&lt;BR /&gt; "description": ""&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "symbol": {&lt;BR /&gt; "type": "esriSLS",&lt;BR /&gt; "style": "esriSLSSolid",&lt;BR /&gt; "color": [&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 255&lt;BR /&gt; ],&lt;BR /&gt; "width": 1&lt;BR /&gt; },&lt;BR /&gt; "value": "2,30",&lt;BR /&gt; "label": "Secondary Bus Bar, In Service",&lt;BR /&gt; "description": ""&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "symbol": {&lt;BR /&gt; "type": "esriSLS",&lt;BR /&gt; "style": "esriSLSSolid",&lt;BR /&gt; "color": [&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 255&lt;BR /&gt; ],&lt;BR /&gt; "width": 1&lt;BR /&gt; },&lt;BR /&gt; "value": "2,5",&lt;BR /&gt; "label": "Secondary Bus Bar, In Service",&lt;BR /&gt; "description": ""&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "symbol": {&lt;BR /&gt; "type": "esriSLS",&lt;BR /&gt; "style": "esriSLSSolid",&lt;BR /&gt; "color": [&lt;BR /&gt; 255,&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 255&lt;BR /&gt; ],&lt;BR /&gt; "width": 1&lt;BR /&gt; },&lt;BR /&gt; "value": "1,0",&lt;BR /&gt; "label": "Primary Bus Bar, Proposed - Install",&lt;BR /&gt; "description": ""&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "symbol": {&lt;BR /&gt; "type": "esriSLS",&lt;BR /&gt; "style": "esriSLSSolid",&lt;BR /&gt; "color": [&lt;BR /&gt; 255,&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 255&lt;BR /&gt; ],&lt;BR /&gt; "width": 0.5&lt;BR /&gt; },&lt;BR /&gt; "value": "2,0",&lt;BR /&gt; "label": "Secondary Bus Bar, Proposed - Install",&lt;BR /&gt; "description": ""&lt;BR /&gt; }&lt;BR /&gt; ],&lt;BR /&gt; "fieldDelimiter": ","&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 19:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/symbology-json-creation/m-p/278835#M3269</guid>
      <dc:creator>KrisFoster</dc:creator>
      <dc:date>2019-07-23T19:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Symbology JSON Creation</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/symbology-json-creation/m-p/278836#M3270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this question too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/symbology-json-creation/m-p/278836#M3270</guid>
      <dc:creator>NathanRyan</dc:creator>
      <dc:date>2020-08-04T19:13:58Z</dc:date>
    </item>
  </channel>
</rss>

