T
T
TheVit2017-09-09 23:15:39
Yandex maps
TheVit, 2017-09-09 23:15:39

How to move a Yandex.Maps 2.1 tag?

Greetings. There is an excellent example of changing coordinates: https://tech.yandex.ru/maps/jsbox/2.1/event_properties How to supplement it so that a marker (mark) appears on the first click, and when you click to another place on the map, it is rearranged. I ask in advance in detail, because newbie.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheVit, 2017-09-09
@TheVit

myMap.events.add('click', function(e) {
myPlacemark.geometry.setCoordinates(e.get('coords'));
myMap.geoObjects.add(myPlacemark);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question