Answer the question
In order to leave comments, you need to log in
How to zoom in on a cluster in Yandex Maps?
Hello!
Please tell me how, with clusterDisableClickZoom=true, to programmatically zoom in on a cluster on Yandex maps in the same way as it is done by clicking on it?
I try like this:
objectManager.clusters.events.add('click', function onObjectEvent (e) {
var objectId = e.get('objectId');
var obj = ObjectManager.clusters.getById(objectId);
if (myMap.getZoom()<16)
{
//приближаем кластер
map.setBounds( obj.getBounds() );
}else{
//Показываем балун
}
}
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