Photo Sphere Viewer使用攻略

2024-10-13 19:18:34

1、使用该全景图插件时要引入three.min.js和photo-sphere-viewer.min.js文件。<script src="js/three.min.js"></script><script src="js/photo-sphere-viewer.min.js"></script>

Photo Sphere Viewer使用攻略

3、要初始化该全景图插件,可以创建一个新的PhotoSphereViewer对象,然后在这个对象中插入一个参数对象,有两个参数是必须设置的:var PSV = new PhotoSphereViewer({ // Path to the panorama panorama: '1.jpg', // Container container: div});

Photo Sphere Viewer使用攻略

8、浏览器兼容性,如下图所示:

Photo Sphere Viewer使用攻略
猜你喜欢