<?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 JSAPI4.6 - watching a layers 'updating' property bugged? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi4-6-watching-a-layers-updating-property/m-p/261120#M24177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to watch a feature layer views `updating` property in order to know whether it is finished loading a layer or not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var featureLayer = new FeatureLayer({&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FV6ZHFr6zdgNZuVG0%2Farcgis%2Frest%2Fservices%2FLandscape_Trees%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; });&lt;BR /&gt;&lt;BR /&gt; map.add(featureLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;view.whenLayerView(featureLayer).then(function(lyrView){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;watchUtils.watch(lyrView, 'updating', function(val) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(val);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;});&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A class="link-bare" href="https://jsfiddle.net/50kxg4o6/3/" title="https://jsfiddle.net/50kxg4o6/3/"&gt;https://jsfiddle.net/50kxg4o6/3/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it seems to be bugged, as it shows the values `true` or `undefined`, but never `false`.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 13:35:33 GMT</pubDate>
    <dc:creator>yves_Ramseier</dc:creator>
    <dc:date>2018-02-22T13:35:33Z</dc:date>
    <item>
      <title>JSAPI4.6 - watching a layers 'updating' property bugged?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi4-6-watching-a-layers-updating-property/m-p/261120#M24177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to watch a feature layer views `updating` property in order to know whether it is finished loading a layer or not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var featureLayer = new FeatureLayer({&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FV6ZHFr6zdgNZuVG0%2Farcgis%2Frest%2Fservices%2FLandscape_Trees%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; });&lt;BR /&gt;&lt;BR /&gt; map.add(featureLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;view.whenLayerView(featureLayer).then(function(lyrView){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;watchUtils.watch(lyrView, 'updating', function(val) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(val);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;});&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A class="link-bare" href="https://jsfiddle.net/50kxg4o6/3/" title="https://jsfiddle.net/50kxg4o6/3/"&gt;https://jsfiddle.net/50kxg4o6/3/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it seems to be bugged, as it shows the values `true` or `undefined`, but never `false`.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 13:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi4-6-watching-a-layers-updating-property/m-p/261120#M24177</guid>
      <dc:creator>yves_Ramseier</dc:creator>
      <dc:date>2018-02-22T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI4.6 - watching a layers 'updating' property bugged?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi4-6-watching-a-layers-updating-property/m-p/261121#M24178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yves,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You are correct. In version 4.4 it returned false/true as the documentation states, but in 4.5 and 4.6 it returns undefined/true.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2525"&gt;Kelly Hutchins&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/2906"&gt;Bjorn Svensson&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 13:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi4-6-watching-a-layers-updating-property/m-p/261121#M24178</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-22T13:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI4.6 - watching a layers 'updating' property bugged?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi4-6-watching-a-layers-updating-property/m-p/261122#M24179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That&amp;nbsp;seems to be a bug in version 4.5 and 4.6. It shouldn't be returning undefined in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note that it does return false if you zoom out - using the jsfiddle above, but&amp;nbsp;still ... there's a bug there.)&lt;BR /&gt;Thank you for reporting, we will look at fixing this for version 4.7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 06:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi4-6-watching-a-layers-updating-property/m-p/261122#M24179</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2018-02-28T06:53:24Z</dc:date>
    </item>
  </channel>
</rss>

