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

# panorama.Base.createPanorama

Static function.

**Returns** panorama instance.

```javascript
{ IPanorama } panorama.Base.createPanorama(params)
```

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`params`](#param-params)[*](*star) | — | Type: Object

Panorama parameters. ||
|| [`params.angularBBox`](#param-params.angularBBox)[*](*star) | — | Type: Number[]

Angular ||
|| [`params.coordSystem`](#param-params.coordSystem) | — | Type: [ICoordSystem](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICoordSystem.md)

Coordinate system that the panorama position is set in. By default, it uses [coordSystem.geo](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/coordSystem.geo.md). ||
|| [`params.name`](#param-params.name) | '' | Type: String

Name of the panorama. ||
|| [`params.position`](#param-params.position)[*](*star) | — | Type: Number[]

The position of the panorama. ||
|| [`params.tileLevels`](#param-params.tileLevels)[*](*star) | — | Type: [IPanoramaTileLevel](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IPanoramaTileLevel.md)[]

Array of panorama image detail levels. ||
|| [`params.tileSize`](#param-params.tileSize)[*](*star) | — | Type: Number[]

Size of the panorama image tiles. ||
|#

\* Mandatory parameter/option.

**Example:**

```javascript
var player = new ymaps.panorama.Player(
    'player',
    ymaps.panorama.Base.createPanorama({
        coordSystem: ymaps.coordSystem.cartesian,
        // Let's put our panorama in the center of the coordinate system.
        position: [0, 0],
        name: 'My panorama',
        // We'll make our panorama fully spherical.
        angularBBox: [0.5 * Math.PI, 2 * Math.PI, -0.5 * Math.PI, 0],
        tileSize: [512, 512],
        tileLevels: [{
            getTileUrl: function (x, y) {
                return '/' + x + '/' + y + '.jpg';
           },

            getImageSize: function () {
                return [4096, 2048];
            }
        }]
    })
);
```

[*star]: Mandatory parameter/option.