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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
On 5 Feb, 01:11, Ben Appleton <apple...@google.com> wrote:
> Thanks, I have confirmed the bug. We'll push an update to fix the issue.
>
> Ben
>
> > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2Bunsu...@googlegroups.com>