IPanoramaTileLevel

Interface for describing zoom levels of the panorama image.

Constructor | Methods

Constructor

IPanoramaTileLevel()

Methods

Name

Returns

Description

getImageSize()

Number[]

Returns the size of the entire image in pixels.

getTileUrl(x, y)

String

Gets the URL of the tile from its position in the panorama image. The position is set by a pair of indexes: horizontal and vertical. The horizontal index starts from the left at zero and increases to the right. The vertical index starts from the top of the image and increases going down.

Methods details

getImageSize

{Number[]} getImageSize()

Returns the size of the entire image in pixels.

getTileUrl

{String} getTileUrl(x, y)

Gets the URL of the tile from its position in the panorama image. The position is set by a pair of indexes: horizontal and vertical. The horizontal index starts from the left at zero and increases to the right. The vertical index starts from the top of the image and increases going down.

Returns the URL of the tile with the passed indexes.

Parameters:

Parameter

Default value

Description

x*

—

Type: Number

Horizontal index of the tile.

y*

—

Type: Number

Vertical index of the tile.

* Mandatory parameter/option.