Topic: Matching StreetView heading / pan values
Hi,
I'm trying to match the heading value of a 2D google streetview preview to pano pan values. I select a location on a map and then fetch the 2D preview using (as per a google sample):
https://maps.googleapis.com/maps/api/streetview?size=400x400&location=47.5763831,-122.4211769&fov=80&heading=90&pitch=0&key=MYKEY
Headings using this API match expected orientations of the resulting 2D preview images. I then fetch the pano at that location with the pano plugin. I expected the pano to load looking "north" by default.
Since my 2D map is not rotated I know this preview is looking east and I can verify this in the 2D preview image with heading of 90. If I take that heading value and set the streetView.pano.pan from the same location, it's not oriented the same at all. Also, the "north pan" value is unclear to me. It seems to represent some declination or camera angle? I'm using very few features, no keyboard/mouse/rotation controls. Just setting a pano from the downloader and pushing in the pan value I would like. I am assumed the 0/0 north pan/pan is looking "north" along +x on the pano sphere? But this does not always work as I expect. (for example, north pan loaded as 246.34, but "north" is a relative pan of -127)
I'd appreciate any help trying to match heading to the pano pan value(s) !
Cheers,
Stephen