<?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: centerAndZoom() Zooms all the way out in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291633#M26777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Map::centerAndZoom method behaves differently based on your basemap data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/EN/webapi/javascript/arcgis/jsapi/map.html#centerAndZoom" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/jsapi/map.html#centerAndZoom&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;So in reference to the second argument in that function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When using an ArcGISTiledMapServiceLayer, the map is zoomed to the level specified. When using a DynamicMapServiceLayer, the map is zoomed in or out by the specified factor. For example, use 0.5 to zoom in twice as far and 2.0 to zoom out twice as far.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when you have a Tiled basemap and you use map.centerAndZoom(point, 9), it will zoom to the 9th level of your maps level of details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you have a dynamic basemap and use map.centerAndZoom(point, 9), you are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;zooming out&lt;/SPAN&gt;&lt;SPAN&gt; by a factor of 9, that's global status.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you'll want to adjust how you use it based on your basemap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 14:10:52 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2013-04-25T14:10:52Z</dc:date>
    <item>
      <title>centerAndZoom() Zooms all the way out</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291632#M26776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the&amp;nbsp; 3.3 compact javascript library, I have had an issue using center and zoom when my basemap is dynamic. When it is cached, it seems to work correctly. Has anyone seen this before?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var symbol = new esri.symbol.PictureMarkerSymbol('css/images/Pin.png', 32, 32);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var point = esri.geometry.geographicToWebMercator(new esri.geometry.Point(attributes.long, attributes.lat));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(point, symbol, attributes, infoTemplate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add to map and zoom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(point, 9);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setFeatures([graphic]);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291632#M26776</guid>
      <dc:creator>EdwardRozum</dc:creator>
      <dc:date>2013-04-25T13:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: centerAndZoom() Zooms all the way out</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291633#M26777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Map::centerAndZoom method behaves differently based on your basemap data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/EN/webapi/javascript/arcgis/jsapi/map.html#centerAndZoom" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/jsapi/map.html#centerAndZoom&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;So in reference to the second argument in that function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When using an ArcGISTiledMapServiceLayer, the map is zoomed to the level specified. When using a DynamicMapServiceLayer, the map is zoomed in or out by the specified factor. For example, use 0.5 to zoom in twice as far and 2.0 to zoom out twice as far.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when you have a Tiled basemap and you use map.centerAndZoom(point, 9), it will zoom to the 9th level of your maps level of details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you have a dynamic basemap and use map.centerAndZoom(point, 9), you are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;zooming out&lt;/SPAN&gt;&lt;SPAN&gt; by a factor of 9, that's global status.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you'll want to adjust how you use it based on your basemap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 14:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291633#M26777</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-04-25T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: centerAndZoom() Zooms all the way out</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291634#M26778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok that makes sense to me. I'll adjust as needed. Thanks for the quick reply. I appreciate the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 14:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291634#M26778</guid>
      <dc:creator>EdwardRozum</dc:creator>
      <dc:date>2013-04-25T14:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: centerAndZoom() Zooms all the way out</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291635#M26779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;perhaps you could mark Rene's post as an answer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 16:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-zooms-all-the-way-out/m-p/291635#M26779</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-04-25T16:03:21Z</dc:date>
    </item>
  </channel>
</rss>

