Answer the question
In order to leave comments, you need to log in
How can I disable the display of hidden labels in a cluster, or the clusters themselves based on their coordinates?
Good evening.
I hide labels outside the polygon with the following code:
geoObjects.forEach(element => {
if (myPolygon.geometry.contains(element.geometry._coordinates)) {
element.options.set('visible', true);
} else {
element.options.set('visible', false);
}
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