L
L
Lumore2015-07-25 11:00:28
JavaScript
Lumore, 2015-07-25 11:00:28

Is it possible to prohibit the opening of the Yandex Maps balloon?

I create a mark on the map through the Placemark class, and add "balloonContent" to the array, in which I will write the id that is output from the database. How to disable the opening of the balloon when clicking on the Placemark?
Tried to do like this:

myMap.geoObjects.events.add('click', function () {
            return false;
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lumore, 2015-07-25
@Lumore

It turned out like this:

myMap.geoObjects.events.add('click', function () {
            myMap.balloon.events.close();
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question