Answer the question
In order to leave comments, you need to log in
How to reduce ymaps cluster icon size?
Hello.
I use ObjectManager to display labels with clustering. It is not clear how to reduce the size (visually the icon itself) of the cluster. The ObjectManager description says that for Options
You can set all the options specified in the Clusterer description, except for the hasBalloon and hasHint options.
Options for clusters are specified with the cluster prefix.
options.gridSize
new ymaps.ObjectManager({
clusterize: true,
clusterGridSize: 2, // не работает ни с каким значением
geoObjectOpenBalloonOnClick: false
});
An array describing the icons for the default cluster implementation. Description of the icon is an object with fields
href - link to the image;
size - array of two numbers - icon size in pixels;
...
Answer the question
In order to leave comments, you need to log in
To change the clusterer grid, use gridSize: 2 instead of clusterGridSize: 2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question