deck.gl legend

937
2
Jump to solution
02-17-2022 02:23 PM
shaileshgavathe
Occasional Contributor II

Is there a way to display deck.gl based layers Legend under Legend Widget ?

Example one below. Can the legend display a renderer for it?

https://developers.arcgis.com/javascript/latest/sample-code/custom-lv-deckgl/

 

Tags (1)
0 Kudos
2 Solutions

Accepted Solutions
KristianEkenes
Esri Regular Contributor

Currently, custom layers and renderers are not supported by the Legend widget because there isn't a clear schema or contract between a custom layer and an out-of-the-box widget like Legend. You would need to create your own legend in these scenarios.

View solution in original post

0 Kudos
shaileshgavathe
Occasional Contributor II

Thank you @KristianEkenes . We will probably have to make one custom legend. Thanks again. 

View solution in original post

0 Kudos
2 Replies
KristianEkenes
Esri Regular Contributor

Currently, custom layers and renderers are not supported by the Legend widget because there isn't a clear schema or contract between a custom layer and an out-of-the-box widget like Legend. You would need to create your own legend in these scenarios.

0 Kudos
shaileshgavathe
Occasional Contributor II

Thank you @KristianEkenes . We will probably have to make one custom legend. Thanks again. 

0 Kudos