removed console.log from WMS legend code