K
K
Kirill_Lee2015-03-01 16:59:50
JavaScript
Kirill_Lee, 2015-03-01 16:59:50

How to determine the number of tags in each cluster in Yandex Maps clusters?

Good afternoon! I'm trying to set up YaMap, it will have a fairly large number of objects, but in a certain city there should not be more than 5 tags. How do I inform the user that there are "no places" in this city (i.e. there are already 5 objects in this cluster / region), you need to either change the label style under this condition, or indicate this in balloons.
How to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Sysoletin, 2015-03-01
@Kirill_Lee

cluster.getGeoObjects() will return an array with all the objects in the given cluster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question