<?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 Max/Min Scale not set on SubLayers? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467021#M43275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if anyone else has noticed this and if this is 'intended' behaviour..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with the 4.3 API and have noticed, if you add a MapImageLayer to your map, which has scale limits set on the sublayer (e.g. &lt;A href="http://&amp;lt;yourarcgisserver&amp;gt;:6080/arcgis/rest/services/&amp;lt;yourMapServer&amp;gt;/0"&gt;http://&amp;lt;yourarcgisserver&amp;gt;:6080/arcgis/rest/services/&amp;lt;yourMapServer&amp;gt;/0&lt;/A&gt;), these scale limits do not appear to populate as properties on the sublayer. By this I mean that the subLayer.minScale and subLayer.maxScale are there, but both are set to zero, even though they are not zero in the service. Although, the layer does still adhere to the set scale limits in the map. Here's an example of the properties I am talking about, these are on the only sublayer of my Map Service;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/337701_pastedImage_3.png" style="width: 248px; height: 426px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can&amp;nbsp;override those values using subLayer.minScale = blah and it will set the property and enforce it. But I was expecting it to populate itself with the values from the Map Service, which could then be overridden programatically to new values if desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned above, even though they are set to zero, the min and max scale are still enforced in the map when zooming, but I'm guessing this is the Map Server sending back the images, not the dynamic layers. Also, as an FYI - we would like to use these values to set a zoom to layer button, when the layer is outside of the scale ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this in the 3x API's, we used to use the layerInfos property, which did set the min/max scale values from the Map Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/337702_pastedImage_4.png" style="width: 193px; height: 178px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 04:00:16 GMT</pubDate>
    <dc:creator>JordanKing3</dc:creator>
    <dc:date>2017-03-10T04:00:16Z</dc:date>
    <item>
      <title>Max/Min Scale not set on SubLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467021#M43275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if anyone else has noticed this and if this is 'intended' behaviour..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with the 4.3 API and have noticed, if you add a MapImageLayer to your map, which has scale limits set on the sublayer (e.g. &lt;A href="http://&amp;lt;yourarcgisserver&amp;gt;:6080/arcgis/rest/services/&amp;lt;yourMapServer&amp;gt;/0"&gt;http://&amp;lt;yourarcgisserver&amp;gt;:6080/arcgis/rest/services/&amp;lt;yourMapServer&amp;gt;/0&lt;/A&gt;), these scale limits do not appear to populate as properties on the sublayer. By this I mean that the subLayer.minScale and subLayer.maxScale are there, but both are set to zero, even though they are not zero in the service. Although, the layer does still adhere to the set scale limits in the map. Here's an example of the properties I am talking about, these are on the only sublayer of my Map Service;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/337701_pastedImage_3.png" style="width: 248px; height: 426px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can&amp;nbsp;override those values using subLayer.minScale = blah and it will set the property and enforce it. But I was expecting it to populate itself with the values from the Map Service, which could then be overridden programatically to new values if desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned above, even though they are set to zero, the min and max scale are still enforced in the map when zooming, but I'm guessing this is the Map Server sending back the images, not the dynamic layers. Also, as an FYI - we would like to use these values to set a zoom to layer button, when the layer is outside of the scale ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this in the 3x API's, we used to use the layerInfos property, which did set the min/max scale values from the Map Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/337702_pastedImage_4.png" style="width: 193px; height: 178px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 04:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467021#M43275</guid>
      <dc:creator>JordanKing3</dc:creator>
      <dc:date>2017-03-10T04:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min Scale not set on SubLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467022#M43276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an existing bug logged for this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUG-000104613 : Property maxScale and minScale are always 0 for MapImageLayer sublayers on version 4.1 and above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This happens on version 4.1 to 4.3, min and max value are available on 4.0&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.0 -&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/tikofapiha/1/edit?html,output" title="https://jsbin.com/tikofapiha/1/edit?html,output"&gt;Repro for 4.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.1 to 4.3 -&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/wawevejuza/edit?html,output" title="https://jsbin.com/wawevejuza/edit?html,output"&gt;Repro for 4.1 to 4.3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 18:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467022#M43276</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2017-04-20T18:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min Scale not set on SubLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467023#M43277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been two years. Has this bug been fixed yet?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 14:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467023#M43277</guid>
      <dc:creator>ae</dc:creator>
      <dc:date>2019-06-05T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min Scale not set on SubLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467024#M43278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not fixed yet with 4.13 API version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 08:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/467024#M43278</guid>
      <dc:creator>MykolasKalninis</dc:creator>
      <dc:date>2019-11-06T08:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min Scale not set on SubLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/1302038#M81470</link>
      <description>&lt;P&gt;This is also broken in the .Net release v200.1.0, the newest release as of writing.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 15:08:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/max-min-scale-not-set-on-sublayers/m-p/1302038#M81470</guid>
      <dc:creator>HalletBruestle</dc:creator>
      <dc:date>2023-06-22T15:08:47Z</dc:date>
    </item>
  </channel>
</rss>

