Consider the following code snippet:
google.maps.event.addListener(myRect, 'mousedown', function(event) {
console.log(event);
var latLngOfMouseDown = event.latLng;
});
According to the spec (http://code.google.com/apis/maps/documentation/
v3/reference.html#MouseEvent) I should be able to access the LatLng of
the mousedown event with latLng property, but console.log(event);
shows that event object doesn't have a latLng property but have a
property named 'Hk' instead, which I can access like this:
google.maps.event.addListener(myRect, 'mousedown', function(event) {
console.log(event);
var latLngOfMouseDown = event.Hk;
});
and the code works fine. Is this a bug or am I missing something else?
I'm hesitant to use undocumented features in case they change and
break my code. Thanks.
--
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.