Use L.control.gmxIcon to create user defined control - in this example create control for Leaflet BoxZoom feature