3 Gére les affichages static, dynamiques ( le static est utiliser pour afficher un marker a la fois )
4 sinon affiche une erreur
12 function afficher_par_id (id,method)
22 for ( var i = 0; i < opt_marker[id].length ; i++ )
24 marker[id][i] = new google.maps.Marker(opt_marker[id][i]);
25 marker[id][i].setVisible ( true );
30 for ( var i = 0; i < opt_line[id].length ; i++ )
32 line[id][i] = new google.maps.Polyline(opt_line[id][i]);
33 line[id][i].setVisible ( true );
37 for ( var i = 0; i < opt_circle[id].length ; i++ )
39 circle[id][i] = new google.maps.Circle(opt_circle[id][i]);
40 circle[id][i].setVisible ( true );
44 { alert ( " mauvaise referance" ); }
51 document.getElementById("statusbar").innerHTML = "ANIMATION EN COURS " ;
55 save_long = opt_marker[id].length;
57 for ( var i = 0; i < opt_marker[id].length ; i++ )
59 temps =(10.5 - j( "#interval_animation" ).slider( "option", "value" )) * 1000 *(i+1) ;
60 animation [id][i] = setTimeout ( function()
62 marker[id][toto] = new google.maps.Marker(opt_marker[id][toto]);
63 marker[id][toto].setVisible ( true );
64 map.panTo ( pos_marker[id][toto]);
66 if ( toto == save_long) document.getElementById("statusbar").innerHTML = "ANIMATION TERMINEE " ;
71 save_long = opt_line[id].length;
72 for ( var i = 0; i < opt_line[id].length ; i++ )
74 temps =(10.5 - j( "#interval_animation" ).slider( "option", "value" )) * 1000 *(i+1) ;
75 animation [id][i] = setTimeout ( function()
78 line[id][toto] = new google.maps.Polyline(opt_line[id][toto]);
79 line[id][toto].setVisible ( true );
80 map.panTo ( pos_line[id][toto][0]);
82 if ( toto == save_long) document.getElementById("statusbar").innerHTML = "ANIMATION TERMINEE " ;
87 save_long = opt_circle[id].length;
88 for ( var i = 0; i < opt_circle[id].length ; i++ )
90 temps =(10.5 - j( "#interval_animation" ).slider( "option", "value" )) * 1000 *(i+1) ;
91 setTimeout ( function()
94 circke[id][toto] = new google.maps.Circle(opt_circle[id][toto]);
95 circle[id][toto].setVisible ( true );
96 map.panTo ( pos_circle[id][toto][0]);
98 if ( toto == save_long) document.getElementById("statusbar").innerHTML = "ANIMATION TERMINEE " ;
109 alert ( "afficher_par_id : Erreur dans la method" );