<?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: Using webmap layer legend settings in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1204524#M4690</link>
    <description>&lt;P&gt;That is very helpful, thanks! It looks like map.json.operationalLayers has what i need.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 14:14:24 GMT</pubDate>
    <dc:creator>JamesGough</dc:creator>
    <dc:date>2022-08-19T14:14:24Z</dc:date>
    <item>
      <title>Using webmap layer legend settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1204173#M4686</link>
      <description>&lt;P&gt;I have a legend component based on some of the ESRI examples, using the map.legendInfos list model. The legend works fine, however it does not seem to honor the webmap's settings for layer legends. All layers are shown in the legend even the ones that i have set to "hide in legend" in the web map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the autoFetchLegendInfos setting, does it simply fetch legends for all map layers without regard for the web map settings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to access the web map item details through the Map object? Or do I have to manually fetch them from the rest endpoint (/portal/sharing/rest/content/items/&amp;lt;item id&amp;gt;/data)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 13:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1204173#M4686</guid>
      <dc:creator>JamesGough</dc:creator>
      <dc:date>2022-08-18T13:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using webmap layer legend settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1204365#M4688</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;With the autoFetchLegendInfos setting, does it simply fetch legends for all map layers without regard for the web map settings?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, it will fetch the legend information from every layer. You can get the web map json from the JsonSerializable properties, which are broken into a few categories:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-map.html#json-prop" target="_blank" rel="noopener"&gt;json&lt;/A&gt; - what is read and supported by the Runtime.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-map.html#unsupportedJson-prop" target="_blank" rel="noopener"&gt;unsupportedJson&lt;/A&gt; - things the Runtime knows about, but does not support.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-map.html#unknownJson-prop" target="_blank" rel="noopener"&gt;unknownJson&lt;/A&gt; - things the Runtime does not about, for example web map features released after Runtime.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 00:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1204365#M4688</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2022-08-19T00:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using webmap layer legend settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1204524#M4690</link>
      <description>&lt;P&gt;That is very helpful, thanks! It looks like map.json.operationalLayers has what i need.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 14:14:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1204524#M4690</guid>
      <dc:creator>JamesGough</dc:creator>
      <dc:date>2022-08-19T14:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using webmap layer legend settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1226723#M4774</link>
      <description>&lt;P&gt;Im not a coder and not sure how to follow the solution.&amp;nbsp; Did you find another way.&lt;/P&gt;&lt;P&gt;Need to remove repetitive layers from the legend. Within map viewer, I have turned off the "show in map legend" for each layer I do not wish to appear.&amp;nbsp; All but one layer is a feature layer on AGO, the other is from a rest service.&amp;nbsp; None are sublayers within the map view.&amp;nbsp; I have refreshed the web map and web app.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a setting in Experience builder that I am missing for turning off layers in a legend, or is there only one button within web map that needs to be turned off.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a work around?&amp;nbsp; I have researched several other discussions on the topic within ESRI and other websites.&amp;nbsp; Most just confirm the turn off show in legend button, and not to have a sub feature layer.&lt;/P&gt;&lt;P&gt;thanks for the help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 18:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/using-webmap-layer-legend-settings/m-p/1226723#M4774</guid>
      <dc:creator>MarkGambordella</dc:creator>
      <dc:date>2022-10-28T18:48:59Z</dc:date>
    </item>
  </channel>
</rss>

