Answer the question
In order to leave comments, you need to log in
How can I remove added tags from Yandex.Maps 2.0?
Good evening!
How can I remove added markers from the map? I'm using this example from the docs, just changing the code slightly to add a new label each time the map is clicked:
myMap.events.add('click', function (e) {
var coords = e.get('coords');
myPlacemark = createPlacemark(coords);
myMap.geoObjects.add(myPlacemark);
myPlacemark.events.add('dragend', function () {
getAddress(myPlacemark.geometry.getCoordinates());
});
}
getAddress(coords);
});
myCollection.events.add('click', function (e) {…})
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