Probem with event.latLng and Hk

466 views
Skip to first unread message

Hector L

unread,
Feb 4, 2010, 12:56:53 PM2/4/10
to Google Maps JavaScript API v3
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!

Ben Appleton

unread,
Feb 4, 2010, 7:11:43 PM2/4/10
to google-map...@googlegroups.com
Thanks, I have confirmed the bug.  We'll push an update to fix the issue.

Ben


--
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.


jbogdani

unread,
Feb 8, 2010, 1:19:26 PM2/8/10
to Google Maps JavaScript API v3
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 <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>

ICHIBAN

unread,
Mar 9, 2010, 12:28:58 PM3/9/10
to Google Maps JavaScript API v3
Please fix the bug quickly.
Thanks.
Reply all
Reply to author
Forward
0 new messages