AreaCategorical and GetLegend.
https://maps.csr.ufmg.br/editor/?lang=eng&map=&queryid=104&extent=-443.628,-16.847,-407.373,3.294&tools=helpintro,layerchooser,zoomextent,customzoom,getfeature,hovershowlegend&options=scale,startopened,hidestylechooser,enablequeries&visiblelayers=custom