Class: EquirectangularTilesAdapter

PSV.adapters.EquirectangularTilesAdapter

new PSV.adapters.EquirectangularTilesAdapter (psv, options)

Adapter for tiled panoramas

Name Type Description
psv PSV.Viewer
options PSV.adapters.EquirectangularTilesAdapter.Options

Classes

Queue

Loading queue

Task

Loading task

Methods

createMesh ()

loadTexture (panorama)Promise.<PSV.TextureData>

Name Type Description
panorama PSV.adapters.EquirectangularTilesAdapter.Panorama
Returns:
Type Description
Promise.<PSV.TextureData>

setTexture ()

Applies the base texture and starts the loading of tiles

Type Definitions

PSV.adapters.EquirectangularTilesAdapter.Options Object

Properties:
Name Type Argument Default Description
showErrorTile boolean <optional>
true

shows a warning sign on tiles that cannot be loaded

baseBlur boolean <optional>
true

applies a blur to the low resolution panorama

PSV.adapters.EquirectangularTilesAdapter.Panorama Object

Configuration of a tiled panorama

Properties:
Name Type Argument Description
baseUrl string <optional>

low resolution panorama loaded before tiles

width int

complete panorama width (height is always width/2)

cols int

number of vertical tiles

rows int

number of horizontal tiles

tileUrl PSV.adapters.EquirectangularTilesAdapter.TileUrl

function to build a tile url

PSV.adapters.EquirectangularTilesAdapter.TileUrl (col, row)string

Function called to build a tile url

Name Type Description
col int
row int
Returns:
Type Description
string