<?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 map.extent puts viewer at highest zoom level in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663683#M14868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As an experiment, using the ESRI World_Map 102100 and the Coordinate Banner mod, I zoomed out and collected an extent using the coordinates displayed on the banner. Not sure if this loses precision from the map.toMapFromStage() function. The result was the same, map zoomed in 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The extent:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-7857063.7853 5126174.3537 -7845626.8949 5119715.4248&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched the entire project for any map.zoomIn() calls or map.extents that may be called out of place but found nothing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 13:36:58 GMT</pubDate>
    <dc:creator>JamesHolstead</dc:creator>
    <dc:date>2010-11-10T13:36:58Z</dc:date>
    <item>
      <title>setting map.extent puts viewer at highest zoom level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663679#M14864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(SFV 1.3, sri 102xxx)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Passing in extents from the database and using the following code to set the map extent. Whenever one of the extents are set, the viewer zooms in all the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var ext:String = event.data.toString();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var extArray:Array = ext.split(" ");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var extent:Extent = new Extent(Number(extArray[0]), Number(extArray[1]), Number(extArray[2]), Number(extArray[3]));
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.extent = extent;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes the extent works, most of the time it is at the highest zoom level. What calculation is failing and where I can help correct it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 12:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663679#M14864</guid>
      <dc:creator>JamesHolstead</dc:creator>
      <dc:date>2010-11-10T12:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: setting map.extent puts viewer at highest zoom level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663680#M14865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If you are using any cached/tiled map services than the maps extent is constrained to those LODs and the map will automatically jump to the LOD that is closest to the extent that you are attempting to set it to. Not sure if that is your issue or not. The other thing is make sure that you are passing in an extent that is in the same WKID as the map is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 12:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663680#M14865</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-11-10T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: setting map.extent puts viewer at highest zoom level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663681#M14866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The extents may be gathered in 102000 and the first basemap is 102100, not sure if this matters. I will double check with my POC what they used to get the extents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most of the extents are fairly high in zoom level, but should not be anywhere near 100% zoomed in, they should be ~ level 10 out of 15+. Also the initial extent should view CONUS, but ends up zoomed in all the way somewhere in Kanas. This tells me it is not using the closest LOD &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 12:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663681#M14866</guid>
      <dc:creator>JamesHolstead</dc:creator>
      <dc:date>2010-11-10T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: setting map.extent puts viewer at highest zoom level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663682#M14867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You should not be attempting to set the maps extent using coordinates that are not the same as the maps coordinate system. That is likely your issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 13:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663682#M14867</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-11-10T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: setting map.extent puts viewer at highest zoom level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663683#M14868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As an experiment, using the ESRI World_Map 102100 and the Coordinate Banner mod, I zoomed out and collected an extent using the coordinates displayed on the banner. Not sure if this loses precision from the map.toMapFromStage() function. The result was the same, map zoomed in 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The extent:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-7857063.7853 5126174.3537 -7845626.8949 5119715.4248&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched the entire project for any map.zoomIn() calls or map.extents that may be called out of place but found nothing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 13:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663683#M14868</guid>
      <dc:creator>JamesHolstead</dc:creator>
      <dc:date>2010-11-10T13:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: setting map.extent puts viewer at highest zoom level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663684#M14869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Actually no that I think about this I am pretty far off base with my comment &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You should not be attempting to set the maps extent using coordinates that are not the same as the maps coordinate system&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You absolutely can do this as long as you specify what this new extents WKID is &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var extent:Extent = new Extent(Number(extArray[0]), Number(extArray[1]), Number(extArray[2]), Number(extArray[3]),new SpatialReference(102000));
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663684#M14869</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T04:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: setting map.extent puts viewer at highest zoom level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663685#M14870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just had my Homer moment, DOH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;x,y points are backwards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The points were entered as: x2 y2 x1 y1 or vice versa. After reversing the points the extents work great. They were indeed collected using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your assistance!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 13:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setting-map-extent-puts-viewer-at-highest-zoom/m-p/663685#M14870</guid>
      <dc:creator>JamesHolstead</dc:creator>
      <dc:date>2010-11-10T13:56:48Z</dc:date>
    </item>
  </channel>
</rss>

