<?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 in on a feature in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454731#M42029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some examples, check out the user submissions in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/gallery.html#"&gt;ArcGIS API for Javascript Code Gallery&lt;/A&gt;&lt;SPAN&gt;. Type 'zoom' in the search box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To redraw the map zoomed to a feature, you can set the map extent (map.setExtent) to the appropriate geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two examples in the code gallery offer different ways to accomplish this, along with some other nice stuff:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=61637bb6055b4e7fbab20d72800b1ce5"&gt;Zoom to DataGrid example&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=2e1b7e83786f4438889c59ccc9d6673d"&gt;An easier way to zoom with a Dojo digit&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 21:17:20 GMT</pubDate>
    <dc:creator>JamesGonsoski</dc:creator>
    <dc:date>2011-02-08T21:17:20Z</dc:date>
    <item>
      <title>Zoom in on a feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454730#M42028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm a beginner with the JS API and this is a really basic question but I couldn't find an example of it in the samples. I have a map which includes shape layer, and a form field that allows the user to select one of those features from a select box. This gives the NAME attribute of the feature -- I want to redraw the map zoomed in on that feature. Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 10:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454730#M42028</guid>
      <dc:creator>JamesBurton</dc:creator>
      <dc:date>2011-02-08T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom in on a feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454731#M42029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some examples, check out the user submissions in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/gallery.html#"&gt;ArcGIS API for Javascript Code Gallery&lt;/A&gt;&lt;SPAN&gt;. Type 'zoom' in the search box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To redraw the map zoomed to a feature, you can set the map extent (map.setExtent) to the appropriate geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two examples in the code gallery offer different ways to accomplish this, along with some other nice stuff:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=61637bb6055b4e7fbab20d72800b1ce5"&gt;Zoom to DataGrid example&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=2e1b7e83786f4438889c59ccc9d6673d"&gt;An easier way to zoom with a Dojo digit&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 21:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454731#M42029</guid>
      <dc:creator>JamesGonsoski</dc:creator>
      <dc:date>2011-02-08T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom in on a feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454732#M42030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;For some examples, check out the user submissions in the &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/gallery.html#"&gt;ArcGIS API for Javascript Code Gallery&lt;/A&gt;. Type 'zoom' in the search box.&lt;BR /&gt;&lt;BR /&gt;To redraw the map zoomed to a feature, you can set the map extent (map.setExtent) to the appropriate geometry.&lt;BR /&gt;&lt;BR /&gt;Two examples in the code gallery offer different ways to accomplish this, along with some other nice stuff:&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=61637bb6055b4e7fbab20d72800b1ce5"&gt;Zoom to DataGrid example&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=2e1b7e83786f4438889c59ccc9d6673d"&gt;An easier way to zoom with a Dojo digit&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Jim.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 09:22:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454732#M42030</guid>
      <dc:creator>JamesBurton</dc:creator>
      <dc:date>2011-02-09T09:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom in on a feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454733#M42031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was wondering if anyone new if it was possible to zoom to a location within a certain distance.&amp;nbsp; For example, I zoom to an address but want to zoom in a mile around the address and not to the point.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jaclyn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 19:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454733#M42031</guid>
      <dc:creator>JaclynGorman</dc:creator>
      <dc:date>2011-02-09T19:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom in on a feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454734#M42032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was wondering if anyone new if it was possible to zoom to a location within a certain distance.&amp;nbsp; For example, I zoom to an address but want to zoom in a mile around the address and not to the point.&amp;nbsp; Thanks&lt;BR /&gt;&lt;BR /&gt;Jaclyn&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple way to handle this is the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#centerAndZoom"&gt;map.centerAndZoom method&lt;/A&gt;&lt;SPAN&gt;. It requires a point on the map and depending on the type of service you specify either a fixed map scale or zoom factor for the extent. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also set the extent of the map yourself using map.setExtent method. Here, you are in control of the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/extent.htm#ExtentConst1"&gt;extent&lt;/A&gt;&lt;SPAN&gt; you are sending; defined as XMin, XMax, YMin, YMax in map units. If you have a point XY coordinate, your XMin = XMax and YMin = YMax.&amp;nbsp; Adding/Subtracting map units to the Min and Max values of the X and Y coordinates, gets you a zoomed extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_extents.htm"&gt;Setting and Using Extents in a Map&lt;/A&gt;&lt;SPAN&gt; for more details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 19:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-on-a-feature/m-p/454734#M42032</guid>
      <dc:creator>JamesGonsoski</dc:creator>
      <dc:date>2011-02-09T19:35:57Z</dc:date>
    </item>
  </channel>
</rss>

