Colleagues how to set a hint in clusters. I have 15 objects in a cluster, I know that. I need to install Hint so as not to open the cluster and find out what's inside, and see everything at the prompt. Clusters are created automatically. Help is not all understood, I looked at all the examples, I ask for help.

if (e.get('type') == 'mouseenter') { //курсор над кластером, создадим новый хинт! var objectId = e.get('objectId'); var cluster = MySuperObjectManager.clusters.getById(objectId); if (cluster) { cluster.hintContent='123....'; cluster.hasHint=true; //как показать хинт над кластером? //cluster.hint.open(); - не работает } } 

    1 answer 1

    It is necessary to set hasHint for clusters in the objectManager, then the hint will appear itself when you hover the mouse.

    In addition, you need to install not cluster.hintContent, but cluster.properties.hintContent:

     om = new ymaps.ObjectManager({ clusterize: true, gridSize: 32, clusterHasHint: true }); map.geoObjects.add(om); om.add(getData()); om.events.add('mouseenter', e => { var cluster = om.clusters.getById(e.get('objectId')); if(!cluster){ return; } cluster.properties.hintContent = cluster.features.map(feature => { return feature.properties.hintContent; }).join('<br/>'); }); 

    Example: http://jsfiddle.net/pbneq1dw/

    • Keyten, thanks !!! my mistake was not to install - clusterHasHint: true , and properties lost sight !!! Thank you very much! - Yuri