<?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 CIM Symbol not drawing in JS Maps SDK app in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cim-symbol-not-drawing-in-js-maps-sdk-app/m-p/1282899#M80969</link>
    <description>&lt;P&gt;I am having issues getting the CIM Symbol to render in a JS app.&amp;nbsp; I am using version 4.26 and just copied the json from the &lt;A href="https://esri.github.io/cim-symbol-builder-js/" target="_blank" rel="noopener"&gt;CIM&amp;nbsp; Symbol Builder&lt;/A&gt; directly.&amp;nbsp; There are no errors in the console but nothing renders on the map or in the legend.&amp;nbsp; Is there something wrong with the symbol json?&lt;/P&gt;&lt;P&gt;Below is the symbol code and below that is the renderer definition within the feature layer.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const mySymbol = new CIMSymbol({
    "data": {
      "type": "CIMSymbolReference",
      "symbol": {
        "type": "CIMPointSymbol",
        "symbolLayers": [
          {
            "type": "CIMVectorMarker",
            "enable": true,
            "anchorPointUnits": "Relative",
            "dominantSizeAxis3D": "Y",
            "size": 14,
            "billboardMode3D": "FaceNearPlane",
            "frame": {
              "xmin": 0,
              "ymin": 0,
              "xmax": 20.64,
              "ymax": 17
            },
            "markerGraphics": [
              {
                "type": "CIMMarkerGraphic",
                "geometry": {
                  "rings": [ [ [ 0, 9.71 ], [ 10.32, 17 ], [ 20.64, 9.71 ], [ 17, 0 ], [ 3.64, 0 ], [ 0, 9.71 ] ] ]
                },
                "symbol": {
                  "type": "CIMPolygonSymbol",
                  "symbolLayers": [
                    {
                      "type": "CIMSolidStroke",
                      "enable": true,
                      "capStyle": "Round",
                      "joinStyle": "Miter",
                      "lineStyle3D": "Strip",
                      "miterLimit": 10,
                      "width": 1,
                      "color": [ 163, 171, 215, 255 ]
                    },
                    {
                      "type": "CIMSolidFill",
                      "enable": true,
                      "color": [ 51, 97, 204, 255 ]
                    }
                  ]
                }
              }
            ],
            "scaleSymbolsProportionally": true,
            "respectFrame": true
          }
        ]
      }
    }
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const myFeatureLayer = new FeatureLayer({
    url: "urlToFeatureLayer/FeatureServer/0",
    title: "My Layer",
    visible: true,
    renderer: {
      type: 'simple',
      symbol: {
        type: 'cim',
        mySymbol
      }
    },
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 16:30:13 GMT</pubDate>
    <dc:creator>EricErtl</dc:creator>
    <dc:date>2023-04-26T16:30:13Z</dc:date>
    <item>
      <title>CIM Symbol not drawing in JS Maps SDK app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cim-symbol-not-drawing-in-js-maps-sdk-app/m-p/1282899#M80969</link>
      <description>&lt;P&gt;I am having issues getting the CIM Symbol to render in a JS app.&amp;nbsp; I am using version 4.26 and just copied the json from the &lt;A href="https://esri.github.io/cim-symbol-builder-js/" target="_blank" rel="noopener"&gt;CIM&amp;nbsp; Symbol Builder&lt;/A&gt; directly.&amp;nbsp; There are no errors in the console but nothing renders on the map or in the legend.&amp;nbsp; Is there something wrong with the symbol json?&lt;/P&gt;&lt;P&gt;Below is the symbol code and below that is the renderer definition within the feature layer.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const mySymbol = new CIMSymbol({
    "data": {
      "type": "CIMSymbolReference",
      "symbol": {
        "type": "CIMPointSymbol",
        "symbolLayers": [
          {
            "type": "CIMVectorMarker",
            "enable": true,
            "anchorPointUnits": "Relative",
            "dominantSizeAxis3D": "Y",
            "size": 14,
            "billboardMode3D": "FaceNearPlane",
            "frame": {
              "xmin": 0,
              "ymin": 0,
              "xmax": 20.64,
              "ymax": 17
            },
            "markerGraphics": [
              {
                "type": "CIMMarkerGraphic",
                "geometry": {
                  "rings": [ [ [ 0, 9.71 ], [ 10.32, 17 ], [ 20.64, 9.71 ], [ 17, 0 ], [ 3.64, 0 ], [ 0, 9.71 ] ] ]
                },
                "symbol": {
                  "type": "CIMPolygonSymbol",
                  "symbolLayers": [
                    {
                      "type": "CIMSolidStroke",
                      "enable": true,
                      "capStyle": "Round",
                      "joinStyle": "Miter",
                      "lineStyle3D": "Strip",
                      "miterLimit": 10,
                      "width": 1,
                      "color": [ 163, 171, 215, 255 ]
                    },
                    {
                      "type": "CIMSolidFill",
                      "enable": true,
                      "color": [ 51, 97, 204, 255 ]
                    }
                  ]
                }
              }
            ],
            "scaleSymbolsProportionally": true,
            "respectFrame": true
          }
        ]
      }
    }
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const myFeatureLayer = new FeatureLayer({
    url: "urlToFeatureLayer/FeatureServer/0",
    title: "My Layer",
    visible: true,
    renderer: {
      type: 'simple',
      symbol: {
        type: 'cim',
        mySymbol
      }
    },
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cim-symbol-not-drawing-in-js-maps-sdk-app/m-p/1282899#M80969</guid>
      <dc:creator>EricErtl</dc:creator>
      <dc:date>2023-04-26T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: CIM Symbol not drawing in JS Maps SDK app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cim-symbol-not-drawing-in-js-maps-sdk-app/m-p/1282930#M80971</link>
      <description>&lt;P&gt;The symbol definition looks good, but maybe try this instead when creating the FeatureLayer:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const myFeatureLayer = new FeatureLayer({
    url: "urlToFeatureLayer/FeatureServer/0",
    title: "My Layer",
    visible: true,
    renderer: {
      type: 'simple',
      symbol: mySymbol
    },
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 17:09:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cim-symbol-not-drawing-in-js-maps-sdk-app/m-p/1282930#M80971</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-04-26T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: CIM Symbol not drawing in JS Maps SDK app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cim-symbol-not-drawing-in-js-maps-sdk-app/m-p/1282933#M80973</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;- Thanks a ton!&amp;nbsp; I really appreciate the response - it worked.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 17:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cim-symbol-not-drawing-in-js-maps-sdk-app/m-p/1282933#M80973</guid>
      <dc:creator>EricErtl</dc:creator>
      <dc:date>2023-04-26T17:13:08Z</dc:date>
    </item>
  </channel>
</rss>

