<?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 Awkward map zoom behavior? (Zooms to the right and not center??) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707693#M65841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an ASP.Net application (uses Ajax) and I wrote my own map control. When I run the application and go to test my map control, it behaves in a very awkward way! Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18498[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if I scroll my mouse to zoom in it zooms to the lower right corner rather than the center&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18499[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the scroll/zoom bar it zoom into the center!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jafar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 17:09:26 GMT</pubDate>
    <dc:creator>JafarAl-Kofahi</dc:creator>
    <dc:date>2012-10-17T17:09:26Z</dc:date>
    <item>
      <title>Awkward map zoom behavior? (Zooms to the right and not center??)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707693#M65841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an ASP.Net application (uses Ajax) and I wrote my own map control. When I run the application and go to test my map control, it behaves in a very awkward way! Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18498[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if I scroll my mouse to zoom in it zooms to the lower right corner rather than the center&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18499[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the scroll/zoom bar it zoom into the center!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jafar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 17:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707693#M65841</guid>
      <dc:creator>JafarAl-Kofahi</dc:creator>
      <dc:date>2012-10-17T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Awkward map zoom behavior? (Zooms to the right and not center??)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707694#M65842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I wrote my own map control.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you start from scratch or are you wrapping esri.Map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If I use the scroll/zoom bar it zoom into the center!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The easiest way to get help is to post code that reproduces the issue. Can you post a simple test page that shows the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 17:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707694#M65842</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-10-17T17:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Awkward map zoom behavior? (Zooms to the right and not center??)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707695#M65843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jafarkofahi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did you start from scratch or are you wrapping esri.Map?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I used esri.Map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;The easiest way to get help is to post code that reproduces the issue. Can you post a simple test page that shows the problem?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; I will try to recreate the problem in a small app then post it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 18:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707695#M65843</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-17T18:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Awkward map zoom behavior? (Zooms to the right and not center??)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707696#M65844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to replicate my problem in a separate sample project, but I couldnt replicate all of the issues! I couldnt replicate my zoom issue but I was able to replicate my other problem, which is the map load. When I navigate to the tab that has the map, the map will be shown but with two issues: first you might not see the map although its there so you need to zoom in, second, it doesnt expand to fill in the whole area until I do a postback (there is a button in the sample app). After the postback it opens and runs fine! In my actual application solving this postback issue would solve my zoom problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attachment you will find an ASP.Net web project with an ASP.net user control called &lt;/SPAN&gt;&lt;PRE&gt;wcStaticMapControl&lt;/PRE&gt;&lt;SPAN&gt; if you run the application you will have two tabs: Test (selected by default) and Map Panel, please click on the Map Panel then you will get the map, zoom in and you will see that the map is not filling its space. After that click the "Click for postback" button and you might need to zoom in again but this time you will notice that the map had expanded!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jafar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 19:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/awkward-map-zoom-behavior-zooms-to-the-right-and/m-p/707696#M65844</guid>
      <dc:creator>JafarAl-Kofahi</dc:creator>
      <dc:date>2012-10-18T19:00:13Z</dc:date>
    </item>
  </channel>
</rss>

