<?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 Get Zoom level of map for use in centerAndZoom() in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-zoom-level-of-map-for-use-in-centerandzoom/m-p/293971#M26955</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;For the purposes of synchronizing two maps on the same webpage, how can I get the zoom level of one map to use in the method centerAndZoom() of the other map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks is advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2011 14:31:47 GMT</pubDate>
    <dc:creator>DavidMelville</dc:creator>
    <dc:date>2011-05-09T14:31:47Z</dc:date>
    <item>
      <title>Get Zoom level of map for use in centerAndZoom()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-zoom-level-of-map-for-use-in-centerandzoom/m-p/293971#M26955</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;For the purposes of synchronizing two maps on the same webpage, how can I get the zoom level of one map to use in the method centerAndZoom() of the other map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks is advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 14:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-zoom-level-of-map-for-use-in-centerandzoom/m-p/293971#M26955</guid>
      <dc:creator>DavidMelville</dc:creator>
      <dc:date>2011-05-09T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get Zoom level of map for use in centerAndZoom()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-zoom-level-of-map-for-use-in-centerandzoom/m-p/293972#M26956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at the compare maps sample:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/webmap/templates/Compare/Configure/index.html"&gt;http://www.arcgis.com/home/webmap/templates/Compare/Configure/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=a35a934152dc44dda8d793a2303f0df1"&gt;http://www.arcgis.com/home/item.html?id=a35a934152dc44dda8d793a2303f0df1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Relevant code is the syncMapLocations() function here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/webmap/templates/Compare/Configure/javascript/layout.js"&gt;http://www.arcgis.com/home/webmap/templates/Compare/Configure/javascript/layout.js&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 15:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-zoom-level-of-map-for-use-in-centerandzoom/m-p/293972#M26956</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-09T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get Zoom level of map for use in centerAndZoom()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-zoom-level-of-map-for-use-in-centerandzoom/m-p/293973#M26957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;cant you just use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this.map2.setLevel(this.map.getLevel()));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;assuming they use the same tiling scheme?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could even put it in an event listener for onextentchange&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(this.map, "OnExtentChange", this, "changeMap2");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function: changeMap2(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this.map2.setLevel(this.map.getLevel()));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pardon my terrible pseudo code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 14:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-zoom-level-of-map-for-use-in-centerandzoom/m-p/293973#M26957</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-05-11T14:07:12Z</dc:date>
    </item>
  </channel>
</rss>

