views:

198

answers:

1

can we ?

i want to do something like this:

google.maps.event.addListener(map, 'db_right_click', function(event) {
   alert('ssss')
}

how to catche the 'db_right_click' event ??

is there any way ??

A: 

i get it

and

this is my code:

//***********  double right click ********/ 
                                var c =0 ;
                                $('#map_canvas')[0].onmousedown=function(event){
                                    if(event.button == 2){
                                        c++;
                                setTimeout(cc, 600);
                                }
                             if (c >1){
                                   alert('ok i get it')
                                }
                                }
                                function cc{
                                    c=0;
                                }
                              //***********  double right click ********/
zjm1126