How to get an array of objects after filtering in Yandex.Maps? I try this:
flats.setFilter(filters); myMap.geoObjects.add(flats); alert('Количество отфильтрованных объектов на карте: ' + flats.objects.overlays.getLenght()); As if overlay is incorrectly specified
A similar question in the Yandex.Maps API club: https://yandex.ru/blog/mapsapi/kak-uznat-kolichestvo-elementov-posle-primeneniya-setfilter
Example from the documentation: https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/objectManager.OverlayCollection-docpage/#getLength If you do as in the example, it displays 0.