Hi.
Let me provide some background before I ask the question.
I have created a series of virtual tours running on Apple's QuickTime
plugin. Each location is represented by a 360 degree QTVR panorama,
and plotted on a Google map / earth plug in using very basic code.
....
map = new GMap2(document.getElementById("map_canvas"));
eval("map.setCenter(new GLatLng("+LatLng+"),14)");
map.setUIToDefault();
map.removeMapType(G_SATELLITE_MAP);
map.addMapType(G_SATELLITE_3D_MAP);
...
where LatLng is a variable containing, unsurprisingly, the coordinates
of the location.
I'm invoking Google Maps first with the option to load Google Earth so
that there is some functionality even without the Google Eart plug
installed.
This all works very nicely. I even add overlays for the route, a map,
etc.
See
www.virtualmountains.co.uk/comapedrosa.
Question!
I would like to add some javascript / API to rotate the map around its
centre, such that when you look north on the QTVR, north is at the top
of the map, when the centre of the QTVR is at 45 degrees, the top of
the map is at 45 degrees.
I have studied the Google Earth and Google Maps API to find how to
achieve this functionality, but cannot find a way to.
Can any one help?