<?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: Center and zoom issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574801#M53715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar problem.&amp;nbsp; I am calling a module in which I want to use center and zoom. I do not want to use extent because that would require 4 entries of non human-relatable location points plus the zoom factor per location.&amp;nbsp; I have tried the documentation for center and zoom but I cannot find the right formula (code) to use in the called module via require.&amp;nbsp; I have tried passing the map object as a variable to the module and even though the map object is declared globally, it is not recognized in the module.&amp;nbsp; What do I need to do to get center and zoom to function appropriately?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 14:01:12 GMT</pubDate>
    <dc:creator>RobertMaiden</dc:creator>
    <dc:date>2015-01-27T14:01:12Z</dc:date>
    <item>
      <title>Center and zoom issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574799#M53713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have couple of questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to preform center and zoom action (to a point) on my map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue is that the zoom is affect by the factor (that sended to the action with the x,y point) and i can not set a maximun zoom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(i mean that 2 center and zoom actions will make the zoom so big, so the map can not be seen).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to understand how can i set the map and zoom dynamic,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i get the current map zoom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and what is the different between using the center and zoom action and the set extant action?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Niv&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Nov 2013 09:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574799#M53713</guid>
      <dc:creator>NivM</dc:creator>
      <dc:date>2013-11-23T09:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Center and zoom issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574800#M53714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The difference between centerAndZoom and setExtent is that centerAndZoom centers on a point (x,y) and set extent uses an extent (minx,miny,maxx,maxy).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what you are looking for is map.centerAt(point). This centers at a point without changing the zoom factor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 06:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574800#M53714</guid>
      <dc:creator>JohnathanBarclay</dc:creator>
      <dc:date>2013-11-25T06:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Center and zoom issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574801#M53715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar problem.&amp;nbsp; I am calling a module in which I want to use center and zoom. I do not want to use extent because that would require 4 entries of non human-relatable location points plus the zoom factor per location.&amp;nbsp; I have tried the documentation for center and zoom but I cannot find the right formula (code) to use in the called module via require.&amp;nbsp; I have tried passing the map object as a variable to the module and even though the map object is declared globally, it is not recognized in the module.&amp;nbsp; What do I need to do to get center and zoom to function appropriately?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 14:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574801#M53715</guid>
      <dc:creator>RobertMaiden</dc:creator>
      <dc:date>2015-01-27T14:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Center and zoom issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574802#M53716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you pass the map object to your module as a parameter in the constructor you should be able to access that map's properties and methods. Almost all of the widgets in the API have the map object passed to them in this manner. Do you have a code sample available that I can test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 13:12:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-and-zoom-issue/m-p/574802#M53716</guid>
      <dc:creator>NicholasHaney</dc:creator>
      <dc:date>2015-01-28T13:12:57Z</dc:date>
    </item>
  </channel>
</rss>

