<?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: Can legend stay visible even if the layer is off in JS API? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216250#M20072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your responses.&lt;/P&gt;&lt;P&gt;Tim, the legend widget is really impressive and I did find it before I posted the question. I was looking for a more lightweight and out-of-the-box solutions and I just overlooked the &lt;A href="https://developers.arcgis.com/javascript/jsapi/legend-amd.html#legend1-autoupdate"&gt;autoUpdate parameter of the esri legend dijit&lt;/A&gt;. That should do the trick for me, although setting it to true means the legend is not sensitive to map scale any more so one would somehow need to refresh the legend in map.on("extent-change", ...) using map.getLayersVisibleAtScale().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 07:50:41 GMT</pubDate>
    <dc:creator>FilipKrál</dc:creator>
    <dc:date>2015-05-14T07:50:41Z</dc:date>
    <item>
      <title>Can legend stay visible even if the layer is off in JS API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216247#M20069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am writing a web application using ArcGIS JavaScript API (&amp;gt;=3.13) and I need the legend to stay on all the time even if the layer is off because other elements on the page use the same symbols. Is that possible?&lt;/P&gt;&lt;P&gt;If I read it right the documentation only describes how to &lt;A href="https://developers.arcgis.com/javascript/jsapi/legend-amd.html"&gt;override sensitivity to map scale&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think would be other options for doing that?&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 16:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216247#M20069</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2015-05-13T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can legend stay visible even if the layer is off in JS API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216248#M20070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try looking into this? &lt;A href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109" title="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109"&gt;http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 17:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216248#M20070</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-05-13T17:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can legend stay visible even if the layer is off in JS API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216249#M20071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option would be to add a jpeg of the legend and add that to the map. That is what I did here:&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/99591_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 18:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216249#M20071</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-05-13T18:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can legend stay visible even if the layer is off in JS API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216250#M20072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your responses.&lt;/P&gt;&lt;P&gt;Tim, the legend widget is really impressive and I did find it before I posted the question. I was looking for a more lightweight and out-of-the-box solutions and I just overlooked the &lt;A href="https://developers.arcgis.com/javascript/jsapi/legend-amd.html#legend1-autoupdate"&gt;autoUpdate parameter of the esri legend dijit&lt;/A&gt;. That should do the trick for me, although setting it to true means the legend is not sensitive to map scale any more so one would somehow need to refresh the legend in map.on("extent-change", ...) using map.getLayersVisibleAtScale().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 07:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-legend-stay-visible-even-if-the-layer-is-off/m-p/216250#M20072</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2015-05-14T07:50:41Z</dc:date>
    </item>
  </channel>
</rss>

