Just bumping this up one time... On Oct 4, 9:18 pm, Jason Jonas <[email protected]> wrote: > After the page is loaded I'm trying to generate a click event so the > map has the focus. In V2 we used: > > var event = {srcElement: map_canvas, target: map_canvas, nodeType: 1}; > GEvent.trigger(document, "click", event); > > And it works perfectly. I made what seems like the appropriate v3 > substitutions in the following file: > > http://spotwalla.com/event-01.html > > There are no errors in either FireFox or Chrome, but it doesn't work. > So I tried to generate a click event on the map itself using a null > MouseEvent in the following file: > > http://spotwalla.com/event-02.html > > FireFox generates the following error: > > Error: a is undefined > Source File:http://maps.gstatic.com/intl/en_us/mapfiles/api-3/2/7/main.js > Line: 20 > > Chrome generates the following error: > > Uncaught TypeError: Cannot read property '__e3_' of undefined > U.Qc main.js:20 > U.trigger main.js:21 > (anonymous function) event-02.html:112 > > So I thought it might be the null MouseEvent and tried: > > http://spotwalla.com/event-03.html > > The same error is generated in both FireFox and Chrome. Not sure if > this is a bug in v3 API or if it's something I've done incorrectly. > Ideas? Thanks. > > 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.
