emajineMap.prototype.setDefaultControl = function() {
	new GKeyboardHandler(this.map);
}

//Ajout du layer sur le marker (infobulle)

emajineMap.prototype.setMarker = function (marker,url) {
 if(url) {
 GEvent.addListener(marker, "mouseover", function (){
 $('div.map div:first div:first div:first div:last').addClass('totobulle');
 $('div.map div:first div:first div:first div:last').prev().prev().addClass('ombrage');
 $('div.totobulle div:first div:first img:first').addClass('close');
 var coord = marker.getLatLng();
 var coord1 = coord.lat();
 var coord2 = coord.lng();
 var info = '<div id="gMapWindowContent" class="googleMapBulle">Veuillez patienter...</div>';
 marker.openInfoWindowHtml(info);
 });
 GEvent.addListener(marker, "infowindowopen", function (){
 displayFileContent(url,'gMapWindowContent')
 });
 }
 this.map.addOverlay(marker);
}
/*
emajineMap.prototype.setMarker = function (marker,url) {
 var map=this.map;
 if(url) {
 GEvent.addListener(marker, "click", function (){
 var info = '<div id="gMapWindowContent" class="googleMapBulle">Veuillez patienter...</div>';
 marker.openExtInfoWindow(
          map,
          "simple_example_window",
          info,
		  {beakOffset: 3}
        );
 });
 GEvent.addListener(marker, "infowindowopen", function (){
 displayFileContent(url,'gMapWindowContent')
 });
 }
 this.map.addOverlay(marker);
}*/


