<?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: setting full extent in &amp;quot;straight&amp;quot; API application in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-full-extent-in-amp-quot-straight-amp-quot/m-p/620259#M13784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you load your page set a fullExtent variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private var fullExtent:Extent = new Extent(x,y,xx,yy,map.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then create a function to use that when you want thje full extent shown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mine looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function mapfullExtent():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; try{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (fullExtent !=null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; map.extent = fullExtent; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }else{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; navToolbar.zoomToFullExtent();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }catch(err:Error){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 16:10:06 GMT</pubDate>
    <dc:creator>andrewj_ca</dc:creator>
    <dc:date>2011-03-23T16:10:06Z</dc:date>
    <item>
      <title>setting full extent in &amp;quot;straight&amp;quot; API application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-full-extent-in-amp-quot-straight-amp-quot/m-p/620258#M13783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in the sample viewer there's a fullextent property that you can set to constrain the map's full extent. Can you do this same thing in a "straight" API application? If so, would someone mind sharing the syntax?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 20:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-full-extent-in-amp-quot-straight-amp-quot/m-p/620258#M13783</guid>
      <dc:creator>JustinRiggs</dc:creator>
      <dc:date>2011-03-17T20:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: setting full extent in "straight" API application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-full-extent-in-amp-quot-straight-amp-quot/m-p/620259#M13784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you load your page set a fullExtent variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private var fullExtent:Extent = new Extent(x,y,xx,yy,map.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then create a function to use that when you want thje full extent shown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mine looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function mapfullExtent():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; try{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (fullExtent !=null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; map.extent = fullExtent; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }else{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; navToolbar.zoomToFullExtent();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }catch(err:Error){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 16:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-full-extent-in-amp-quot-straight-amp-quot/m-p/620259#M13784</guid>
      <dc:creator>andrewj_ca</dc:creator>
      <dc:date>2011-03-23T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: setting full extent in "straight" API application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-full-extent-in-amp-quot-straight-amp-quot/m-p/620260#M13785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at Mansour Raad's &lt;/SPAN&gt;&lt;A href="http://thunderheadxpler.blogspot.com/2009/01/constraining-map-extent.html"&gt;blog&lt;/A&gt;&lt;SPAN&gt; on constraining the extent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 16:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-full-extent-in-amp-quot-straight-amp-quot/m-p/620260#M13785</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2011-03-23T16:23:22Z</dc:date>
    </item>
  </channel>
</rss>

