Hello,
On v2.x, I have the following issue: the lng() function of GLatLng
returned to handler of getNearestPanoramaLatLng() is sometimes given
as a String rather than a Number as it should be.
Please, run code sample below to reproduce.
Let me know if I make a mistake or what
regards
didier
testGoogle : function () {
// Paris (Louvre)
var lat= 48.860056;
var lng= 2.335582;
//
var paris = new GLatLng(lat,lng);
var client = new GStreetviewClient();
var callback = function (latlng) {
var lat = latlng.lat();
alert('lat = ' + lat + ' - typeof(lat):
' + typeof lat);
var lng = latlng.lng();
alert('lng = ' + lng + ' - typeof(lng):
' + typeof lng);
return;
};
client.getNearestPanoramaLatLng(paris,callback);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---