// JavaScript Document
function GeoLoaderControl() {}
GeoLoaderControl.prototype = new GControl();

/* Création du contrôle */
GeoLoaderControl.prototype.initialize = function(map) {  
  var container = document.createElement("div");   
  var loaderDiv = document.createElement("div");  
  
  this.setLoaderStyle_(loaderDiv);  
  container.appendChild(loaderDiv);  
  loaderDiv.appendChild(document.createTextNode("Veuillez patienter . . ."));
  
  map.getContainer().appendChild(container);  
  return container;
}

GeoLoaderControl.prototype.getDefaultPosition = function(map) {  
  return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(0, 0));
}

/* Style CSS */
GeoLoaderControl.prototype.setLoaderStyle_ = function(loader) {  
  loader.style.color = "#000000";
  loader.style.font = "bold 3em Arial, Helvetica, sans-serif";
  loader.style.width = "700px";
  loader.style.height = "20px"; 
  loader.style.padding = "0px 0px 50px 0px";
  loader.style.display = "block";
}