Answer the question
In order to leave comments, you need to log in
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;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question