<?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: Stop updating view when move by cursor in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stop-updating-view-when-move-by-cursor/m-p/1146855#M76442</link>
    <description>&lt;P&gt;Thank you Rene, works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 07:57:03 GMT</pubDate>
    <dc:creator>Vakhtang_Zubiashvili</dc:creator>
    <dc:date>2022-02-23T07:57:03Z</dc:date>
    <item>
      <title>Stop updating view when move by cursor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stop-updating-view-when-move-by-cursor/m-p/1146086#M76411</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one issue on my map, when i add feature layer on map after generated it from expression i goTo result, it works fine, but when i want to zoom in or zoom out or move side, extent updates automatically and returns me back to first generated extent. when i remove TARGET and ZOOM code does not work.&lt;/P&gt;&lt;P&gt;how can i stop continuously updating my extent?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is code snippet i use to goTo() layer:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;view.whenLayerView(xaro).then(function(layerView) {
 layerView.watch("updating", function(value) {
   if (!value) {
     layerView
       .queryFeatures()
       .then(function(results) {
         // do something with the resulting graphics
         graphics = results.features;
         view.goTo({target: graphics, zoom: 15})
       });
   }
 });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 07:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stop-updating-view-when-move-by-cursor/m-p/1146086#M76411</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-02-21T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stop updating view when move by cursor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stop-updating-view-when-move-by-cursor/m-p/1146205#M76414</link>
      <description>&lt;P&gt;You can do this a couple of ways. Most convenient is to use whenFalseOnce()&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenFalseOnce" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenFalseOnce&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The other is to ruse the WatchHandle remove method when done&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#WatchHandle" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#WatchHandle&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const handle = layerView.watch("updating", (value) =&amp;gt; {
    // do your thing
    handle.remove()
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 17:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stop-updating-view-when-move-by-cursor/m-p/1146205#M76414</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-02-21T17:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stop updating view when move by cursor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stop-updating-view-when-move-by-cursor/m-p/1146855#M76442</link>
      <description>&lt;P&gt;Thank you Rene, works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 07:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stop-updating-view-when-move-by-cursor/m-p/1146855#M76442</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-02-23T07:57:03Z</dc:date>
    </item>
  </channel>
</rss>

