N
N
Nikita Shinkevich2020-01-29 19:10:43
Yandex maps
Nikita Shinkevich, 2020-01-29 19:10:43

Api Yandex.Maps, how to disable balloon closing?

Friends, there is a map on the site. API version 2.1.74 is connected, the map script is in a separate .js file. When the map is initialized, one single balloon automatically opens: myBaloonSpb.balloon.open();

I need to prevent the user from closing this balloon. Naturally, I indicated that balloonCloseButton: false, but when you click on the balloon itself, it closes. Sometimes users do it by accident.

What parameter and where to shove so that the balloon that opens when the map is initialized remains open, despite the user's clicks?

UPD: in my case, the balloon is a custom icon, moreover, when the balloon is opened, it remains visible. So the design concept requires alas ((How to be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question