I am a noob here, so I apologize for the easy question. I am trying
to integrate streetview into my existing app.
I have the the street view div showing successfully at its default
location. I would like to be able to pass a new lat lng to the new
function (called changepano) and have the streetview update to the new
location.
The lat & lng is getting passed successfully, but the steetview div
stays the same.
Can someone take pity and help me out?
Thanks..
Jason
var myPano;
function initpano() {
var fenwayPark = new GLatLng(42.345573,-71.098326);
panoramaOptions = { latlng:fenwayPark };
myPano = new GStreetviewPanorama(document.getElementById
("pano"), panoramaOptions);
GEvent.addListener(myPano, "error", handleNoFlash);
}
function changepano(lat, lng) {
var newloc= new GLatLng(lat,lng);
myPano.setLocationAndPOV(newloc);
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---