Class: EquirectGeometry

EquirectGeometry(levelPropertiesList)

A Geometry implementation suitable for equirectangular images with a 2:1 aspect ratio.

Constructor

new EquirectGeometry(levelPropertiesList)

Parameters:
Name Type Description
levelPropertiesList Array.<Object>

Level description

Properties
Name Type Description
width number

Level width in pixels

Implements:

Members

type

The geometry type, used by the Stage to determine the appropriate renderer for a given geometry and view.

Known values are "cube", "equirect" and "flat".

See also Stage#registerRenderer.

Properties:
Type Description
string
Implements:

Methods

visibleTiles(view, level) → {Array.<Tile>}

Return the set of visible tiles for the given view and level. If a result array is supplied, it is filled in with the result and returned. Otherwise, a fresh array is returned.

Parameters:
Name Type Description
view View
level Level
Implements:
Returns:

result

Type
Array.<Tile>