3 meme chose que recup_data sauf qu'il n'y a pas besoin d'url puisque cela r�agi a l'envoi du d�mon
8 function recup_direct(data, method,id)
10 //j.each(data , function(key, val)
12 //alert ( data.data.print_method );
13 switch ( data.data.print_method )
34 alert ("unknown method");
37 for ( var i= 0; i<data.data.message.length;i++)
40 switch ( data.data.print_method )
43 pos_marker[id].push( new google.maps.LatLng(data.data.message[i].ape_position[0].latitude,data.data.message[i].ape_position[0].longitude));
47 position: pos_marker[id][pos_marker[id].length - 1],
50 //title : data.data.message.ape_timestamp
53 //marker[id].push( new google.maps.Marker(opt_marker[id][opt_marker[id].length - 1 ]));
54 if ( data.data.print_options )
56 opt_conf[id] = data.data.print_options;
62 for ( var j = 0 ; j < val[i].params.data.message.ape_position.length ; j++ )
64 pos_line[id].push(new google.maps.LatLng(data.data.message[i].ape_position[j].latitude,data.data.message[i].ape_position[j].longitude)) ;
71 strokeColor: "#FF0000",
76 if ( data.data.print_options )
78 opt_conf[id] = data.data.print_options;
85 longueur = circle.length;
86 circle[longueur] = [];
87 // circle[longueur].push (val[i].message.ape_position[0].latitude) ; pour le timestamp
88 pos_circle[longueur].push(new google.maps.LatLng(val[i].data.message.ape_position[0].latitude,val[i].data.message.ape_position[1].longitude));
89 // pos_circle[longueur].push circle[longueur][1][1] = val[i].message.ape_position[0].radian;
92 center : pos_circle[longueur][0],
93 radius : pos_circle[longueur][1]
95 if ( data.data.print_options )
97 opt_conf[id] = data.data.print_options;
110 afficher_par_id(id,"static");