Installation
Usage
With this adapter, pixel positions refer to the full size of the panorama (the first level when using multi-level tiles).
Adapter configuration
Applies a blur filter to the base image (
baseUrl). This softens the low-resolution placeholder while tiles are loading.Shows a warning sign on tiles that cannot be loaded.
Applies antialiasing to high-resolution tiles.
The number of faces of the sphere geometry. See the equirectangular adapter for details.
Panorama options
Thepanorama option and the setPanorama() method accept either a single tile level configuration or a multi-level configuration for adaptive resolution based on zoom level.
Single level
Total width of the panorama in pixels. The height is always
width / 2.Number of columns. Must be a power of two (
4, 8, 16, 32, 64). Maximum value is 64.Number of rows. Must be a power of two (
2, 4, 8, 16, 32). Maximum value is 32.Function that returns the URL for a given tile. Return
null to skip loading a specific tile.URL of a low-resolution complete panorama image to display while tiles are loading. Strongly recommended for a good user experience.
Panorama cropping data associated with the low-resolution base image. Follows the same format as the
panoData configuration option.Multiple levels
Provide multiple tile configurations to serve different resolutions at different zoom levels. The best level is chosen automatically based on the current zoom and viewer size.Array of tile level configurations. Each element has
width, cols, and rows (same fields as single level).Function that returns the URL for a given tile at a given level index. Return
null to skip loading a specific tile.URL of a low-resolution complete panorama image to display while tiles are loading.
Panorama cropping data for the base image.
