<?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 ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225947#M20991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:&amp;quot;Arial&amp;quot;;"&gt;My solution:&lt;BR /&gt;a zoom function, which zooms to a bounding box&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: &amp;quot;2&amp;quot;; font-family: &amp;quot;Courier New&amp;quot;;"&gt; function setBBOX(xMin, yMin, xMax, yMax){&lt;BR /&gt; var newExtent = new esri.geometry.Extent();&lt;BR /&gt; newExtent.xmin = xMin;&lt;BR /&gt; newExtent.ymin = yMin;&lt;BR /&gt; newExtent.xmax = xMax;&lt;BR /&gt; newExtent.ymax = yMax;&lt;BR /&gt; newExtent.spatialReference = new esri.SpatialReference({ wkid: 31466});&lt;BR /&gt;&lt;BR /&gt; map.setExtent(newExtent);&lt;BR /&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:&amp;quot;Arial&amp;quot;;"&gt;&lt;BR /&gt;The wkid refers to the spatial reference of the map, see &lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jsapi_start.htm#jsapi/spatialreference.htm" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;Esri Java Srcipt Api Site&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Nov 2010 12:46:07 GMT</pubDate>
    <dc:creator>MarcelKleinmann</dc:creator>
    <dc:date>2010-11-04T12:46:07Z</dc:date>
    <item>
      <title>zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225941#M20985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have been searching through the api here and have not seen what i am looking for; of course that does not mean it doesn't exsist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a zoomToExtent() function? or has anyone hacked one up that they would be willing to share? if one exsists, i would appreciate a link to the appropriate page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks so much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 15:50:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225941#M20985</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-11-03T15:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225942#M20986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This functionality is similar to what I am looking for in the thread that I made not to long ago (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/16410-Dynamic-Map-Service-Go-to-a-specific-scale-and-pan-to-point"&gt;here if you want to see it&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe together we can concoct a solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225942#M20986</guid>
      <dc:creator>DanielYim</dc:creator>
      <dc:date>2010-11-03T17:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225943#M20987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, i have seen another similar post a while back, cant remember if i was searching for a solution then or i just stumbled on it randomly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm guessing we may need to roll our own. if i can avoid the constant distractions and diversion, i may be able to work something out.... i don't know heh. i sometimes seem to have difficulties with the simplest of things.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225943#M20987</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-11-03T17:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225944#M20988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#setExtent"&gt;map.setExtent()&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225944#M20988</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-11-03T17:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225945#M20989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try adding a transparent "dummy graphic" to your map's GraphicLayer with the graphic's geometry set to the extent you want. Then, extract a Point object from that graphic using getCenter(), and send that over to map.centerAt(thatPoint).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I may be running around in circles, but it's a possible solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225945#M20989</guid>
      <dc:creator>DanielYim</dc:creator>
      <dc:date>2010-11-03T17:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225946#M20990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;well. i think map.setExtent(extent,true); will work for me. thanks for the link swingley. points dont seem to have extents, but i think i can work around that with map.centerAndZoom();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 19:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225946#M20990</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-11-03T19:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225947#M20991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:&amp;quot;Arial&amp;quot;;"&gt;My solution:&lt;BR /&gt;a zoom function, which zooms to a bounding box&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: &amp;quot;2&amp;quot;; font-family: &amp;quot;Courier New&amp;quot;;"&gt; function setBBOX(xMin, yMin, xMax, yMax){&lt;BR /&gt; var newExtent = new esri.geometry.Extent();&lt;BR /&gt; newExtent.xmin = xMin;&lt;BR /&gt; newExtent.ymin = yMin;&lt;BR /&gt; newExtent.xmax = xMax;&lt;BR /&gt; newExtent.ymax = yMax;&lt;BR /&gt; newExtent.spatialReference = new esri.SpatialReference({ wkid: 31466});&lt;BR /&gt;&lt;BR /&gt; map.setExtent(newExtent);&lt;BR /&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:&amp;quot;Arial&amp;quot;;"&gt;&lt;BR /&gt;The wkid refers to the spatial reference of the map, see &lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jsapi_start.htm#jsapi/spatialreference.htm" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;Esri Java Srcipt Api Site&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 12:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom/m-p/225947#M20991</guid>
      <dc:creator>MarcelKleinmann</dc:creator>
      <dc:date>2010-11-04T12:46:07Z</dc:date>
    </item>
  </channel>
</rss>

