<?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 Dynamic layer zoom or query zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-zoom-or-query-zoom/m-p/383860#M35556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Dynamic service in a map where im adding a definitionExpression for getting 1 result applied to 2 layers (the first one is point and the second one is lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to achieve is doing a zoom into the feature that im showing with the definition expression on the map, but I dont know if there is a way to do this without doing a query for zooming (and getting the extent) of the polyline layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know if i do a query in the points layer i can set the map zoom into that feature, but is this possible also with a polyline layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i do a query in the polyline layer i have an array of results, so how can i set up the map extend to zoom in the area that i want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 19:27:00 GMT</pubDate>
    <dc:creator>EvelynHernandez</dc:creator>
    <dc:date>2018-08-23T19:27:00Z</dc:date>
    <item>
      <title>Dynamic layer zoom or query zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-zoom-or-query-zoom/m-p/383860#M35556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Dynamic service in a map where im adding a definitionExpression for getting 1 result applied to 2 layers (the first one is point and the second one is lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to achieve is doing a zoom into the feature that im showing with the definition expression on the map, but I dont know if there is a way to do this without doing a query for zooming (and getting the extent) of the polyline layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know if i do a query in the points layer i can set the map zoom into that feature, but is this possible also with a polyline layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i do a query in the polyline layer i have an array of results, so how can i set up the map extend to zoom in the area that i want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:27:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-zoom-or-query-zoom/m-p/383860#M35556</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2018-08-23T19:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic layer zoom or query zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-zoom-or-query-zoom/m-p/383861#M35557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evelyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You just use the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/querytask-amd.html#executeforextent"&gt;executeForExtent&lt;/A&gt;&amp;nbsp;method of the QueryTask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-layer-zoom-or-query-zoom/m-p/383861#M35557</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-23T19:41:28Z</dc:date>
    </item>
  </channel>
</rss>

