<?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: Editor widget for offline layer, added feature disappears when drawing completes but shows after save clicked in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1242284#M79667</link>
    <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;BR /&gt;I tried it, it was the same&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 09:33:20 GMT</pubDate>
    <dc:creator>AmroOsama</dc:creator>
    <dc:date>2022-12-19T09:33:20Z</dc:date>
    <item>
      <title>Editor widget for offline layer, added feature disappears when drawing completes but shows after save clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1240540#M79629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Arcgis JS api 4.23&amp;nbsp; with angular using the&amp;nbsp;&lt;SPAN&gt;arcgis/core package&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have an offline featurelayer, with no url, and the source is set to an empty array&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when using the editor widget, I start drawing the graphic, the lines show fine, as soon as I double click to finish drawing, the shape (line or polygon)&amp;nbsp; symbology disappears, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and only the vertices are still shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When saving and ending the add operation, the feature is displayed again properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what I already tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Added a renderer for layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Setting the drawing symbol of the editor widget's through&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;supportingWidgetDefaults.sketch.&lt;/SPAN&gt;&lt;SPAN&gt;polylineSymbol&lt;BR /&gt;&lt;BR /&gt;Hide all layers, thinking it may go beneith any layer.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Following are screenshots of the different drawing phases,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;second one shows the disappearance of the shape.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While drawing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmroOsama_1-1670929961782.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58365i3285167642386503/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmroOsama_1-1670929961782.png" alt="AmroOsama_1-1670929961782.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After completing the draw (double click)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmroOsama_2-1670929985589.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58366iE8BC2B2B452FEBD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmroOsama_2-1670929985589.png" alt="AmroOsama_2-1670929985589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After saving:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmroOsama_3-1670930041719.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58367iF750675B48924506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmroOsama_3-1670930041719.png" alt="AmroOsama_3-1670930041719.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 11:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1240540#M79629</guid>
      <dc:creator>AmroOsama</dc:creator>
      <dc:date>2022-12-13T11:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Editor widget for offline layer, added feature disappears when drawing completes but shows after save clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1240664#M79635</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tested client-side feature layer with polylines with Editor widget and I was not able to reproduce the behavior you described. Here is a simple codepen app I set up:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/ExRBWpL?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/ExRBWpL?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 17:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1240664#M79635</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-12-13T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Editor widget for offline layer, added feature disappears when drawing completes but shows after save clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1242284#M79667</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;BR /&gt;I tried it, it was the same&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 09:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1242284#M79667</guid>
      <dc:creator>AmroOsama</dc:creator>
      <dc:date>2022-12-19T09:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Editor widget for offline layer, added feature disappears when drawing completes but shows after save clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1242288#M79668</link>
      <description>&lt;P&gt;Ok, I found the solution, turned out to be a silly problem I'm responsible off.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I was clearing map.layers before adding layers again,&lt;/P&gt;&lt;P&gt;And it seems that the Editor widget adds a graphics layer to the map layers collection, thus the shape would disappear.&lt;BR /&gt;&lt;BR /&gt;Not sure it was working when the drawing phase is still active, or when editing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I made sure that I remove all layers except graphic layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 09:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-for-offline-layer-added-feature/m-p/1242288#M79668</guid>
      <dc:creator>AmroOsama</dc:creator>
      <dc:date>2022-12-19T09:38:10Z</dc:date>
    </item>
  </channel>
</rss>

