<?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 zooming out in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zooming-out/m-p/168291#M15600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using this service &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;
map = new esri.Map("mapDiv");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://lrs.co.columbia.wi.us/ArcGIS/rest/services/LRS/TaxParcels_Parcels/MapServer")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(layer);
 
var expandFactor = 2500
 newExtent.xmin = newExtent.xmin - expandFactor;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newExtent.ymin = newExtent.ymin - expandFactor;
&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; newExtent.xmax = newExtent.xmax + expandFactor;
&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;&amp;nbsp;&amp;nbsp; newExtent.ymax = newExtent.ymax + expandFactor;
 map.setExtent(newExtent);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also getting back the geometry from a query task.&amp;nbsp; I am wondering if there is a way to set the extent so it is not a standard expand factor but instead will expand out only to include the outlying areas of the returned geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: This search is showing all the property within a specified number of miles from a point that&amp;nbsp; the end user selected.&amp;nbsp; The query task is returning all the geometry of everything with a certain radius.&amp;nbsp; I am attempting to find a way to have the map zoom out to only show everything within that user specified radius.&amp;nbsp; So if the end user selects a 40 feet the application just needs to zoom out to show all the area 40 feet around that point.&amp;nbsp; If the user selects 5280 feet, zoom out to show everything within a mile.&amp;nbsp; The query task is returning the extent information of all the areas around that point so I am wondering if there is a way to zoom out so the end user can see everything and not have it get cut off when I am using a hard coded number or if I am just basing it off of the number of feet the end user search off of.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 14:27:33 GMT</pubDate>
    <dc:creator>TonyRopson</dc:creator>
    <dc:date>2012-01-20T14:27:33Z</dc:date>
    <item>
      <title>zooming out</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zooming-out/m-p/168291#M15600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using this service &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;
map = new esri.Map("mapDiv");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://lrs.co.columbia.wi.us/ArcGIS/rest/services/LRS/TaxParcels_Parcels/MapServer")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(layer);
 
var expandFactor = 2500
 newExtent.xmin = newExtent.xmin - expandFactor;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newExtent.ymin = newExtent.ymin - expandFactor;
&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; newExtent.xmax = newExtent.xmax + expandFactor;
&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;&amp;nbsp;&amp;nbsp; newExtent.ymax = newExtent.ymax + expandFactor;
 map.setExtent(newExtent);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also getting back the geometry from a query task.&amp;nbsp; I am wondering if there is a way to set the extent so it is not a standard expand factor but instead will expand out only to include the outlying areas of the returned geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: This search is showing all the property within a specified number of miles from a point that&amp;nbsp; the end user selected.&amp;nbsp; The query task is returning all the geometry of everything with a certain radius.&amp;nbsp; I am attempting to find a way to have the map zoom out to only show everything within that user specified radius.&amp;nbsp; So if the end user selects a 40 feet the application just needs to zoom out to show all the area 40 feet around that point.&amp;nbsp; If the user selects 5280 feet, zoom out to show everything within a mile.&amp;nbsp; The query task is returning the extent information of all the areas around that point so I am wondering if there is a way to zoom out so the end user can see everything and not have it get cut off when I am using a hard coded number or if I am just basing it off of the number of feet the end user search off of.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zooming-out/m-p/168291#M15600</guid>
      <dc:creator>TonyRopson</dc:creator>
      <dc:date>2012-01-20T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: zooming out</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zooming-out/m-p/168292#M15601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am using this service &lt;BR /&gt;&amp;nbsp; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
map = new esri.Map("mapDiv");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://lrs.co.columbia.wi.us/ArcGIS/rest/services/LRS/TaxParcels_Parcels/MapServer")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(layer);
 
var expandFactor = 2500
 newExtent.xmin = newExtent.xmin - expandFactor;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newExtent.ymin = newExtent.ymin - expandFactor;
&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; newExtent.xmax = newExtent.xmax + expandFactor;
&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;&amp;nbsp;&amp;nbsp; newExtent.ymax = newExtent.ymax + expandFactor;
 map.setExtent(newExtent);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I am also getting back the geometry from a query task.&amp;nbsp; I am wondering if there is a way to set the extent so it is not a standard expand factor but instead will expand out only to include the outlying areas of the returned geometry&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you have two options&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use the "fit" parameter to force the geometry to fit.&amp;nbsp;&amp;nbsp; map.setExtent(newExtent, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use newExtent.expand(1.1) to expand it 1% instead of hardcoding the distance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zooming-out/m-p/168292#M15601</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2021-12-11T08:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: zooming out</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zooming-out/m-p/168293#M15602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This search is showing all the property within a specified number of miles from a point that&amp;nbsp; the end user selected.&amp;nbsp; The query task is returning all the geometry of everything with a certain radius.&amp;nbsp; I am attempting to find a way to have the map zoom out to only show everything within that user specified radius.&amp;nbsp; So if the end user selects a 40 feet the application just needs to zoom out to show all the area 40 feet around that point.&amp;nbsp; If the user selects 5280 feet, zoom out to show everything within a mile.&amp;nbsp; The query task is returning the extent information of all the areas around that point so I am wondering if there is a way to zoom out so the end user can see everything and not have it get cut off when I am using a hard coded number or if I am just basing it off of the number of feet the end user search off of.&amp;nbsp;&amp;nbsp;&amp;nbsp; I hope this sheds some more light on what I am attempting to do&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 17:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zooming-out/m-p/168293#M15602</guid>
      <dc:creator>TonyRopson</dc:creator>
      <dc:date>2012-01-20T17:53:41Z</dc:date>
    </item>
  </channel>
</rss>

