<?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: Setting the zoom level for my app's webmap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142194#M13246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Robert. Unfortunately, it hasn't changed anything. Just lost one of the search criteria/sources for the feature layer&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 9pt;"&gt;&lt;SPAN style="color: #458383; border: 0px; font-weight: inherit; font-size: 12px;"&gt;lyrAcademies.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've tried to move the code to the bottom, but neither works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2017 21:46:31 GMT</pubDate>
    <dc:creator>LauraBusolo2</dc:creator>
    <dc:date>2017-08-30T21:46:31Z</dc:date>
    <item>
      <title>Setting the zoom level for my app's webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142190#M13242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a JS application, and I want to set the zoom level to be a certain level when a user uses the Search Widget. At the moment, once the user searches for something, it zooms in way too much than required. Here's a snippet of what I added, that didn't&amp;nbsp;work. There's a global variable&amp;nbsp;for "CvepWebMapId", with the web map's&amp;nbsp;ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;// Creating map using the CvepWebMap variable
&lt;/SPAN&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;arcgisUtils&lt;/SPAN&gt;.createMap(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;CvepWebMapId&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"map"&lt;/SPAN&gt;).&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;(response) {

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapMain &lt;/SPAN&gt;= response.map;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapMain&lt;/SPAN&gt;.setBasemap(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"topo"&lt;/SPAN&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapMain&lt;/SPAN&gt;.getLayer(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'defaultBasemap'&lt;/SPAN&gt;).setVisibility(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;maxZoom: 11,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142190#M13242</guid>
      <dc:creator>LauraBusolo2</dc:creator>
      <dc:date>2021-12-11T07:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the zoom level for my app's webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142191#M13243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Laura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You would add your own&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;SelectResult event handler to the Search dijit and in that event handler you would call the maps centerAndZoom or get the graphics event and expand it and then set the maps extent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;_onSelectResult&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getCentroid&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;centerAndZoom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//Change this to suit your needs&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142191#M13243</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T07:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the zoom level for my app's webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142192#M13244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried doing that but with no success. I'm a newbie at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808080;"&gt;// Creating the search widget
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;search &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Search({
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;: &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapMain&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;enableButtonMode&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;, &lt;SPAN style="color: #808080;"&gt;//enables the search widget to display as a single button
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;enableLabel&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;enableInfoWindow&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;showInfoWindowOnSelect&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false
&lt;/SPAN&gt;},

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;//center and zoom test
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;onSelectResult, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function&lt;/SPAN&gt;(e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;result &lt;/SPAN&gt;= e.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;result&lt;/SPAN&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;pt &lt;/SPAN&gt;= &lt;SPAN style="color: #458383;"&gt;result&lt;/SPAN&gt;.feature.geometry.getCentroid();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(&lt;SPAN style="color: #458383;"&gt;pt&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;8&lt;/SPAN&gt;); &lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;}
&lt;SPAN style="color: #808080;"&gt;//end of test
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;dom.byId(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"search"&lt;/SPAN&gt;));



&lt;SPAN style="color: #808080;"&gt;//setting the source's searchExtent to the extent specified for the map
&lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;search&lt;/SPAN&gt;.sources[&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;].&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;searchExtent &lt;/SPAN&gt;= &lt;SPAN style="color: #458383;"&gt;extentInitial&lt;/SPAN&gt;;

&lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;sources &lt;/SPAN&gt;= &lt;SPAN style="color: #458383;"&gt;search&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;get&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'sources'&lt;/SPAN&gt;);
&lt;SPAN style="color: #808080;"&gt;//Push the sources used to search, by default the ArcGIS Online World geocoder is included. In addition there is a feature layer of Academies. The Academies search is set up to find the "NAME".
&lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;sources&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;push&lt;/SPAN&gt;({
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;featureLayer&lt;/SPAN&gt;: &lt;SPAN style="color: #458383;"&gt;lyrAcademies&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;searchFields&lt;/SPAN&gt;: [&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'NAME'&lt;/SPAN&gt;],
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;displayField&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'NAME'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;exactMatch&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;outFields&lt;/SPAN&gt;: [&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'NAME'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'No_of_students'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'Industry'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'Descr'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'District'&lt;/SPAN&gt;],
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;name&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'Academies'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;placeholder&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'Hospital Academy'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;maxResults&lt;/SPAN&gt;: &lt;SPAN style="color: #0000ff;"&gt;5&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;maxSuggestions&lt;/SPAN&gt;: &lt;SPAN style="color: #0000ff;"&gt;5&lt;/SPAN&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;//Creating InfoTemplate, with several academy fields
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;infoTemplate&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;InfoTemplate(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'Academies'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;'Academy name: ${NAME}&amp;lt;/br&amp;gt;No. of Students: ${No_of_students}&amp;lt;/br&amp;gt;Sector: ${Industry}&amp;lt;/br&amp;gt;Sector Description: ${Descr}&amp;lt;/br&amp;gt;School District: ${District}'&lt;/SPAN&gt;),
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;enableSuggestions&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;minCharacters&lt;/SPAN&gt;: &lt;SPAN style="color: #0000ff;"&gt;0
&lt;/SPAN&gt;});

&lt;SPAN style="color: #458383;"&gt;search&lt;/SPAN&gt;.set(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;'sources'&lt;/SPAN&gt;, &lt;SPAN style="color: #458383;"&gt;sources&lt;/SPAN&gt;);
&lt;SPAN style="color: #808080;"&gt;//start the search widget
&lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;search&lt;/SPAN&gt;.startup();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142192#M13244</guid>
      <dc:creator>LauraBusolo2</dc:creator>
      <dc:date>2021-12-11T07:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the zoom level for my app's webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142193#M13245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Laura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK, here is how you would do it:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// Creating the search widget&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; search &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Search&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; map&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; mapMain&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; enableButtonMode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//enables the search widget to display as a single button&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; enableLabel&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; enableInfoWindow&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; showInfoWindowOnSelect&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dom&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;byId&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"search"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token function"&gt;on&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"select-result"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; onSelectResult&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;//center and zoom test&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;onSelectResult&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getCentroid&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;centerAndZoom&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//end of test&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This assumes you have "dojo/on" require in your require list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142193#M13245</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T07:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the zoom level for my app's webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142194#M13246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Robert. Unfortunately, it hasn't changed anything. Just lost one of the search criteria/sources for the feature layer&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 9pt;"&gt;&lt;SPAN style="color: #458383; border: 0px; font-weight: inherit; font-size: 12px;"&gt;lyrAcademies.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've tried to move the code to the bottom, but neither works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 21:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142194#M13246</guid>
      <dc:creator>LauraBusolo2</dc:creator>
      <dc:date>2017-08-30T21:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the zoom level for my app's webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142195#M13247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Laura,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; That does not make much sense. Can you provide your full code for review?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 21:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-the-zoom-level-for-my-app-s-webmap/m-p/142195#M13247</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-08-30T21:57:59Z</dc:date>
    </item>
  </channel>
</rss>

