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

# IPanorama

Interface for describing a panorama.

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

## Constructor {#constructor-summary}

```javascript
IPanorama()
```

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [getAngularBBox](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getAngularBBox)() | Number[] | Returns spherical coordinates that define the area covered by the image on the panoramic sphere. Coordinates are specified in the format `[thetaTop, phiRight, thetaBottom, phiLeft]` (the same as CSS). ||
|| [getConnectionArrows](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getConnectionArrows)() | [IPanoramaConnectionArrow](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaConnectionArrow.md)[] | Returns array of connection arrows on the panorama. ||
|| [getConnectionMarkers](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getConnectionMarkers)() | [IPanoramaConnectionMarker](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaConnectionMarker.md)[] | Returns array of connection markers on the panorama. ||
|| [getCoordSystem](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getCoordSystem)() | [ICoordSystem](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICoordSystem.md) | Returns the coordinate system that is used for defining positions of the panorama and all the associated markers and connections. ||
|| [getDefaultDirection](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getDefaultDirection)() | Number[] | Returns default direction of view. It will be used by the player when opening the panorama. ||
|| [getDefaultSpan](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getDefaultSpan)() | Number[] | Returns default size of the viewing area. It will be used by the player when opening the panorama. ||
|| [getGraph](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getGraph)() | [IPanoramaGraph](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaGraph.md)\|null | Returns the graph of panoramas connected to the current panorama for making quick transitions. ||
|| [getMarkers](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getMarkers)() | [IPanoramaMarker](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaMarker.md)[] | Returns array of markers on the panorama. ||
|| [getName](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getName)() | String | Returns the name of the panorama displayed by the player in the interface. ||
|| [getPosition](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getPosition)() | Number[] | Returns the location of the panorama in the coordinate system set in the options. Set in the format `[lon, lat, height]`, `[lat, lon, height]` or `[x, y, height]` depending on the coordinate system and order. `height` – the height of the panorama in meters, relative to some level (not necessarily sea level). ||
|| [getTileLevels](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getTileLevels)() | [IPanoramaTileLevel](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaTileLevel.md)[] | Returns array of zoom levels for the panorama image. ||
|| [getTileSize](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanorama.md#getTileSize)() | Number[] | Returns the size of tiles that the panorama image is divided into.||
|#

## Methods details {#method_detail}

### getAngularBBox {#getAngularBBox}

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

**Returns** spherical coordinates that define the area covered by the image on the panoramic sphere. Coordinates are specified in the format `[thetaTop, phiRight, thetaBottom, phiLeft]` (the same as CSS).

### getConnectionArrows {#getConnectionArrows}

```javascript
{IPanoramaConnectionArrow[]} getConnectionArrows()
```

**Returns** array of connection arrows on the panorama.

### getConnectionMarkers {#getConnectionMarkers}

```javascript
{IPanoramaConnectionMarker[]} getConnectionMarkers()
```

**Returns** array of connection markers on the panorama.

### getCoordSystem {#getCoordSystem}

```javascript
{ICoordSystem} getCoordSystem()
```

**Returns** the coordinate system that is used for defining positions of the panorama and all the associated markers and connections.

### getDefaultDirection {#getDefaultDirection}

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

**Returns** default direction of view. It will be used by the player when opening the panorama.

### getDefaultSpan {#getDefaultSpan}

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

**Returns** default size of the viewing area. It will be used by the player when opening the panorama.

### getGraph {#getGraph}

```javascript
{IPanoramaGraph|null} getGraph()
```

**Returns** the graph of panoramas connected to the current panorama for making quick transitions.

### getMarkers {#getMarkers}

```javascript
{IPanoramaMarker[]} getMarkers()
```

**Returns** array of markers on the panorama.

### getName {#getName}

```javascript
{String} getName()
```

**Returns** the name of the panorama displayed by the player in the interface.

### getPosition {#getPosition}

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

**Returns** the location of the panorama in the coordinate system set in the options. Set in the format `[lon, lat, height]`, `[lat, lon, height]` or `[x, y, height]` depending on the coordinate system and order. `height` – the height of the panorama in meters, relative to some level (not necessarily sea level).

### getTileLevels {#getTileLevels}

```javascript
{IPanoramaTileLevel[]} getTileLevels()
```

**Returns** array of zoom levels for the panorama image.

### getTileSize {#getTileSize}

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

**Returns** the size of tiles that the panorama image is divided into.