M
M
Maxim2015-12-11 17:47:36
Yandex
Maxim, 2015-12-11 17:47:36

How to use Yandex Maps events?

There is a userclose
event As I understand it, it fires when the user closes the balloon, The
question is how can I catch this event and perform some action

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2015-12-16
@kisliymaxim

Issue resolved, thanks, the answer is:

myMap.balloon.events.add('userclose', function (e) {
     .....
     .....
     ....
});

N
norlin, 2015-12-16
@norlin

If I understood their API correctly , then event handlers are hung like this:

myBallon.events.add('userclose', function(){
    console.log(decodeURIComponent('%D0%BF%D1%83%D1%82%D0%B8%D0%BD%20%E2%80%93%20%D0%B2%D0%BE%D1%80'));
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question