Installation
Usage
Pixel positions with this adapter require an additional
textureFace attribute (example: { textureFace: 'front', textureX: 200, textureY: 800 }). The position refers to the full size of the face (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.
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
Size in pixels of one face of the cube.
Number of columns and rows on each face. Each tile must be square. Must be a power of two (
2, 4, 8, 16). Maximum value is 16.Function that returns the URL for a given tile. The
face argument is one of 'left', 'front', 'right', 'back', 'top', 'bottom'. Return null to skip loading a specific tile.Set to
true if the top and bottom faces are not correctly oriented. See the cubemap adapter for context.Low-resolution complete panorama image to display while tiles are loading. Accepts the same format as the cubemap adapter panorama options.
Multiple levels
Provide multiple tile configurations to serve different resolutions at different zoom levels. The best level is chosen automatically.Array of tile level configurations. Each element has
faceSize and nbTiles.Function that returns the URL for a given tile at a given level index. The
face argument is one of 'left', 'front', 'right', 'back', 'top', 'bottom'. Return null to skip loading a specific tile.Set to
true if the top and bottom faces are not correctly oriented.Low-resolution complete panorama to display while tiles are loading.
