You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, March 5th 2010, 3:16pm

google maps spots and hotspots

Hello,

Issue is: how do i ensure that the rotation of the radar (on google maps) is in sync with the rotation of the tour. When a hotspot is visible on the tour while rotating, the spot on google maps should come within the radar and vice-versa.

I would assume two basic requirements for this to happen:
1- Geo-coding of the locations should be proper.
2- Hot spots should be placed in proper locations.

From searching the forums, i have gathered that "heading" attribute of the "spot" tag too is of great importance. How do i get hold of the value for that attribute? Also, is it possible to get an approximate value for the "heading" attribute based on the lat/lng pairs of two points? Something along the lines of calculating the angle between the two points assuming that one of them in on the x axis.

Thank you.

2

Monday, March 8th 2010, 9:46am

Hi,

here is a small help to find the heading:
radar orientation

Quoted

is it possible to get an approximate value for the "heading" attribute based on the lat/lng pairs of two points?
you will always also need an information about the heading/orientation of the pano image itself (e.g. where in the pano is north) to be able to calculate it,

best regards,
Klaus

3

Thursday, March 11th 2010, 4:10pm

Thanks for the reply, Klaus.
I took the easy way out by giving an interface to the client where s/he can set the radar orientation manually.

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Thursday, March 11th 2010, 4:58pm

examples please? sounds interesting.

5

Friday, March 12th 2010, 8:47am

To begin with set the hlookat and vlookat of the view tag to 0. For every spot tag which are children of the google maps plugin, set the heading to -90 so that every spot will be pointing to North (top of the screen) by default. Let the user view the tour and rotate the panorama and keep a tab on the radar on the google maps. Based on when the hotspot is visible on the tour and when the spot is coming into focus of the radar, change the value of the heading.

If the radar should be oriented towards East (right of the screen), it's value should be 0, for West (left of the screen) it should be 180/-180, for South(bottom of the screen) it should be 90, for North(top of the screen) it should be -90 as mentioned earlier.

Similar threads