<?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 How to find zoomlevel for ArcGISDynamicMapServiceLayer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396910#M36561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using dynamic map service layer with basemap. Once I find feature using selectFeatures(), I want to center and zoom the selected feature. Consider only one feature has been selected. I use centerAndZoom() of the api and it works fine when no basemap available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. I provide my customers to specify one parameter value. If this parameter is specified as 2 then I calculate zoomFactor = 0.02 (i.e. 20% zoom in to the map) if no basemap available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if basemap is available then I can't use zoomFactor. How can I translate zoomFactor to level when basemap is available so, I can see the same output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to find level based on LODs. But I don't know which scale I should compare when traversing into LOD array. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 21:55:54 GMT</pubDate>
    <dc:creator>BhavinSanghani</dc:creator>
    <dc:date>2016-05-03T21:55:54Z</dc:date>
    <item>
      <title>How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396910#M36561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using dynamic map service layer with basemap. Once I find feature using selectFeatures(), I want to center and zoom the selected feature. Consider only one feature has been selected. I use centerAndZoom() of the api and it works fine when no basemap available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. I provide my customers to specify one parameter value. If this parameter is specified as 2 then I calculate zoomFactor = 0.02 (i.e. 20% zoom in to the map) if no basemap available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if basemap is available then I can't use zoomFactor. How can I translate zoomFactor to level when basemap is available so, I can see the same output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to find level based on LODs. But I don't know which scale I should compare when traversing into LOD array. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 21:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396910#M36561</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2016-05-03T21:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396911#M36562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhavin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So I take it that your features that you are selecting are points. Do you have some scenario in your app where there will not be a basemap?..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:07:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396911#M36562</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-04T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396912#M36563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can have points, polygon or polyline features in my customers data. Even we support Roads and Highways extension so, m-aware features may be available too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before we were allowing to search features on map without basemap. We were just showing ArcGISDynamicMapServiceLayer on the map. Now, we added support for the basemap and performing projection using geometry service if needed. So, our efforts are that customers should be able to do same things with or without basemap. Then they won't feel the difference in behavior due to provided basemap support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396912#M36563</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2016-05-04T13:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396913#M36564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think there is any solution for this issue? Let me know if any clarifications you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 19:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396913#M36564</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2016-05-05T19:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396914#M36565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhavin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am not finding a way right now to use a zoom percentage when working with a basemap. I always use&amp;nbsp; the geometries extent expanded by 50% or if working with points I use a predefined zoomScale.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 19:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396914#M36565</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-05T19:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396915#M36566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I thought of using Extent's expand() function but it may not work in all cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 20:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396915#M36566</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2016-05-05T20:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396916#M36567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhavin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you give me a case where it would not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 20:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396916#M36567</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-05T20:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396917#M36568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached example and uncomment code for following cases as needed. The results are different with extent expand and centerZoom when basemap is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) With basemap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) CenterZoom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) Extent expand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Without basemap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; a) CenterZoom&lt;/P&gt;&lt;P&gt;&amp;nbsp; b) Extent expand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also pasted screenshot for each cases in the attached doc for comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I am trying to write the code such a way so, the map appears same with and without basemap whenever you change the zoomFactor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 15:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396917#M36568</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2016-05-06T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to find zoomlevel for ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396918#M36569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhavin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You will probably never get them to match as the tiled basemap is confined to the LOD scales available in the tiled cache.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 15:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-find-zoomlevel-for/m-p/396918#M36569</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-06T15:46:03Z</dc:date>
    </item>
  </channel>
</rss>

