<?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 centerAndZoom bad visualization in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-bad-visualization/m-p/410689#M37815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I'm using ArcGIS 3.28 API JS. I'm using `cenetrAndZoom()`method,&amp;nbsp;but I have a problem. The map load after the zoom so the visualization is ugly, this is what happens when I change from one zoom to another:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="centerandzoom" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/448944_problema_arcgis_api4.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c679dd;"&gt;let &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;let &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #61aeef; font-weight: bold;"&gt;loadModules&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'esri/geometry/Point'
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]).&lt;/SPAN&gt;&lt;SPAN style="color: #61aeef;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;(([&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]) &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;=&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;switch &lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;evt&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;target&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;) {
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'country_cl'&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;70.71582015815409&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;33.47133434146025&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'country_co'&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;73.63857136146157&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;4.0920688808058&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'country_mx'&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;99.94867549215655&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;20.55088183550196&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        }
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;// this.mapa.map.centerAndZoom(center, zoom);
&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #e5c17c;"&gt;console&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #61aeef;"&gt;log&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;mapa&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;mapa&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;centerAndZoom&lt;SPAN style="color: #a6b2c0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;//this.mapa.map.centerAt(center);
&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;    // this.mapa.map.setZoom(zoom);
&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;    // this.mapa.map.panTo(center);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I would like to move first to the point and then zoom, but this method, changes the zoom while moving, so the map has to be reloaded. How can avoid this? If I move from Colombia-Mexico and viceversa there's no problem, because has the same zoom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other hand, I set up this config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;zoomDuration &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;500&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;zoomRate &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;25&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;panDuration &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;2500&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;panRate &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;25&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:39:29 GMT</pubDate>
    <dc:creator>PauloMiranda_Arias</dc:creator>
    <dc:date>2021-12-11T18:39:29Z</dc:date>
    <item>
      <title>centerAndZoom bad visualization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-bad-visualization/m-p/410689#M37815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I'm using ArcGIS 3.28 API JS. I'm using `cenetrAndZoom()`method,&amp;nbsp;but I have a problem. The map load after the zoom so the visualization is ugly, this is what happens when I change from one zoom to another:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="centerandzoom" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/448944_problema_arcgis_api4.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c679dd;"&gt;let &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;let &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #61aeef; font-weight: bold;"&gt;loadModules&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'esri/geometry/Point'
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]).&lt;/SPAN&gt;&lt;SPAN style="color: #61aeef;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;(([&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]) &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;=&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;switch &lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;evt&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;target&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;) {
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'country_cl'&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;70.71582015815409&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;33.47133434146025&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'country_co'&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;73.63857136146157&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;4.0920688808058&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;case &lt;/SPAN&gt;&lt;SPAN style="color: #98c379;"&gt;'country_mx'&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;99.94867549215655&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;20.55088183550196&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;]);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c679dd;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;        }
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;// this.mapa.map.centerAndZoom(center, zoom);
&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #e5c17c;"&gt;console&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #61aeef;"&gt;log&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;mapa&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;mapa&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;centerAndZoom&lt;SPAN style="color: #a6b2c0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;zoom&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;//this.mapa.map.centerAt(center);
&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;    // this.mapa.map.setZoom(zoom);
&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;    // this.mapa.map.panTo(center);
&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I would like to move first to the point and then zoom, but this method, changes the zoom while moving, so the map has to be reloaded. How can avoid this? If I move from Colombia-Mexico and viceversa there's no problem, because has the same zoom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other hand, I set up this config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;zoomDuration &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;500&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;zoomRate &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;25&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;panDuration &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;2500&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #59626f;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #bf6e25;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;panRate &lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #d19a66;"&gt;25&lt;/SPAN&gt;&lt;SPAN style="color: #a6b2c0;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/centerandzoom-bad-visualization/m-p/410689#M37815</guid>
      <dc:creator>PauloMiranda_Arias</dc:creator>
      <dc:date>2021-12-11T18:39:29Z</dc:date>
    </item>
  </channel>
</rss>

