---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaTileLevel.md
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/IPanoramaTileLevel.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/dev/jsapi-v2-1/doc/en/llms.txt

# IPanoramaTileLevel

Interface for describing zoom levels of the panorama image.

[Constructor](#constructor-summary) | [Methods](#methods-summary)

## Constructor {#constructor-summary}

```javascript
IPanoramaTileLevel()
```

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [getImageSize](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaTileLevel.md#getImageSize)() | Number[] | Returns the size of the entire image in pixels. ||
|| [getTileUrl](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaTileLevel.md#getTileUrl)([x](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaTileLevel.md#getTileUrl-param-x), [y](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaTileLevel.md#getTileUrl-param-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 {#method_detail}

### getImageSize {#getImageSize}

```javascript
{Number[]} getImageSize()
```

**Returns** the size of the entire image in pixels.

### getTileUrl {#getTileUrl}

```javascript
{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`](#getTileUrl-param-x)[*](*star) | — | Type: Number

Horizontal index of the tile. ||
|| [`y`](#getTileUrl-param-y)[*](*star) | — | Type: Number

Vertical index of the tile. ||
|#

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.