M
M
Mikhail Smirnov2016-05-22 19:08:24
JavaScript
Mikhail Smirnov, 2016-05-22 19:08:24

How to close the balloon on click on the map?

How to close the balloon on click on the map, that is, in any of its areas except for the balloon itself?
Yandex API 2.1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-08-02
@fortoster83

map.events.add('click', e => e.get('target').balloon.close());

jsfiddle.net/axtjgfh9

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question