Answer the question
In order to leave comments, you need to log in
How to catch the event of opening a balloon on Yandex maps and clicking on a list item inside?
All geo objects are located in the this.objectManager.objects object, you need to attach the this.open method to open the balloon and select (click) on the list element inside the balloon - if there are several elements at the same address.
Answer the question
In order to leave comments, you need to log in
Like this:
// узнаем текущий активный объект (сразу выбран в меню табов)
const currentActiveObject = this.objectManager.clusters.state.get('activeObject');
// создаем монитор и следим за полем 'activeObject'
this.activeObjectMonitor = new ymaps.Monitor(this.objectManager.clusters.state);
this.activeObjectMonitor.add('activeObject', (newActiveObject) => {
console.log(newActiveObject);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question