Simple control to show a gif loader to the center of the map
var controlLoader = L.control.loader().addTo(map); controlLoader.show(); ... controlLoader.hide();