<?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 Bug: 4.26 SimpleLineSymbol is drawn despite setting style to none in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1278156#M80856</link>
    <description>&lt;P&gt;I have a polygon graphic with SimpleFillSymbol, which has SimpleLineSymbol as outline with style set to 'none'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to api docs SimpleLineSymbol with style "none" means that line has no symbol. &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#style" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#style&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Despite that fill outline is still drawn like for a style 'solid'.&lt;/P&gt;&lt;P&gt;Codepen sample:&amp;nbsp;&lt;A href="https://codepen.io/mateusz-olsztyski/pen/NWOxrvE" target="_blank"&gt;https://codepen.io/mateusz-olsztyski/pen/NWOxrvE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2023 08:23:36 GMT</pubDate>
    <dc:creator>mattheol</dc:creator>
    <dc:date>2023-04-13T08:23:36Z</dc:date>
    <item>
      <title>Bug: 4.26 SimpleLineSymbol is drawn despite setting style to none</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1278156#M80856</link>
      <description>&lt;P&gt;I have a polygon graphic with SimpleFillSymbol, which has SimpleLineSymbol as outline with style set to 'none'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to api docs SimpleLineSymbol with style "none" means that line has no symbol. &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#style" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#style&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Despite that fill outline is still drawn like for a style 'solid'.&lt;/P&gt;&lt;P&gt;Codepen sample:&amp;nbsp;&lt;A href="https://codepen.io/mateusz-olsztyski/pen/NWOxrvE" target="_blank"&gt;https://codepen.io/mateusz-olsztyski/pen/NWOxrvE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 08:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1278156#M80856</guid>
      <dc:creator>mattheol</dc:creator>
      <dc:date>2023-04-13T08:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bug: 4.26 SimpleLineSymbol is drawn despite setting style to none</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1278292#M80863</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We will look into this issue. You can use set the outline to be null as shown below and it will work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  const fillSymbol = {
    type: "simple-fill",
    color: [227, 139, 79, 1],
    outline: null
  };&lt;/LI-CODE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 15:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1278292#M80863</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-04-13T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bug: 4.26 SimpleLineSymbol is drawn despite setting style to none</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1281539#M80935</link>
      <description>&lt;P&gt;This problem has existed since 4.22 and lies in the esri/symbols/cim/CIMSymbolHelper module, particularly in the fromSimpleFillSymbol function:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        d.fromSimpleFillSymbol = function(a) {
            const {color: c, style: b, outline: e} = a;
            a = [];
            const g = {
                type: "CIMPolygonSymbol",
                symbolLayers: a
            };
            var f = null;
            if (e) {
                const {cap: k, join: l, style: h} = e;
                "solid" !== h &amp;amp;&amp;amp; "none" !== h &amp;amp;&amp;amp; "esriSLSSolid" !== h &amp;amp;&amp;amp; "esriSLSNull" !== h &amp;amp;&amp;amp; (f = [{
                    type: "CIMGeometricEffectDashes",
                    dashTemplate: R(h, k),
                    lineDashEnding: "NoConstraint",
                    scaleDash: !0,
                    offsetAlongLine: null
                }]);
                a.push({
                    type: "CIMSolidStroke",
                    color: u(e.color),
                    capStyle: P(k),
                    joinStyle: Q(l),
                    miterLimit: e.miterLimit,
                    width: e.width,
                    effects: f
                })
            }
            //etc
        };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem lies with line 9 of what's shown above; it should instead be something like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            if ((e) &amp;amp;&amp;amp; (e.style != "none") &amp;amp;&amp;amp; (e.style != "esriSLSNull")) {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until this is fixed, the style "none" for SimpleFillSymbol outlines will be ignored.&amp;nbsp; Another workaround, in addition to the one Undral mentioned, is to set your line symbol's opacity to zero (see line 7 below):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  const fillSymbol = {
    type: "simple-fill",
    color: [227, 139, 79, 1],
    outline: {
      type: "simple-line",
      style: "none",
      color: [255,0,0,0],
      width: 5
    }
  };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 00:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1281539#M80935</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-04-22T00:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bug: 4.26 SimpleLineSymbol is drawn despite setting style to none</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1287102#M81095</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue will be fixed at version 4.27. You can test the fix by pointing your codepen to &lt;A href="https://github.com/Esri/feedback-js-api-next/tree/main" target="_self"&gt;our next version.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 00:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-4-26-simplelinesymbol-is-drawn-despite-setting/m-p/1287102#M81095</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-05-09T00:24:17Z</dc:date>
    </item>
  </channel>
</rss>

