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:

Methods

type() → {string}

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

See also Stage#registerRenderer.

Implements:
Returns:
Type
string

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>