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

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 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.

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

Parameters:

ParameterDefault valueDescription
point*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number[]

The point for searching for nearby panoramas.

options

Type: Object

Options.

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.