---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.2
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/panorama.locate.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/panorama.locate.md
  - href: https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/panorama.locate.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt?revision=r21950234
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt?revision=r21950234

# panorama.locate

Static function.

Searches for a panorama at the specified point and layer. The result of the query is an array of found panoramas, represented as [Panorama](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Panorama.md) objects.

**Returns** the promise object that will be resolved by an array of found panoramas (if no panoramas found, the array will be empty) or rejected with the error description.

```javascript
{ vow.Promise } panorama.locate(point[, options])
```

**Parameters:**

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

The point for searching for nearby panoramas. ||
|| [`options`](#param-options) | — | Type: Object

Options. ||
|| [`options.layer`](#param-options.layer) | 'yandex#panorama' | Type: String

The layer to search for panoramas. There are two layers available: 
- yandex#panorama - Land panoramas,
- yandex#airPanorama - Aerial panoramas. ||
|#

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.