A
A
Arina2019-02-02 19:13:03
Yandex maps
Arina, 2019-02-02 19:13:03

How to hide the balloon (label) on the map when clicked?

Friends, how to hide the baloon (label) on the map?
yandex map 2.1
map:
var map = new ymaps.Map("map", {...
note, there is a button:
<a id="btn_click" href="#">test</a>
and a variable with a label var cord = 56.023585, 92.775029;
the label is already displayed on the map, as when clicking on the button btn_click, hide (remove) the label cord from the map, there is a par.-r setOptions('visible'... but I don't know how to use it!

$('body').on('click', '#btn_click', function() {
var cord = 56.023585, 92.775029;


});

do not advise documentation, too much information, no time!
I would be very grateful for any answer!

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