Use L.control.gmxIcon and check control state. isActive: false