<?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: Zoom to feature layer selection problem in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748028#M69185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I bet this is a deferred event issue. Try moving your map.setExtent() function inside of the feature selection callback function right above it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 22:53:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-09-26T22:53:36Z</dc:date>
    <item>
      <title>Zoom to feature layer selection problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748027#M69184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the app I am working on, I allow users to select features from a feature layer, which I add using MODE_SELECTION.&amp;nbsp; I have it set to zoom to the extent of the selected graphics, upon the end the user drawn polygon.&amp;nbsp; The issue I am having is odd.&amp;nbsp; When you do the selection for the first time in the session, the features are selected, but the extent doesn't change.&amp;nbsp; If I perform another selection, it zooms to what the previous selection extent was.&amp;nbsp; If I do another selection, again it zooms to the previous selection's extent and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add the layer using MODE_ONDEMAND, it works perfectly.&amp;nbsp; Anyone know what I am missing?&amp;nbsp; Attached is the querytask code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 17:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748027#M69184</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-09-26T17:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature layer selection problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748028#M69185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I bet this is a deferred event issue. Try moving your map.setExtent() function inside of the feature selection callback function right above it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 22:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748028#M69185</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-09-26T22:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature layer selection problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748029#M69186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sarah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was it!&amp;nbsp; Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 12:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748029#M69186</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-09-29T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature layer selection problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748030#M69187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear it! It's good practice in the forums to mark a reply as the 'Correct Answer' when it solved your issue, so other folks can find solutions more easily. Have a good one!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 15:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature-layer-selection-problem/m-p/748030#M69187</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-09-29T15:49:02Z</dc:date>
    </item>
  </channel>
</rss>

