Hi,

When you request the nearest panorama to a point, you receive the LatLng of
the panorama itself (inside it) and have the LatLng for which you requested
the nearest panorama, then you can use both to calculate the bearing. As of
now, you need to calculate this by yourself.

You might also be interested in this thread:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/e8cb5a8c98767745/

Cheers,
Miguel

On Tue, Jun 1, 2010 at 09:49, dbrb2 <[email protected]> wrote:

> Hello,
>
> I'm not sure whether the accuracy of the streetview system allows for
> this - a streetview set to a specific lat/lon, as well as a marker on
> the panorama at the same lat/lon.
>
> I assume that when I call the streetview.setPosition the nearest
> available streetview position is returned. Is there any way that I can
> automatically set the POV of my streetview so that when it loads, it
> is pointing towards the marker I have placed? Since both the marker
> and the panorama have been requested using the same lat/lon I can't
> calculate the bearing myself - unless I can find the actual lat/lon of
> the panorama position I have ended up at...
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to