You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is no easy way to exclude basemaps from displaying in the legend. The AGOL viewers do not seem to provide a way to set the showInLegend property for a basemap to false. Also, many basemaps do not contain useful legend information.
In order to hide basemaps in a legend, you have to loop through all "base" and "reference" layers in a basemap and manually set their showInLegend property to false:
Currently, there is no easy way to exclude basemaps from displaying in the legend. The AGOL viewers do not seem to provide a way to set the
showInLegend
property for a basemap to false. Also, many basemaps do not contain useful legend information.In order to hide basemaps in a legend, you have to loop through all "base" and "reference" layers in a basemap and manually set their
showInLegend
property to false:It would be very convenient to have a
LegendViewController
property to hide all basemap data in a legend, such as:See #173
The text was updated successfully, but these errors were encountered: