@photo-sphere-viewer/ scope.
Available plugins
Markers
Display images, HTML, SVG shapes, polygons, and polylines on the panorama with optional tooltips and click events.
Virtual tour
Link multiple panoramas together into an explorable virtual tour with navigation arrows and GPS support.
Gallery
Show a thumbnail gallery at the bottom of the viewer so users can navigate between panoramas.
Map
Display a custom image map overlay showing the viewer’s current position and optional hotspots.
Plan
Show a geographic map (OpenStreetMap or custom tile layer) with the panorama’s GPS position.
Autorotate
Automatically rotate the panorama after a period of inactivity.
Compass
Show a compass overlay indicating the current viewing direction.
Gyroscope
Use device gyroscope data to control the viewing direction on mobile devices.
Stereo
Display the panorama in stereoscopic VR mode for use with headsets.
Video
Control playback of video panoramas loaded with the equirectangular-video or cubemap-video adapters.
Overlays
Add static or video overlay images on top of the panorama.
Resolution
Allow users to switch between multiple resolutions of the same panorama.
Settings
Add a configurable settings panel to the viewer toolbar.
Visible range
Restrict the yaw, pitch, and zoom ranges the user can navigate to.
Installation
Each plugin is a separate package. Install the one you need:Using a plugin
Pass the plugin class to theplugins array when creating the Viewer. Plugins that accept configuration use the static withConfig method:
Accessing the plugin instance
After initialization, retrieve the plugin instance withgetPlugin to call methods and subscribe to events:
Updating options at runtime
Some plugins support updating their configuration after initialization usingsetOption or setOptions. Each plugin’s documentation notes which options are updatable:
