Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces
2.1.52 (release candidate)
collection
interactivityModel
Interfaces

IPanoramaTileLevel

Interface for describing zoom levels of the panorama image.

Constructor | Methods

Constructor

IPanoramaTileLevel()

Methods

NameReturnsDescription
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:

ParameterDefault valueDescription
x*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number

Horizontal index of the tile.

y*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number

Vertical index of the tile.

* Mandatory parameter/option.