Links being rendered in arbitrary directions in StreetView app

57 views
Skip to first unread message

Jason

unread,
Aug 13, 2012, 4:36:11 PM8/13/12
to google-map...@googlegroups.com
How does StreetView determine which direction is north?

I have a series of panoramas with links between them.  These panoramas have GPS coordinates associated with them and I use them to calculate the compass bearings between two links.

However, it seems that the links themselves are being rendered in arbitrary directions regardless of the heading value.

In my panorama options, I've set the default heading to 0.  If this is combined with a panorama heading of 0, the view is rendered from the center of the panorama.  Unfortunately, as my link bearings are based off GPS coordinates, if there is no constant north value, the links get rendered all over the place.

How would I solve this?

Marc Ridey

unread,
Aug 13, 2012, 7:12:43 PM8/13/12
to google-map...@googlegroups.com
You probably need to adjust the originHeading on your custom panoramas.


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/fypV1kZhw_wJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Jason

unread,
Aug 14, 2012, 5:52:41 AM8/14/12
to google-map...@googlegroups.com
Thank you.  But what is the difference between originHeading and centerHeading, and how does that affect the direction of the links?

Marc Ridey

unread,
Aug 14, 2012, 5:59:05 AM8/14/12
to google-map...@googlegroups.com
My bad, originHeading doesn't exist anymore and has been replace with centerHeading. CenterHeading is the heading of the view at the center of the custom panorama you created. So if the middle of the panorama image is the North view with West to the left and East to the right, set centerHeading to 0. 

On Tue, Aug 14, 2012 at 7:52 PM, Jason <jason...@maine.edu> wrote:
Thank you.  But what is the difference between originHeading and centerHeading, and how does that affect the direction of the links?

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
Reply all
Reply to author
Forward
0 new messages