Bonjour,

je travaille avec une carte google map, tout marchait bien sous google chrome, quand je clique sur le bouton droit de la souris, il y a un modalpopup extender qui s'affiche avec un marker sur la carte avec les xy du point.et quand je renseigne un champ origine il m'affiche un itineraire et le modal disparait et si l'utilisateur reclique a nouveau avec le bouton droit le modal garde les infos de l'itineraire.

maintenant tout marche bien sous firefox mais sous chrome mon modal s'affiche parfois et parfois non

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
google.maps.event.addListener(map, 'rightclick', function (event) {
            if (directionsDisplay.getDirections() == null) {
                clearOverlays();
                clearForm();
                placeMarker(event.latLng);
            }
            else {
                loadItineraire(directionsDisplay.getDirections());
            }
 
        });
 
function loadItineraire(result) {//directionsDisplay.getDirections()
 
    var itineraire = result.routes[0].legs[0];
 
    document.getElementById('latitude').value = itineraire.end_location.lat();
    document.getElementById('longitude').value = itineraire.end_location.lng(); //formatted_address
    codeLatLng(itineraire.end_location.lat(), itineraire.end_location.lng(), 'adresse');
 
    document.getElementById('LatOrg').value = itineraire.start_location.lat();
    document.getElementById('LongOrg').value = itineraire.start_location.lng(); //formatted_address
    codeLatLng(itineraire.start_location.lat(), itineraire.start_location.lng(), 'txtorigine');
 
    computeTotalDistance(result);
 
    showForm();
}