<?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: Sketch lines not visible in 2D in version 4.22 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-lines-not-visible-in-2d-in-version-4-22/m-p/1158039#M76804</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/521961"&gt;@ironmaskito&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Could you provide a reproducible sample app? Just want to make sure we look at the exact issue you ran into.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 20:38:33 GMT</pubDate>
    <dc:creator>JoseBanuelos</dc:creator>
    <dc:date>2022-03-25T20:38:33Z</dc:date>
    <item>
      <title>Sketch lines not visible in 2D in version 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-lines-not-visible-in-2d-in-version-4-22/m-p/1153149#M76626</link>
      <description>&lt;P&gt;After updating ArcGIS from 4.21 to 4.22 I noticed that sketched lines are not visible in 2D view. I am using SketchViewModel with a custom UI instead of Sketch Widget, which works fine. Below, I sketched 3 vertices, but the lines between the vertices are missing. When I complete the sketch, the lines do not appear either. Sketching lines works fine in 3D view and also when I sketch other shapes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="invisible line bugfix.png" style="width: 584px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36201i4FBC6070B79222A2/image-dimensions/584x414?v=v2" width="584" height="414" role="button" title="invisible line bugfix.png" alt="invisible line bugfix.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am also able to get the lines to appear in 2D when I remove all the graphics from the sketchVM's layer and add the cloned graphics back to the layer.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;sketchVM&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getLayer&lt;/SPAN&gt;&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;SPAN&gt;removeAll&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sketchVM&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getLayer&lt;/SPAN&gt;&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;graphic&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sketchVM&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;update&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;graphic&lt;/SPAN&gt;&lt;SPAN&gt;, { &lt;/SPAN&gt;&lt;SPAN&gt;tool&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'reshape'&lt;/SPAN&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, I would like to see the lines appear while editing the shape as I did in 4.21. Is this a bug in 4.22?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SOLVED&lt;/P&gt;&lt;P&gt;So the problem ended up being the Color attribute's alpha value was undefined, resulting in polyline not being visible except for the vertices. An undefined alpha value in v4.21 did not cause visibility issues of polyline while in 4.22 it results in the edges of a line not being visible. I don't see this documented anywhere?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 15:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-lines-not-visible-in-2d-in-version-4-22/m-p/1153149#M76626</guid>
      <dc:creator>ironmaskito</dc:creator>
      <dc:date>2022-03-15T15:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch lines not visible in 2D in version 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-lines-not-visible-in-2d-in-version-4-22/m-p/1158039#M76804</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/521961"&gt;@ironmaskito&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Could you provide a reproducible sample app? Just want to make sure we look at the exact issue you ran into.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 20:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-lines-not-visible-in-2d-in-version-4-22/m-p/1158039#M76804</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2022-03-25T20:38:33Z</dc:date>
    </item>
  </channel>
</rss>

