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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.