And why not use the Legend control? From 2.3, it supports WMS layers.
Technically, the use case is to simply be able to display a legend for the WMS layer.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.