<?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 Zoom to species polygons (multiple records for one species) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-species-polygons-multiple-records-for-one/m-p/696788#M64868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a layer of species polygons and want to zoom to a specific query where a species can have multiple range parts e.g. breeding and non breeding. I can get it to work if I dissolve the two ranges into one record but struggling to work out how to zoom &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 07:37:41 GMT</pubDate>
    <dc:creator>MarkBalman</dc:creator>
    <dc:date>2016-08-10T07:37:41Z</dc:date>
    <item>
      <title>Zoom to species polygons (multiple records for one species)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-species-polygons-multiple-records-for-one/m-p/696788#M64868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a layer of species polygons and want to zoom to a specific query where a species can have multiple range parts e.g. breeding and non breeding. I can get it to work if I dissolve the two ranges into one record but struggling to work out how to zoom &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 07:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-species-polygons-multiple-records-for-one/m-p/696788#M64868</guid>
      <dc:creator>MarkBalman</dc:creator>
      <dc:date>2016-08-10T07:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to species polygons (multiple records for one species)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-species-polygons-multiple-records-for-one/m-p/696789#M64869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using a FeatureLayer, you can use the queryExtent (&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#queryextent" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#queryextent" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript 3.17&lt;/A&gt; ) or queryFeatures (&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#queryfeatures" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#queryfeatures" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript 3.17&lt;/A&gt; ) functions to determine the extent of the features based on an attribute query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; query = &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; esri.tasks.Query();&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important;"&gt;query.where = &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important;"&gt;"TYPE = 'breeding'"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important;"&gt;featureLayer.queryExtent(query,&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important;"&gt;(result){&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; map.setExtent(result.extent);&amp;nbsp; &lt;/SPAN&gt;
&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;}) &lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-species-polygons-multiple-records-for-one/m-p/696789#M64869</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-12T05:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to species polygons (multiple records for one species)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-species-polygons-multiple-records-for-one/m-p/696790#M64870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help. Turns out that my original method was in fact working ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-species-polygons-multiple-records-for-one/m-p/696790#M64870</guid>
      <dc:creator>MarkBalman</dc:creator>
      <dc:date>2016-08-11T09:13:21Z</dc:date>
    </item>
  </channel>
</rss>

