1. On this line,
function sv_POV(myPano){
you set a local "myPano" variable to be the Event() Object that gets
passed by your addListener, but way you want is the global "myPano",
which is your GStreetVirePanorama() Object. Browser Event()s don't have
the .getPOV() Method.
Try changing that line to
function sv_POV(){
because you don't need access to the Event()
2. document.getElementById('sv_camera_POV').value expects to be given a
String(), not a GPov() object.
I suggest either
var pov = myPano.getPOV();
document.getElementById('sv_camera_POV').value =
pov.yaw+","+pov.pitch+","+pov.zoom
Or have three hidden fields, one for each of yaw, pitch and zoom.
--
Mike Williams
http://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---