<?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: How to correctly set minScale and maxScale of a FeatureLayer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-correctly-set-minscale-and-maxscale-of-a/m-p/87393#M7916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If i interpreted your code in GIS terms, your feature layer will not show when zoomed out beyond 1:(10000/111195), meaning you will have to have your map zoom way beyond 1:1 for your layer to show up!!!&amp;nbsp; Try this: minScale = 10000 (1:10000) or minScale =111195 (1:111195). Not the way you set up. Look at your REST service for reference..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well it does make sense after I set the min and max scale in MXD and then published it. Even it was map was WGS 84 it have scale in meters rather than in Decimal degrees.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not try set the min max scale via code as after setting scale range in MXD, added feature layer get same same values for min and max scale automatically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 08:31:16 GMT</pubDate>
    <dc:creator>Muhammad_Abdul_HadiMuhammad_Ab</dc:creator>
    <dc:date>2011-02-22T08:31:16Z</dc:date>
    <item>
      <title>How to correctly set minScale and maxScale of a FeatureLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-correctly-set-minscale-and-maxscale-of-a/m-p/87391#M7914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am desperately trying to set minimum and maximum scale of a feature layer using WKID 4326 as follows but I fail to do so what am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var featureLayer = new esri.layers.FeatureLayer("http://myserver/ArcGIS/rest/services/myservice/MapServer/1",{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["*"],
&amp;nbsp; });
featureLayer.maxScale=0;
featureLayer.minScale=10000/111195; //Convert to decimal degrees
map.addLayer(featureLayer);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 04:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-correctly-set-minscale-and-maxscale-of-a/m-p/87391#M7914</guid>
      <dc:creator>Muhammad_Abdul_HadiMuhammad_Ab</dc:creator>
      <dc:date>2011-02-09T04:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly set minScale and maxScale of a FeatureLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-correctly-set-minscale-and-maxscale-of-a/m-p/87392#M7915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I am desperately trying to set minimum and maximum scale of a feature layer using WKID 4326 as follows but I fail to do so what am I missing?&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var featureLayer = new esri.layers.FeatureLayer("http://myserver/ArcGIS/rest/services/myservice/MapServer/1",{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["*"],
&amp;nbsp; });
featureLayer.maxScale=0;
featureLayer.minScale=10000/111195; //Convert to decimal degrees
map.addLayer(featureLayer);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i interpreted your code in GIS terms, your feature layer will not show when zoomed out beyond 1:(10000/111195), meaning you will have to have your map zoom way beyond 1:1 for your layer to show up!!!&amp;nbsp; Try this: minScale = 10000 (1:10000) or minScale =111195 (1:111195). Not the way you set up. Look at your REST service for reference..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-correctly-set-minscale-and-maxscale-of-a/m-p/87392#M7915</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-10T23:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly set minScale and maxScale of a FeatureLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-correctly-set-minscale-and-maxscale-of-a/m-p/87393#M7916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If i interpreted your code in GIS terms, your feature layer will not show when zoomed out beyond 1:(10000/111195), meaning you will have to have your map zoom way beyond 1:1 for your layer to show up!!!&amp;nbsp; Try this: minScale = 10000 (1:10000) or minScale =111195 (1:111195). Not the way you set up. Look at your REST service for reference..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well it does make sense after I set the min and max scale in MXD and then published it. Even it was map was WGS 84 it have scale in meters rather than in Decimal degrees.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not try set the min max scale via code as after setting scale range in MXD, added feature layer get same same values for min and max scale automatically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 08:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-correctly-set-minscale-and-maxscale-of-a/m-p/87393#M7916</guid>
      <dc:creator>Muhammad_Abdul_HadiMuhammad_Ab</dc:creator>
      <dc:date>2011-02-22T08:31:16Z</dc:date>
    </item>
  </channel>
</rss>

