panorama.createPlayer
Static function.
Searches for a panorama near the specified point. If at least one is found, it creates a panorama player with this panorama.
Returns a promise object that will be resolved by the instance of the class panorama.Player or rejected with the error description.
{ vow.Promise } panorama.createPlayer(element, point[, options])
Parameters:
Parameter |
Default value |
Description |
— |
Type: HTMLElement|String A reference to the HTML element that will contain the player, or the ID of this HTML element. |
|
— |
Type: Number[] The point for searching for nearby panoramas. |
|
— |
Type: Object Options. |
|
'auto' |
Type: Number[]|String Direction of view in the format |
|
'yandex#panorama' |
Type: String The layer to search for panoramas. There are two layers available:
|
|
'auto' |
Type: Number[]|String The angular dimensions of the field of view in the format |
* Mandatory parameter/option.
Mandatory parameter/option.