I'll go ahead and answer my own question. It appears that you only
get the changed lat/lng by calling GStreetviewClient.getPanoramaById.
Oddly, pitch, yaw, and zoom are not set in the data returned by that..
The following code is working for me:
streetviewClient.getPanoramaById(pano.getPanoId(), function(data) {
$('organization_location_camera_lat').value =
data.location.latlng.lat();
$('organization_location_camera_lng').value =
data.location.latlng.lng();
$('organization_location_camera_pitch').value =
pano.getPOV().pitch;
$('organization_location_camera_yaw').value = pano.getPOV().yaw;
$('organization_location_camera_zoom').value = pano.getPOV().zoom;
});
-P
On Feb 18, 2:09 pm, Paul Canavese <[email protected]> wrote:
> I want to save an exact GStreetview/panorama after a user has
> navigated to it. Capturing the POV (pitch/yaw/zoom) works fine.
> However, after the user moves the camera position (by clicking on the
> arrows on the ground), the lat and lng don't change as I would expect.
>
> I am querying the original GStreetviewPanorama to get the values:
>
> $('organization_location_camera_lat').value =
> pano.getLatLng().lat();
> $('organization_location_camera_lng').value =
> pano.getLatLng().lng();
> $('organization_location_camera_pitch').value = pano.getPOV().pitch;
> $('organization_location_camera_yaw').value = pano.getPOV().yaw;
> $('organization_location_camera_zoom').value = pano.getPOV().zoom;
>
> Is a new GStreetviewPanorama being created when the arrows are
> clicked, and if so how can I access it?
>
> Thanks,
>
> Paul
--
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.