Thank you for your help!
On Oct 17, 12:37 am, Mike Williams <[email protected]> wrote:
> What you have to do is listen for GStreetviewPanorama "initialized"
> events. These events return a GStreetviewLocation object which contains,
> among other things, a latlng property.
>
> Something like this:
>
> var panoLocation; // global
>
> GEvent.addListener(pano,"initialized",function(location) {
> panoLocation = location.latlng;
>
> });
>
> So, when the user clicks the [save] button, you've already got a copy of
> the location stored in the panoLocation variable.
>
> [In the unlikely event that you're using an API version older than
> v2.170, be aware that back then the "initialized" event didn't trigger
> for the first position of the panorama, so you would have had to set the
> initial value of panoLocation yourself to cope with the situation where
> the user didn't need to walk the panorama, but only pan, yaw and zoom
> it.]
>
> --
> Mike Williamshttp://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
-~----------~----~----~----~------~----~------~--~---