Thanks a lot, clickedLat = location.lat(); was the solution.
On 28 Jan., 23:17, Michael Geary <[email protected]> wrote: > 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 onwww.volksnav.com/iMunich/?lat=48.2&lon=11.7I 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.
