I am able to toggle different legends using the traditional method found below:
mymap.on(\'overlayadd\', function(eventLayer) { if (eventLayer.name ===