<?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: inconsistent map extent/center when transitioning between views in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-map-extent-center-when-transitioning/m-p/317192#M29222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I spent some time on this before lunch but did not have much success. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I don't have much working experience with dojox/mobile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see you are using the event: "onAfterTransitionIn" &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.9/dojox/mobile/transition-events.html"&gt;http://dojotoolkit.org/reference-guide/1.9/dojox/mobile/transition-events.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I would use as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going to play with this a bit more.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 19:33:33 GMT</pubDate>
    <dc:creator>JonathanUihlein</dc:creator>
    <dc:date>2014-04-29T19:33:33Z</dc:date>
    <item>
      <title>inconsistent map extent/center when transitioning between views</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-map-extent-center-when-transitioning/m-p/317191#M29221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an application that starts with a menu where the user selects a county, a category of information and then clicks 'Go' to execute.&amp;nbsp; The execute does a find on a county layer, zooms to that county and switches from the menu view to the map view.&amp;nbsp; The first time I zoom to the county, it is not centered to my div.&amp;nbsp; Or maybe it thinks it is, but it's using a div of 400 x 400, the default, which places it in the upper left of my div.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I switch back to the menu and pick another county, then it is centered and zoomed correctly.&amp;nbsp; I've tried all sorts of settings to get it to be properly centered on the first county pick, but no luck at all.&amp;nbsp; All subsequent selections are always fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is this?&amp;nbsp; Does anyone have any other suggestions?&amp;nbsp; I've combed through the forums trying to include all the tricks that make sense.&amp;nbsp; My map is already defined as autoResize:false and I have listeners to manually resize and reposition.&amp;nbsp; This isn't enough to take care of my problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my fiddle.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/schlot/6ufxj/"&gt;http://jsfiddle.net/schlot/6ufxj/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 15:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-map-extent-center-when-transitioning/m-p/317191#M29221</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-04-29T15:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: inconsistent map extent/center when transitioning between views</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-map-extent-center-when-transitioning/m-p/317192#M29222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I spent some time on this before lunch but did not have much success. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I don't have much working experience with dojox/mobile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see you are using the event: "onAfterTransitionIn" &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.9/dojox/mobile/transition-events.html"&gt;http://dojotoolkit.org/reference-guide/1.9/dojox/mobile/transition-events.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I would use as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going to play with this a bit more.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 19:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-map-extent-center-when-transitioning/m-p/317192#M29222</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-04-29T19:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: inconsistent map extent/center when transitioning between views</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-map-extent-center-when-transitioning/m-p/317193#M29223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for taking the time to look at this. Some of the threads that describe this issue are using jQuery,&amp;nbsp; so I'm not sure it matters dojo vs jQuery on what its built with.&amp;nbsp; As I look around the threads I see several that describe a 'known bug' with the map not knowing how to size or position itself correctly if it's not on the main screen at the start.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sounds like something that needs to be addressed in the API itself.&amp;nbsp; I can't believe I'm the only person who is designing something for mobile that has a menu selection process before a map is shown.&amp;nbsp; I'm working with state-wide data and it only makes sense to limit the area before I launch the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 20:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inconsistent-map-extent-center-when-transitioning/m-p/317193#M29223</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-04-29T20:23:59Z</dc:date>
    </item>
  </channel>
</rss>

