# Getting Started
# Install Photo Sphere Viewer
# With npm or yarn
npm install photo-sphere-viewer yarn add photo-sphere-viewer
# Via CDN
Photo Sphere Viewer is available on jsDelivr
You can also download the latest release
- promise-polyfill for IE compatibility (use
# Your first viewer
Include all JS & CSS files in your page manually or with your favorite bundler and init the viewer.
If your image is not covering a full 360°×180° sphere, it will be deformed. You can fix it by providing cropping data.
Previous version of Photo Sphere Viewer had a caching system, which was buggy and thus disabled by default.
Photo Sphere Viewer 4 uses THREE.js Cache, enabled by default. You can disable this cache by calling
THREE.Cache.enabled = false; after importing Photo Sphere Viewer.