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.
With the autoFetchLegendInfos setting, does it simply fetch legends for all map layers without regard for the web map settings?
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/<item id>/data)?