A
A
altkov2021-10-08 00:01:04
JavaScript
altkov, 2021-10-08 00:01:04

Why doesn't iframe work with Yandex panorama on iPhone?

There is an iframe:

<iframe src="https://yandex.ru/map-widget/v1/-/CCUqqTwMPC" width="560" height="400" frameborder="1" allowfullscreen="true" style="position:relative;"></iframe>


On a PC, on an android it works fine, on an iPhone (browserstack emulator) it's just a white screen.
(Not a display issue, the inner HTML iframe doesn't even have a main canvas.)
Doesn't even work on a blank page.
Is this a Yandex problem or what?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
altkov, 2021-10-14
@altkov

Yandex knows about the problem, but when they decide it is a question.
The solution is to use the Yandex Maps API
https://yandex.ru/dev/maps/jsapi/doc/2.1/dg/concept...

If the API does not find the panorama, like mine

У меня не находило панораму, потому что координаты были не в том порядке записаны.
(Надо было в обратном от того, который в URL панорамы в Яндекс Картах.)

UPD: Yandex says that the problem is solved

A
Aetae, 2021-10-08
@Aetae

Old iPhones sometimes ban Yandex api. Poke the shield, turn off the security and check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question