Set a breakpoint on this line of code:

var clickedLocation = new google.maps.LatLng(location);

and look at the value of 'location'. It's *already* a LatLng - you don't
need to run it through the LatLng() constructor again.

-Mike

On Fri, Jan 28, 2011 at 1:05 AM, VolksNav <[email protected]> wrote:

> Hi,
>
> never change a winning team: I was so happy with V2.
>
> Like on www.volksnav.com/iMunich/?lat=48.2&lon=11.7 I have now
> difficulties to get separated Lat and Lon of the clicked location.
>
> With
>
> -       var clickedLocation = new google.maps.LatLng(location);
>
> and
>
> -      infoWindow.setContent("loc="+location)
>
> it is possible to read lat and lon together with a precision of
> nanometers (!!!) (did you know that?).
>
> With
>
> -    var clickedLat = clickedLocation.lat();
> or
> -    var clickedLat = parseFloat(clickedLocation.lat());
>
> the return is NaN. What is to do within V3?
>
>
>
> --
> 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.

Reply via email to