<?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: Legend - Keep all symbology on and not turn off depending on scale range in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78216#M7101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I have set scale ranges on my dynamic service and the legend is behaving as expected (legend removes symbology for data not available at that scale range)&lt;BR /&gt;&lt;BR /&gt;Is there anyway to make it just display the symbology all the time and not turn on/off depending on scale?&lt;BR /&gt;&lt;BR /&gt;I have followed this sample&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var legend = new esri.dijit.Legend({
&amp;nbsp; map:map,
&amp;nbsp; respectCurrentMapScale: false
},"legendDiv");
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:00:41 GMT</pubDate>
    <dc:creator>HemingZhu</dc:creator>
    <dc:date>2021-12-10T23:00:41Z</dc:date>
    <item>
      <title>Legend - Keep all symbology on and not turn off depending on scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78215#M7100</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;BR /&gt;&lt;SPAN&gt;I have set scale ranges on my dynamic service and the legend is behaving as expected (legend removes symbology for data not available at that scale range)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway to make it just display the symbology all the time and not turn on/off depending on scale?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have followed this sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 13:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78215#M7100</guid>
      <dc:creator>AndyBurns</dc:creator>
      <dc:date>2011-06-28T13:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Legend - Keep all symbology on and not turn off depending on scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78216#M7101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I have set scale ranges on my dynamic service and the legend is behaving as expected (legend removes symbology for data not available at that scale range)&lt;BR /&gt;&lt;BR /&gt;Is there anyway to make it just display the symbology all the time and not turn on/off depending on scale?&lt;BR /&gt;&lt;BR /&gt;I have followed this sample&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var legend = new esri.dijit.Legend({
&amp;nbsp; map:map,
&amp;nbsp; respectCurrentMapScale: false
},"legendDiv");
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78216#M7101</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-10T23:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Legend - Keep all symbology on and not turn off depending on scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78217#M7102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78217#M7102</guid>
      <dc:creator>AndyBurns</dc:creator>
      <dc:date>2011-06-28T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Legend - Keep all symbology on and not turn off depending on scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78218#M7103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The respectCurrentMapScale property does not control legend item visibility when turning map layers on or off.&amp;nbsp; I want legend items to remain visible when I turn off layer visibility using .hide().&amp;nbsp; Regardless of respectCurrentMapScale value, the legend item disappears when I turn visibility off.&amp;nbsp; Is that by design?&amp;nbsp; That's not how I read the documentation for this property...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Optional. When true the legend will update with every scale change and displays only the layers and sub layers that are visible in the current map scale. &lt;/SPAN&gt;&lt;STRONG&gt;When false, the legend does not update on every scale change and all layers and sub layers will be displayed.&lt;/STRONG&gt;&lt;SPAN&gt; The default value is true. "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try this:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var legend = new esri.dijit.Legend({
&amp;nbsp; map:map,
&amp;nbsp; respectCurrentMapScale: false
},"legendDiv");
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78218#M7103</guid>
      <dc:creator>DavidHollema</dc:creator>
      <dc:date>2021-12-10T23:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Legend - Keep all symbology on and not turn off depending on scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78219#M7104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David, I'm not sure if the esri legend dijit can be forced not to refresh every time a layer is switched on or off.&amp;nbsp; What you could do is just use a REST call to the legend endpoint of the service and then parse the JSON in the browser.&amp;nbsp; This doesn't depend on layer visibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Petroleum/KGS_OilGasFields_Kansas/MapServer/legend"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Petroleum/KGS_OilGasFields_Kansas/MapServer/legend&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 09:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78219#M7104</guid>
      <dc:creator>EdSaunders</dc:creator>
      <dc:date>2012-02-21T09:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Legend - Keep all symbology on and not turn off depending on scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78220#M7105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heming, &lt;/P&gt;&lt;P&gt;Will this work on, ArcGISTiledMapservice too? because I am having the same issue, I have a tiled map service, with a group layer that has three sublayers , when I add the URL for the map service, in my application,&amp;nbsp; it shows up fine and the legend that comes up is for the layer that is visible, but as I zoom in and out it does not update to show the legend for visible layer.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78220#M7105</guid>
      <dc:creator>JssrRR</dc:creator>
      <dc:date>2015-03-23T18:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Legend - Keep all symbology on and not turn off depending on scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78221#M7106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heming,&lt;/P&gt;&lt;P&gt;It worked in my tile layer service too, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 21:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-keep-all-symbology-on-and-not-turn-off/m-p/78221#M7106</guid>
      <dc:creator>JssrRR</dc:creator>
      <dc:date>2015-03-23T21:56:39Z</dc:date>
    </item>
  </channel>
</rss>

