<?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: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693538#M18338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Your issue makes since seems how you are adding a GL in the startup function which will get fired again (possible multiple times) when you edit the widgets settings and thus adds multiple GLs with the same ID. you should really create the GL in the postCreate or check for the GLs existance before adding it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2017 16:47:33 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-04-20T16:47:33Z</dc:date>
    <item>
      <title>In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693533#M18333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 class="" style="color: #24292e; background-color: #ffffff; font-size: 32px; margin: 0px 150px 0px 0px;"&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g:&lt;/P&gt;&lt;P&gt;I have added graphics layer to show buffer from custom widget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this._bufferLayer = new GraphicsLayer({&lt;BR /&gt; "id": "bufferGraphicsLayer"&lt;BR /&gt;});&lt;BR /&gt;this.map.addLayer(this._bufferLayer);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;1: Open app with widget configured in edit mode&lt;/SPAN&gt;&lt;BR style="color: #24292e; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;2: Add Graphics to graphics layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;3: Open the widget configuration settings page&lt;/SPAN&gt;&lt;BR style="color: #24292e; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;4: Click ok to save settings&lt;/SPAN&gt;&lt;BR style="color: #24292e; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;5: Draw a new Graphics on the buffer layer and notice the graphics&amp;nbsp;is not drawn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Where as, if we add graphics layer without id's and try the same steps this issues is not reproducible. This seems to be an issue with the reloading of the app in the builder mode after editing. Also i tried to access the &amp;nbsp;graphics layer in the postCreate method after aditing and that layer is already available in map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;So i think WAB - Builder mode is not removing the graphics layer after editing, which it should.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 14:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693533#M18333</guid>
      <dc:creator>SumitZ</dc:creator>
      <dc:date>2017-04-20T14:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693534#M18334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What error are present in your browsers web console after you see this issue?&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So i think WAB - Builder mode is not removing the graphics layer after editing, which it should.&lt;/BLOCKQUOTE&gt;&lt;P&gt;A GL is not remove from the map unless you have to to tell it to do so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:11:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693534#M18334</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-20T15:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693535#M18335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any error in console, but the graphics are not drawn on the layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693535#M18335</guid>
      <dc:creator>SumitZ</dc:creator>
      <dc:date>2017-04-20T15:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693536#M18336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is something in your code then as I add GLs in widgets all the time with id propeties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693536#M18336</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-20T15:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693537#M18337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the demo sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Open WAB&amp;nbsp;in edit mode (WAB in builder mode)&lt;/P&gt;&lt;P&gt;2. Open Demo Widget&lt;/P&gt;&lt;P&gt;3. Click on map to add graphics&lt;/P&gt;&lt;P&gt;4. now edit the demo widget settings&lt;/P&gt;&lt;P&gt;5. click ok to save&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. Demo widget is open, now click on map to add graphics. Notice graphics are not visible on map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Now open widget.js and and comment line no 24, and perform the above mentioned steps again. Now issues is not reproducible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693537#M18337</guid>
      <dc:creator>SumitZ</dc:creator>
      <dc:date>2017-04-20T16:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693538#M18338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Your issue makes since seems how you are adding a GL in the startup function which will get fired again (possible multiple times) when you edit the widgets settings and thus adds multiple GLs with the same ID. you should really create the GL in the postCreate or check for the GLs existance before adding it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693538#M18338</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-20T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693539#M18339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although when i tried to add the layer from postCreate it is still &lt;SPAN style="background-color: #ffffff;"&gt;reproducible. Yes I can check for the layer id exist in the map and remove it, but i was thinking it should be handled by the Builder when it is reloading the map after edit it should remove all the graphics layer form the map otherwise every widget adding graphics layer will face the same issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks for your inputs.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 17:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693539#M18339</guid>
      <dc:creator>SumitZ</dc:creator>
      <dc:date>2017-04-20T17:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: In builder mode, Graphics layer added with ids dont show graphics after making edits to widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693540#M18340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Yes&amp;nbsp;if you add a GL in your widget you should remove it in the destroy method (this is not a method that exists unless you specifically add it) of your widget. The WAB builder will not handle this automatically for you. I do this in most of my widgets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 17:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/in-builder-mode-graphics-layer-added-with-ids-dont/m-p/693540#M18340</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-20T17:30:52Z</dc:date>
    </item>
  </channel>
</rss>

