On Sep 22, 6:34 am, Jason Jonas <[email protected]> wrote: > I have a number of users that prefer to use the keyboard to navigate > the map. After the map is loaded I've used the following v2 code to > generate a click event so the map has the focus: > > var event = {srcElement: map_canvas, target: map_canvas, nodeType: 1}; > GEvent.trigger(document, "click", event); > > After reading through the v3 event info, it seemed simple enough to > change it to: > > var event = {srcElement: map_canvas, target: map_canvas, nodeType: 1}; > google.maps.event.trigger(document, "click", event); > > No dice. So I kept reading and found that the click event on a map has > a MouseEvent argument. So I tried: > > var event = new google.maps.event.MouseEvent(new > google.maps.LatLng(0,0)); > google.maps.event.trigger(map, "click", event); > > No dice. I tried a few other things to no avail. The page is: > > http://spotwalla.com/v32.php > > Any help is appreciated. Thanks.
Did you try: javascript:google.maps.event.trigger(mCR, "click"); (entering that in the address bar opens an infowindow for me (on the mCR marker)). -- Larry > > Jason -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
