function loadGMap(lat, lng, zoom, baseIconPath) {
    
    baseIconPath = contextPath + "/images/fiche/pointeur.png";
    zoom = 13;
    
    // Déclaration de la map à placer dans la page jsp
    var map = new GMap2(document.getElementById("carteStage"));

    // Déclaration de l'icone de base - plus tard, on pourrait y mettre des paramètres
    var baseIcon = createBaseIcon(baseIconPath);
    
    // Déclaration du point central de la map (selon lat et lng)
    var point = getPointFromLatLng(lat,lng);

    // Déclaration du marqueur
    var marker = getMarkerFromPoint(point, baseIcon);

    // Paramètrage de la carte à afficher - tous les controles
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl()); 
    map.setCenter(point, zoom);
    map.addOverlay(marker);
}

function createBaseIcon(path) {
    var baseIcon = new GIcon();
    baseIcon.image = path;
    baseIcon.iconSize = new GSize(64, 64);
//    baseIcon.shadowSize = new GSize(37, 34);
    baseIcon.iconAnchor = new GPoint(32, 32);
    baseIcon.infoWindowAnchor = new GPoint(9, 2);
//    baseIcon.infoShadowAnchor = new GPoint(18, 25);
    return baseIcon;
}

function getPointFromLatLng(lat, lng) {
    var point = new GLatLng(lat, lng);
    return point;
}

function getMarkerFromPoint(point, baseIcon) {
    var marker = new GMarker(point, baseIcon);
    return marker;
}