Installation
Usage
Load the Settings plugin before the Resolution plugin, then provide the list of available resolutions.Configuration
List of available resolutions. Not updatable — use
setResolutions() instead.Each resolution object has the following properties:| Property | Type | Description |
|---|---|---|
id | string | Unique identifier |
label | string | Display name shown in the settings panel |
panorama | any | Panorama value passed to viewer.setPanorama() |
panoData | PanoData | Optional panorama data |
ID of the resolution to load initially. Falls back to the first resolution if not set.
Show the current resolution ID as a badge on the settings button. Not updatable after init.
Localization strings merged with the main viewer
lang object.Methods
setResolutions(resolutions, defaultResolution?)
Replaces the available resolutions. Optionally pass a new defaultResolution ID.
