<?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>idea Make the _constructRendererLegendElements method public in ArcGIS JavaScript Maps SDK Ideas</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/make-the-constructrendererlegendelements-method/idi-p/1184599</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was wondering if we could make the&amp;nbsp;&lt;SPAN&gt;_constructRendererLegendElements from the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ActiveLayerInfo class public, either as a method on this class or as a method on the LegendViewModel class.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;_constructRendererLegendElements takes a renderer and returns an ImageElement which allows us to show a legend even when the layer is not in the view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That method does not need a layer at all actually, it only needs a renderer which is great. At the moment I am doing :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const activeLayer = new ActiveLayerInfo({ layer: new FeatureLayer() }) as ActiveLayerInfoExtended;
const legendElements = await activeLayer._constructRendererLegendElements(renderer);&lt;/LI-CODE&gt;&lt;P&gt;which works, but obviously not super great as I have to extend the interface&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 09:29:47 GMT</pubDate>
    <dc:creator>MatthieuThery1</dc:creator>
    <dc:date>2022-06-21T09:29:47Z</dc:date>
    <item>
      <title>Make the _constructRendererLegendElements method public</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/make-the-constructrendererlegendelements-method/idi-p/1184599</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was wondering if we could make the&amp;nbsp;&lt;SPAN&gt;_constructRendererLegendElements from the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ActiveLayerInfo class public, either as a method on this class or as a method on the LegendViewModel class.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;_constructRendererLegendElements takes a renderer and returns an ImageElement which allows us to show a legend even when the layer is not in the view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That method does not need a layer at all actually, it only needs a renderer which is great. At the moment I am doing :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const activeLayer = new ActiveLayerInfo({ layer: new FeatureLayer() }) as ActiveLayerInfoExtended;
const legendElements = await activeLayer._constructRendererLegendElements(renderer);&lt;/LI-CODE&gt;&lt;P&gt;which works, but obviously not super great as I have to extend the interface&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 09:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/make-the-constructrendererlegendelements-method/idi-p/1184599</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2022-06-21T09:29:47Z</dc:date>
    </item>
  </channel>
</rss>

