1.安装
npm install photo-sphere-viewer --save
2.引入
这里用到了标记插件,需要额外引入
import {
Viewer } from "photo-sphere-viewer";
import "photo-sphere-viewer/dist/photo-sphere-viewer.css";
//标记插件
import {
MarkersPlugin } from "photo-sphere-viewer/dist/plugins/markers";
import "photo-sphere-viewer/dist/plugins/markers.css";
3.使用
this.PSV = new Viewer({
container: document.getElementById(&