K
K
Klein Maximus2017-11-22 23:14:20
JavaScript
Klein Maximus, 2017-11-22 23:14:20

How to get all placemarks of a map in Yandex.Maps if there is only an instance of the Map itself?

Actually, the question is in the title.
Only the map instance is passed to the function after it has been initialized.
How can I get a list of the current placemarks placed on the map?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iKest, 2017-11-23
@kleinmaximus

map.geoObjects.each(function (geoObject) {
if (geoObject.properties.get('type') == 'point') {
// do something
...
return false;
}
});
Something like this...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question