The Yandex Maps API documentation tells how to disable this behavior for Clusterer and for individual clusters - but nothing is said about ObjectManager separately. I tried to use manager.clusters.options.set - but either this method does not work, or I do not write the parameter name correctly.

Tried to do this:

  var map = new ymaps.Map("map", { center: [64.56572586, 102.06531243], zoom: 3, controls: [], }) var manager = new ymaps.ObjectManager({ clusterize: true, }) manager.clusters.options.set('disableClickZoom', true) manager.clusters.options.set('clusterDisableClickZoom', true) map.geoObjects.add(manager); manager.add([1,2].map(function (index) { return { id: index, type: 'Feature', geometry: { type: 'Point', coordinates: [64.56572586, 102.06531243], } } })) 

Similar code using Clusterer and GeoObject works, but I would like to use ObjectManager

    1 answer 1

    From the office. documentation:

    Options for clusters are specified with the cluster prefix. The list of options is specified in the description of the ClusterPlacemark class;

    That is, it will be like this:

     objectManager = new ymaps.ObjectManager({ clusterize: true, clusterDisableClickZoom: true }); 

    True, the default click processing function starts (it displays the list of objects in the cluster). How to disable it - I do not know.

    • Thank you, this is exactly what was needed. Indeed, if you look at the section "Reference Javascript API" - then the solution is immediately. But in the Developer's Guide, something strange is written ... - Pavel Mayorov
    • PS and the "default" function of opening a openBalloonOnClick: false disabled via openBalloonOnClick: false (with the required prefixes) - Pavel Mayorov