<?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: respectCurrentMapScale 4.15 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/respectcurrentmapscale-4-15/m-p/9622#M921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/225337"&gt;Omer Ben-Asher&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you are talking here about a v3.x property of the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/legend-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/legend-amd.html"&gt;Legend | API Reference | ArcGIS API for JavaScript 3.33&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like in v4.x of the JS API you have to use the &lt;SPAN style="font-family: andale mono, monospace;"&gt;respectLayerVisibility &lt;/SPAN&gt;property: &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility"&gt;Legend | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This property&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Determines whether to respect the properties of the layers in the map that control the legend's visibility (&lt;CODE&gt;minScale&lt;/CODE&gt;, &lt;CODE&gt;maxScale&lt;/CODE&gt;, &lt;CODE&gt;legendEnabled&lt;/CODE&gt;).&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;When the &lt;CODE&gt;respectLayerVisibility&lt;/CODE&gt; property of the legend is set to &lt;CODE&gt;false&lt;/CODE&gt;, the legend elements for each layer in the map will always display, thus disregarding the &lt;CODE&gt;minScale&lt;/CODE&gt;, &lt;CODE&gt;maxScale&lt;/CODE&gt;, and &lt;CODE&gt;legendEnabled&lt;/CODE&gt; properties for each layer in the map.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this answer your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2020 07:53:52 GMT</pubDate>
    <dc:creator>Egge-Jan_Pollé</dc:creator>
    <dc:date>2020-08-26T07:53:52Z</dc:date>
    <item>
      <title>respectCurrentMapScale 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/respectcurrentmapscale-4-15/m-p/9621#M920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;How can I do the respectCurrentMapScale&lt;/SPAN&gt; in ths 4.15 api versaion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 06:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/respectcurrentmapscale-4-15/m-p/9621#M920</guid>
      <dc:creator>OmerBen-Asher</dc:creator>
      <dc:date>2020-08-26T06:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: respectCurrentMapScale 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/respectcurrentmapscale-4-15/m-p/9622#M921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/225337"&gt;Omer Ben-Asher&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you are talking here about a v3.x property of the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/legend-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/legend-amd.html"&gt;Legend | API Reference | ArcGIS API for JavaScript 3.33&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like in v4.x of the JS API you have to use the &lt;SPAN style="font-family: andale mono, monospace;"&gt;respectLayerVisibility &lt;/SPAN&gt;property: &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility"&gt;Legend | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This property&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Determines whether to respect the properties of the layers in the map that control the legend's visibility (&lt;CODE&gt;minScale&lt;/CODE&gt;, &lt;CODE&gt;maxScale&lt;/CODE&gt;, &lt;CODE&gt;legendEnabled&lt;/CODE&gt;).&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;When the &lt;CODE&gt;respectLayerVisibility&lt;/CODE&gt; property of the legend is set to &lt;CODE&gt;false&lt;/CODE&gt;, the legend elements for each layer in the map will always display, thus disregarding the &lt;CODE&gt;minScale&lt;/CODE&gt;, &lt;CODE&gt;maxScale&lt;/CODE&gt;, and &lt;CODE&gt;legendEnabled&lt;/CODE&gt; properties for each layer in the map.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this answer your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 07:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/respectcurrentmapscale-4-15/m-p/9622#M921</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-08-26T07:53:52Z</dc:date>
    </item>
  </channel>
</rss>

