I\'m currently working on a simple 3D panorama viewer for a website. For mobile performance reasons I\'m using the three.js
CSS3 renderer. This requires a cube
There are various representations of environment maps. Here is a nice overview.
Overview - Panoramic Images
If you use Photosphere (or any panorama app for that matter), you most likely already have the horizontal latitude / longitude representation. You can then simply draw a textured three.js SphereGeometry. Here is a tutorial on how to render earth.
Tutorial - How to Make the Earth in WebGL?
Best of luck :).