<?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 Internal error with FeatureLayer updateFeature() that doesn't allow to reject the Promise in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/internal-error-with-featurelayer-updatefeature/m-p/865368#M158</link>
    <description>&lt;P&gt;I'm trying to call the updateFeature() method on a &lt;A href="https://esri.github.io/esri-leaflet/api-reference/layers/feature-layer.html" target="_blank" rel="nofollow noopener noreferrer"&gt;FeatureLayer&lt;/A&gt;&amp;nbsp;(Esri Leflet&amp;nbsp;v2.2.3 and&amp;nbsp;Leaflet JS v1.3.1). Although the operation is actually successful, I'm getting this console error:&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-none" tabindex="0"&gt;&lt;CODE&gt;FeatureLayer.js:156 Uncaught TypeError: Cannot read property 'removeLayer' of undefined
    at e.removeLayers (FeatureLayer.js:156)
    at e.&amp;lt;anonymous&amp;gt; (FeatureManager.js:531)
    at e.&amp;lt;anonymous&amp;gt; (FeatureLayerService.js:54)
    at e.&amp;lt;anonymous&amp;gt; (Service.js:98)
    at XMLHttpRequest.s.onreadystatechange (Request.js:75)‍‍‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The biggest problem with this is that this error isn't allowing me to resolve or reject the Promise because nothing comes back for error or response in the callback. Any thoughts on what is causing this or how I can work around it?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 12:52:41 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2023-08-28T12:52:41Z</dc:date>
    <item>
      <title>Internal error with FeatureLayer updateFeature() that doesn't allow to reject the Promise</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/internal-error-with-featurelayer-updatefeature/m-p/865368#M158</link>
      <description>&lt;P&gt;I'm trying to call the updateFeature() method on a &lt;A href="https://esri.github.io/esri-leaflet/api-reference/layers/feature-layer.html" target="_blank" rel="nofollow noopener noreferrer"&gt;FeatureLayer&lt;/A&gt;&amp;nbsp;(Esri Leflet&amp;nbsp;v2.2.3 and&amp;nbsp;Leaflet JS v1.3.1). Although the operation is actually successful, I'm getting this console error:&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-none" tabindex="0"&gt;&lt;CODE&gt;FeatureLayer.js:156 Uncaught TypeError: Cannot read property 'removeLayer' of undefined
    at e.removeLayers (FeatureLayer.js:156)
    at e.&amp;lt;anonymous&amp;gt; (FeatureManager.js:531)
    at e.&amp;lt;anonymous&amp;gt; (FeatureLayerService.js:54)
    at e.&amp;lt;anonymous&amp;gt; (Service.js:98)
    at XMLHttpRequest.s.onreadystatechange (Request.js:75)‍‍‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The biggest problem with this is that this error isn't allowing me to resolve or reject the Promise because nothing comes back for error or response in the callback. Any thoughts on what is causing this or how I can work around it?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/internal-error-with-featurelayer-updatefeature/m-p/865368#M158</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2023-08-28T12:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error with FeatureLayer updateFeature() that doesn't allow to reject the Promise</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/internal-error-with-featurelayer-updatefeature/m-p/865369#M159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that recreating my feature layer that's being updated somehow makes the new data available to Esri Leaflet to do its&amp;nbsp;removeLayer business. Still not sure of the root cause but I'll update here if any more information is discovered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 19:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/internal-error-with-featurelayer-updatefeature/m-p/865369#M159</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2020-03-27T19:02:55Z</dc:date>
    </item>
  </channel>
</rss>

