<?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: How to zoom to features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315900#M29057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Chris, but how can i get the array of graphics corresponding to the time extent selected in time slider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 15:11:53 GMT</pubDate>
    <dc:creator>GeoAticoPUJ</dc:creator>
    <dc:date>2013-04-12T15:11:53Z</dc:date>
    <item>
      <title>How to zoom to features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315898#M29055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m developing an application that uses the time slider and I need to zoom to features that correspond to the selected time extent.&amp;nbsp; I don't know if time slider returns an array of features or graphics so i can use it for setting the map extent or something like that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 13:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315898#M29055</guid>
      <dc:creator>GeoAticoPUJ</dc:creator>
      <dc:date>2013-04-12T13:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom to features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315899#M29056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mcubides,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are some samples that may help: &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jssamples/#search/TimeExtent"&gt;samples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could zoom to the selected features, or graphics by using this: &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jsapi/namespace_esri.html#esri.graphicsExtent"&gt;esri.graphicsExtent(graphics)&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 14:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315899#M29056</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-12T14:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom to features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315900#M29057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Chris, but how can i get the array of graphics corresponding to the time extent selected in time slider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 15:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315900#M29057</guid>
      <dc:creator>GeoAticoPUJ</dc:creator>
      <dc:date>2013-04-12T15:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom to features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315901#M29058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Feature Layer&lt;/A&gt;&lt;SPAN&gt; class there are some methods you can use to query the data, check out the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#selectFeatures" rel="nofollow noopener noreferrer" target="_blank"&gt;selectFeatures&lt;/A&gt;&lt;SPAN&gt; method as well as esri.layers.FeatureLayer.MODE_SELECTION.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(yourTimeSlider, "onTimeExtentChange", function(timeExtent) {
&amp;nbsp;&amp;nbsp; yourFeatureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something with the features here
&amp;nbsp;&amp;nbsp; });
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-to-features/m-p/315901#M29058</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T15:01:38Z</dc:date>
    </item>
  </channel>
</rss>

