Hello all!
Before I'll start to explain my question, I would like to say thanks
for any person who can help me :)
The problem is in GStreetviewPanorama.
I need to show GStreetviewPanorama on a page with usual 2d map. Lat
and Lon I have in digits. Example of this function here:
function initialize(lat,lon) {
var myPano = new GStreetviewPanorama(document.getElementById
("pano"));
fenwayPark = new GLatLng(lat,lon);
var Gclient = new GStreetviewClient();
myPOV = {yaw:370.64659986187695,pitch:-20};
Gclient.getNearestPanorama(fenwayPark, function (point) {
myPano.setLocationAndPOV(point, myPOV);
});
//myPano.setLocationAndPOV(fenwayPark, myPOV);
GEvent.addListener(myPano, "error", handleNoFlash);
}
All works perfect when I use just myPano.setLocationAndPOV(fenwayPark,
myPOV); (disable now) and when I have this location in
GStreetviewPanorama.
But I would like to use getNearestPanoramaLatLng(latlng, callback)
method if I have nothing with start (first) lat and lon and show
panorama of place close-by this place.
Now I have error:
a.ia is not a function
[Break on this error] sv.prototype.oz=function(a,b){var
c=this...s.Fa.send(c,pv(a.ia(),b),rv(a.ia(),b))};
Can someone tell me where is the problem?
Thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---