<?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 feature in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90788#M8272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know if the find task has the capability to zoom to a specific feature within a feature class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, when someone enters "Hyland" for a building name, is there a way to automatically pan or zoom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to that specific building? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been able to highlight a building using the search, but have been unable to pan to it. Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 04:16:59 GMT</pubDate>
    <dc:creator>deleted-user-K_IRAXrpGKsG</dc:creator>
    <dc:date>2012-02-08T04:16:59Z</dc:date>
    <item>
      <title>Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90788#M8272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know if the find task has the capability to zoom to a specific feature within a feature class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, when someone enters "Hyland" for a building name, is there a way to automatically pan or zoom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to that specific building? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been able to highlight a building using the search, but have been unable to pan to it. Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 04:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90788#M8272</guid>
      <dc:creator>deleted-user-K_IRAXrpGKsG</dc:creator>
      <dc:date>2012-02-08T04:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90789#M8273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The find task returns data. It's up to you what you do with it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Things like map navigation (zoom or pan) are easy to do with the API. Take a look at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#centerAt"&gt;centerAt&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#centerAndZoom"&gt;centerAndZoom&lt;/A&gt;&lt;SPAN&gt; and maybe &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#setLevel"&gt;setLevel&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90789#M8273</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-08T16:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90790#M8274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. first in Findparameters: returnGeometry = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. FoundGraphic = RETURNEDOBJECT.features&lt;X&gt;;&lt;/X&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. map.centerAndZoom(FoudnGraphic.geometry.getCenter(), zoomlevel);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(zoomlevel = 0,1,2,3, etc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:11:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90790#M8274</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-08T16:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90791#M8275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But I have a new Question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ist posible to apply .GetDojoShape() in this findTask Data? (or have access to his Style or Outline).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90791#M8275</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-08T16:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90792#M8276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;ist posible to apply .GetDojoShape() in this findTask Data? (or have access to his Style or Outline).&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It's probably best to start a new thread...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But to no, .getDojoShape() is not applicable to findTask &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/findresult.htm"&gt;results&lt;/A&gt;&lt;SPAN&gt; do not have symbology. It's up to your app to create a graphic from the findResult using the returned geometry and a symbol you create.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90792#M8276</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-08T16:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90793#M8277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, now I think, I need to use the standart highlight method &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I went to make a hightlight without create a new object (its not possible without the previous simbology).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;orzundher&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 17:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90793#M8277</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-08T17:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90794#M8278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The find task returns data. It's up to you what you do with it. &lt;BR /&gt;&lt;BR /&gt;Things like map navigation (zoom or pan) are easy to do with the API. Take a look at &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#centerAt"&gt;centerAt&lt;/A&gt;, &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#centerAndZoom"&gt;centerAndZoom&lt;/A&gt; and maybe &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#setLevel"&gt;setLevel&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply but that still doesn't answer the question of how I can automatically pan to a specific building using the find task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 17:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90794#M8278</guid>
      <dc:creator>deleted-user-K_IRAXrpGKsG</dc:creator>
      <dc:date>2012-02-08T17:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90795#M8279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, you need to create a function, you can use this function in your "execute".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use this "execute" statement&amp;nbsp; after the "map, 'onLoad'" event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 18:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90795#M8279</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2012-02-08T18:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90796#M8280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for the reply but that still doesn't answer the question of how I can automatically pan to a specific building using the find task.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out this fiddle:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/e7nPx/"&gt;http://jsfiddle.net/e7nPx/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The find task does not have anything to do with map navigation. To pan and/or zoom to a location or feature, use the methods available on the map class. In addition to the methods I mentioned previously, you could also use setExtent() if you want to zoom to a specific polygon. This is what the code shown in the fiddle linked above does.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 20:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90796#M8280</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-08T20:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90797#M8281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you looked at Show Find Task results in DataGrid? When you click on the DataGrid result it will zoom to the returned feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 15:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-feature/m-p/90797#M8281</guid>
      <dc:creator>DanPajak</dc:creator>
      <dc:date>2012-02-24T15:56:19Z</dc:date>
    </item>
  </channel>
</rss>

