下面的例子可以让你调用预定义的全景图来测试这个全景图插件。点击下面的按钮来查看效果。

To see this panorama, just hit the link below: currently, the div has a height of 0 pixel but Photo Sphere Viewer will increase it to 500 pixels.

调用预定义的全景图

Note that the panorama is here given as a relative path, but you can give to Photo Sphere Viewer an absolute one or an URL pointing to another website if this website allows CORS.

通过下面的按钮你可以上传自己电脑上的全景图来查看效果。代码使用FileReader API,非常简单,可以查看example1.js文件。