It happens using the version 3.4 but not if you use the version 3.3 On 17 feb, 14:38, bgacias <[email protected]> wrote: > I'm loading the Google Maps JavaScript V3 using: > > script.src = "http://maps.google.com/maps/api/js? > v=3&sensor=false®ion=ES"; > > in my javaScript I have these lines: > > var lat = parseFloat("39.5775"); > var lng = parseFloat("2.714105"); > alert("parseLatLng" + new google.maps.LatLng(lat, lng)); > alert("parseLatLng with 10 decimals " + new > google.maps.LatLng(lat, lng).toUrlValue(10)); > > the firs alert shows : > parseLatLng(39.5775, 2.7141050000000178) > > and the second shows: > parseLatLng with 10 decimals 39.5775,2.714105 > > Why the longitude of the LatLng object is 2.7141050000000178 and not > 2.714105? > > Thanks in advance
-- 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.
