<?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 How to determine current XY of Map's Center? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-current-xy-of-map-s-center/m-p/725240#M67329</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've read extensively through the API and various resources. I've done some great and unordinary things with the API but I can't seem to figure out how to detect the center of the map. The reason is I need to be able to resize the map and keep the center of the map as the center of the map despite the resizes and changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently when I resize the map, it adds more map space or remove map space on the size that is resized. I know I can use .centerAt() to center the map, however I need the X, Y from the current map center before the resize so I can re-center after the resize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 14:51:28 GMT</pubDate>
    <dc:creator>EdwardHinkle</dc:creator>
    <dc:date>2013-01-04T14:51:28Z</dc:date>
    <item>
      <title>How to determine current XY of Map's Center?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-current-xy-of-map-s-center/m-p/725240#M67329</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've read extensively through the API and various resources. I've done some great and unordinary things with the API but I can't seem to figure out how to detect the center of the map. The reason is I need to be able to resize the map and keep the center of the map as the center of the map despite the resizes and changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently when I resize the map, it adds more map space or remove map space on the size that is resized. I know I can use .centerAt() to center the map, however I need the X, Y from the current map center before the resize so I can re-center after the resize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 14:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-current-xy-of-map-s-center/m-p/725240#M67329</guid>
      <dc:creator>EdwardHinkle</dc:creator>
      <dc:date>2013-01-04T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine current XY of Map's Center?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-current-xy-of-map-s-center/m-p/725241#M67330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you should be able to use &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/extent.htm#getCenter" rel="nofollow" target="_blank"&gt;getCenter()&lt;/A&gt;&lt;SPAN&gt; and pass the map extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-current-xy-of-map-s-center/m-p/725241#M67330</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-01-04T15:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine current XY of Map's Center?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-current-xy-of-map-s-center/m-p/725242#M67331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perfect!! Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 16:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-current-xy-of-map-s-center/m-p/725242#M67331</guid>
      <dc:creator>EdwardHinkle</dc:creator>
      <dc:date>2013-01-04T16:27:29Z</dc:date>
    </item>
  </channel>
</rss>

