<?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: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172993#M16002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When you say legend you mean the print output legend? If so I am sorry we have been m&lt;SPAN style="font-size: 11.0pt;"&gt;iscommunicating. The legendEnabled is for the legend widget in the map.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2018 21:29:35 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-11-20T21:29:35Z</dc:date>
    <item>
      <title>Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172988#M15997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m currently using ArcGIS JavaScript API 4.5 but hope to move to 4.9 soon. &amp;nbsp;Either way, the issue is the same even on my test 4.9 app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want graphics, such as draw, to show in the printed map but not in the legend.&amp;nbsp; The JS 3.x API would do this but 4.x makes a legend item which says “polygonLayer” and the graphic called “Override 1”. This makes the printed map look silly. (see attached image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed advice found &lt;A href="https://gis.stackexchange.com/questions/130362/how-to-customize-the-arcgis-print-legend-text-using-javascript"&gt;here&lt;/A&gt;&amp;nbsp;and intercepted the Print request and removed my graphics layers from the operationalLayers in the Web_Map_as_JSON.&amp;nbsp; However, this also removes the graphics from the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So in 4.x, is there a way to keep graphics in the map but remove them from the legend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 18:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172988#M15997</guid>
      <dc:creator>DanielWebb2</dc:creator>
      <dc:date>2018-11-20T18:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172989#M15998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In 4.x you have the legendEnabled property for the layer:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 18:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172989#M15998</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-20T18:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172990#M15999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does GraphicsLayer have the '&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;legendEnabled' property?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;I tried setting it to false anyway but it doesn't work.&amp;nbsp; The graphics still appear in the legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172990#M15999</guid>
      <dc:creator>DanielWebb2</dc:creator>
      <dc:date>2018-11-20T19:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172991#M16000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;A GraphicsLayer does not have that property. So you should switch from using a GraphicsLayer and use a FeatureLayer instead. A FeatureLayer has a source property that is an collection of graphics.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html"&gt;Create a FeatureLayer with client side graphics | ArcGIS API for JavaScript 4.9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172991#M16000</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-20T19:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172992#M16001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did the FeatureLayer thing instead, set legendEnabled to false, but they still show in the legend. Only now they have a long id as the title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/429985_GraphicsInLegend2.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 21:21:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172992#M16001</guid>
      <dc:creator>DanielWebb2</dc:creator>
      <dc:date>2018-11-20T21:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172993#M16002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When you say legend you mean the print output legend? If so I am sorry we have been m&lt;SPAN style="font-size: 11.0pt;"&gt;iscommunicating. The legendEnabled is for the legend widget in the map.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 21:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172993#M16002</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-20T21:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172994#M16003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is for the printed legend in the printed map.&amp;nbsp; Is there a way to remove graphics from printed legend but to keep them in printed map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 21:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172994#M16003</guid>
      <dc:creator>DanielWebb2</dc:creator>
      <dc:date>2018-11-20T21:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphics from legend but keep them in the printed map in ArcGIS JavaScript 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172995#M16004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was thinking that they fixed the override label in the print legend in ArcGIS Server 10.6.1...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 22:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-graphics-from-legend-but-keep-them-in-the/m-p/172995#M16004</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-20T22:01:59Z</dc:date>
    </item>
  </channel>
</rss>

