Select to view content in your preferred language

Adding Legend to Layer List Deprecation Warning

204
1
Jump to solution
11-18-2025 06:58 AM
Justin_Greco
Frequent Contributor

When adding a legend to the arcgis-layer-list component as shown in the sample gives the following warning:

DEPRECATED - This widget is deprecated. Use the Legend component instead.

https://codepen.io/pen?editors=1000

Is there a recommended way to have the layer list component use the legend component, rather than the legend widget?

 

0 Kudos
1 Solution

Accepted Solutions
Sage_Wall
Esri Regular Contributor

Hi @Justin_Greco ,
Sorry about this, it should be fixed in the next release when we've finished the migration of Layer List to a web component.  Currently the Layer List is using the old Legend widget internally and it's producing the deprecation message.

View solution in original post

0 Kudos
1 Reply
Sage_Wall
Esri Regular Contributor

Hi @Justin_Greco ,
Sorry about this, it should be fixed in the next release when we've finished the migration of Layer List to a web component.  Currently the Layer List is using the old Legend widget internally and it's producing the deprecation message.

0 Kudos