<?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: Zoom to point in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391550#M36157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as the blurring issue to which Renee Maxwell referenced when changing the map zoom level programatically, I was seeing some strange behavior there as well.&amp;nbsp; I was able to resolve this issue by changing my navigationMode in my map object from 'css-transforms' to 'classic'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 18:10:53 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2013-01-15T18:10:53Z</dc:date>
    <item>
      <title>Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391540#M36147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm seeing a problem with the centerAndZoom method for the map. The code is pretty straightforward:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;map.centerAndZoom(pt, 0.1);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But instead of zooming in, it zooms OUT, regardless of the map scale prior to calling the method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The map includes a base map that is an ArcGISDynamicMapServiceLayer, overlayed with several editable FeatureLayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This used to work for me but for some reason it started behaving strangely and I'm not sure what's different. It behaves the same in versions 2.5 and 2.6.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 16:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391540#M36147</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2012-01-06T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391541#M36148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That brings to mind another issue I've had with changing the map extent. It seems that if I add a lot of graphic points to the map, whenever I change the extent programmatically the map will either be blurred, or it will not render completely. It will zoom out to the correct extent, but the only area that renders is the previous extent (but at the new scale), the rest of the map simply doesn't draw.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 17:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391541#M36148</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2012-01-06T17:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391542#M36149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same issue. I'm trying to centerAndZoom on a dynamic map service and regardless of what value I use for factor it zooms out twice as far (2.0).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 13:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391542#M36149</guid>
      <dc:creator>SusanCarlson</dc:creator>
      <dc:date>2012-01-13T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391543#M36150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Same issue. I'm trying to centerAndZoom on a dynamic map service and regardless of what value I use for factor it zooms out twice as far (2.0).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same issue as well... map.centerAndZoom() seems to zoom out 2x no matter what I put into it.&amp;nbsp; This bug was introduced at 2.6... If I revert back to 2.5, it goes away.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 19:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391543#M36150</guid>
      <dc:creator>DominickCisson</dc:creator>
      <dc:date>2012-01-13T19:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391544#M36151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've also now experienced this issue, and it's still broken in 2.8 as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 09:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391544#M36151</guid>
      <dc:creator>AndrewEnglar</dc:creator>
      <dc:date>2012-04-20T09:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391545#M36152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I never really had alot of luck with center and zoom.&amp;nbsp; I prefer to called setExtent explicitly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you get the same error with &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.setExtent(map.extent.centerAt(pt);
map.setExtent(map.extent.expand(0.1));
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you do it this way it also explicity says use factor and cant be misinterpreted as a level from tiled (if you use a tiled basemap from the gallery or AGO, for example)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391545#M36152</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2021-12-11T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391546#M36153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've also now experienced this issue, and it's still broken in 2.8 as well.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your code to reproduce?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 14:31:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391546#M36153</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-20T14:31:02Z</dc:date>
    </item>
    <item>
      <title>Still broken at 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391547#M36154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;still&lt;/STRONG&gt;&lt;SPAN&gt; broken at 3.0.&amp;nbsp; There is a bug on file for this issue, NIM079613 (&lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDc5NjEz"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDc5NjEz&lt;/A&gt;&lt;SPAN&gt;), but it is set to medium, and doesn't appear to be on anyone's radar at esri. :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I did have some success with jeff.pace's workaround, though running&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(map.extent.centerAt(pt);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(map.extent.expand(0.1));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; back-to-back didn't work for me.&amp;nbsp; The map would zoom in or zoom out, but not center on the point.&amp;nbsp; It's almost like the second command was getting called before the first even had a chance to finish.&amp;nbsp; I added a map.onPanEnd listener, split the two commands, and put the expand command inside the listener, so it doesn't fire until the pan is complete.&amp;nbsp; It works now, though the animation is different now... When a user double-clicks to zoom in or out, the map first pans to the point, and then zooms in or out&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391547#M36154</guid>
      <dc:creator>DominickCisson</dc:creator>
      <dc:date>2012-06-14T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391548#M36155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same issue. 3.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is posting by Kelly Hutchinson at ESRI found in another posting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;You can use esri.geometry.geographicToWebMercator to convert the geographic coords to web mercator. So if you switch your code to something like this it should zoom to the correct location:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if centerAndZoom only works for geographic coords using Lat and Long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 14:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391548#M36155</guid>
      <dc:creator>DonKang</dc:creator>
      <dc:date>2012-07-12T14:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391549#M36156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FWIW, the centerAndZoom bug appears to have been resolved in 3.2.&amp;nbsp; It can be used again without issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Huzzah!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 17:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391549#M36156</guid>
      <dc:creator>DominickCisson</dc:creator>
      <dc:date>2013-01-15T17:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391550#M36157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as the blurring issue to which Renee Maxwell referenced when changing the map zoom level programatically, I was seeing some strange behavior there as well.&amp;nbsp; I was able to resolve this issue by changing my navigationMode in my map object from 'css-transforms' to 'classic'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 18:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-point/m-p/391550#M36157</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2013-01-15T18:10:53Z</dc:date>
    </item>
  </channel>
</rss>

