Hello, I'm having the same problem today. I didn't change my code: it worked 3 days ago, but it gives "undefined" for event.latLng. Looking forward for the bug to be solved.
On 5 Feb, 01:11, Ben Appleton <[email protected]> wrote: > Thanks, I have confirmed the bug. We'll push an update to fix the issue. > > Ben > > On Fri, Feb 5, 2010 at 4:56 AM, Hector L <[email protected]> wrote: > > Hi. > > > I had a script with something like: > > > google.maps.event.addListener(polygon, "click", function(event){ > > > var infowindow = new google.maps.InfoWindow({ > > content:'message', > > size: new google.maps.Size(50,50) > > }); > > > infowindow.setPosition(event.latLng); > > infowindow.open(map); > > }); > > > but the part with event.latLng stop working so I made a simple > > alert(event.latLng) to see the result and it returned "undefined". > > > I didnt understand why so I check the event object like: > > > for(var x in event) > > alert(x); > > > And it returned "Hk" and if I did alert(event.Hk) the result was what > > I wanted. > > > How could be that? something has changed in the google maps API v3? > > > Thanks! > > > bye! > > > -- > > 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]<google-maps-js-api-v3%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
