add WMS legend support for ArcGIS WMS.