My God, it cost me for two hours . Thanks Andrew, my dear friends. 2010/9/16 Andrew Leach <[email protected]>
> On Sep 16, 9:56 am, blessdyb <[email protected]> wrote: > > Hi guys, > > I want to know if I can custom the double clicked event in Google > > Maps? As follows is my code, Could someone do me a favor? > > > > var map = new GMap2(document.getElementById("map_canvas")); > > map.setCenter(new GLatLng(37.4419, -122.1419), > > 13); > > map.setUIToDefault(); > > map.disableDoubleClickZoom(); > > GEvent.addListener(map,"dbclick",function(){ > > alert("blessdyb"); > > }); > > You should use "dblclick" not "dbclick". > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API V2" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- Du Yabo Mobroad,Inc. Beijing [email protected] Mobilephone:13466646622 -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
