> google.maps.event.addListener(marker, 'mouseup', function(event) {
> updateLatLong(event.latLng);
> });
I would expect that to pass an object of type LatLng to your function
http://code.google.com/apis/maps/documentation/javascript/reference.html#MouseEvent
> var newLocation = new google.maps.LatLng(location);
The LatLng constructor expects to be given two numbers, not one
object.
Just use the passed LatLng object directly.
alert( location.toString() );
--
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.