On Jun 27, 6:06 am, abanjo <[email protected]> wrote:
> Hi all,
> i'm doing a simple thing.
> When the "pov_changed" event fire, i want to update the orientation of
> a marker ( a simple arrow ) on my map.
> So, i use this code:
>
>    "myPano.getPov().heading;"
>
> i expect that the value returned is between 0 and 360, but it's not :-
> (
> In my code i receive values greather then 360 (also more than 2000..)
>
> How does it works exactly?
> How i can convert it in a 360 degree orientation?

Have you seen this example:
http://code.google.com/apis/maps/documentation/javascript/examples/streetview-events.html

My guess is that if you want the result to be 0 <= angle < 360; you
need to do that programatically by adding or subtracting 360 until it
falls in the range you like (or for that range use angle%360).

  -- Larry



>
> Thanks
> Davide

-- 
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