<?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 Setting zoom scale for Infowindow result in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174594#M16206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently using the SimpleViewer template and want to customize the zoom scale for the resulting polygon that is returned in the search.&amp;nbsp; It appears that it has a default zoom scale (1000 in the API reference) set within the Search widget, but when I try and add the zoomScale property with my desired scale, it still uses the default setting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking that this can be set somewhere within the graphics layer that is produced by the returned result, within the feature layer or within the infoWindow result?&amp;nbsp; I'm not sure what is the best way to implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the snippet for the search widget and its properties when it is instantiated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;var options = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: this.map,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addLayersFromMap: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enableInfoWindow: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; minCharacters: 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #faf387;"&gt;&lt;SPAN style="color: #e23d39;"&gt;zoomScale: 4514&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var searchLayers = false;&lt;/P&gt;&lt;P&gt;var search = new Search(options, domConstruct.create("div"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geoff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 19:39:29 GMT</pubDate>
    <dc:creator>GeoffSchwitzgebel</dc:creator>
    <dc:date>2015-04-06T19:39:29Z</dc:date>
    <item>
      <title>Setting zoom scale for Infowindow result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174594#M16206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently using the SimpleViewer template and want to customize the zoom scale for the resulting polygon that is returned in the search.&amp;nbsp; It appears that it has a default zoom scale (1000 in the API reference) set within the Search widget, but when I try and add the zoomScale property with my desired scale, it still uses the default setting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking that this can be set somewhere within the graphics layer that is produced by the returned result, within the feature layer or within the infoWindow result?&amp;nbsp; I'm not sure what is the best way to implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the snippet for the search widget and its properties when it is instantiated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;var options = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: this.map,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addLayersFromMap: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enableInfoWindow: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; minCharacters: 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #faf387;"&gt;&lt;SPAN style="color: #e23d39;"&gt;zoomScale: 4514&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var searchLayers = false;&lt;/P&gt;&lt;P&gt;var search = new Search(options, domConstruct.create("div"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geoff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 19:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174594#M16206</guid>
      <dc:creator>GeoffSchwitzgebel</dc:creator>
      <dc:date>2015-04-06T19:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting zoom scale for Infowindow result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174595#M16207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geoff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The zoomScale&amp;nbsp; is only for &lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px; background-color: #fafafa;"&gt;If the result does not have an associated extent,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Polygons have an extent and thus this does not come into play.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 20:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174595#M16207</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-04-07T20:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting zoom scale for Infowindow result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174596#M16208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question then is how do we override the polygon extent. I'm working with parcels but do not want to zoom all the way to the parcel level. I would like to stop at "neighborhood" or even "city" level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My "work around" is to set a maxZoom level when creating the base map. It is not the best option since then the map cannot be zoomed in past this value, but at least when the search is performed the map does not zoom all the way into the single polygon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174596#M16208</guid>
      <dc:creator>BrianAnderson4</dc:creator>
      <dc:date>2016-04-20T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting zoom scale for Infowindow result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174597#M16209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You would set autoNavigate to false and then add an event listener to select-result event and the do your own zooming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/search-amd.html#autonavigate" title="https://developers.arcgis.com/javascript/jsapi/search-amd.html#autonavigate"&gt;Search | API Reference | ArcGIS API for JavaScript | autoNavigate&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/search-amd.html#event-select-result" title="https://developers.arcgis.com/javascript/jsapi/search-amd.html#event-select-result"&gt;Search | API Reference | ArcGIS API for JavaScript | select-result&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 02:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-zoom-scale-for-infowindow-result/m-p/174597#M16209</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-04-21T02:10:43Z</dc:date>
    </item>
  </channel>
</rss>

