Answer the question
In order to leave comments, you need to log in
How to open cluster balloon on hover?
There is a map with a list of partners of the company:
window.PartnersListMap.prototype = {
init: function() {
var self = this;
self.createMap();
},
...всякие прочие методы PartnersListMap...
self.clusterer.events
.add('mouseenter', function (e) {
var target = e.get('target'),
clusterPlacemark = e.get('cluster'),
legend = {}; //Данные для легенды
console.log('cluster mouseenter ');
target.properties._data.geoObjects.forEach(function(partner){
if(!legend[partner.options._options.partnerType]){
legend[partner.options._options.partnerType] = [];
}
legend[partner.options._options.partnerType].push(partner.options._options.partnerId);
});
console.log(legend);
});
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