
jQuery.noConflict();

new Event.observe(window, 'load', load);

function load() {
  if (GBrowserIsCompatible()){
      //Définition du marker 
      var new_icon = new GIcon();    
      new_icon.image = "http://www.finest-spa.com/img/marker_gmap.png";
      new_icon.shadow = "http://www.finest-spa.com/img/marker_shadow_gmap.png"; 
      new_icon.iconSize = new GSize(40,60);
      new_icon.shadowSize = new GSize(67, 69);
      new_icon.iconAnchor = new GPoint(6, 20);
      new_icon.infoWindowAnchor = new GPoint(5, 1);

      markerOptions = { icon:new_icon };
      
      // On récupère les coordonnées
      var Lat = jQuery('#gmap_latitude').getValue(); // rentrez ici votre latitude
      var Lng = jQuery('#gmap_longitude').getValue(); // rentrez ici votre longitude
      var Zoom = 10 // rentrez ici le zoom désiré entre 1 et 16
      
      var map = new GMap2(jQuery("#map")); // affiche le module
      map.setCenter(new GLatLng(Lat,Lng ),Zoom ); //affiche la carte au lieu précisé
      map.setUIToDefault();
      
      var point = new GLatLng(Lat,Lng);
      if(point){
        map.addOverlay(new GMarker(point, markerOptions));   
      }
  }
}

