Installation
This plugin requires its stylesheet. Import
@photo-sphere-viewer/compass-plugin/index.css or add the CDN link to your <head>.Usage
Configuration
Size of the compass widget. Accepts any CSS unit:
px, rem, vh, etc. Updatable.Position of the widget. Accepts combinations of
top, center, bottom and left, center, right. Updatable.Allow clicking on the compass to rotate the viewer. Updatable.
Reset the viewer pitch to
defaultPitch when navigating via the compass. Updatable.Small dots displayed on the compass. Each hotspot requires a position (
yaw/pitch or textureX/textureY) and an optional color that overrides hotspotColor. Updatable.Custom SVG string used as the compass background. Must be square. Updatable.
Color of the cone representing the current field of view. Updatable.
Color of the cone shown while clicking to navigate. Updatable.
Default color for hotspots that do not define their own
color. Updatable.Additional CSS class(es) added to the compass element. Updatable.
