E
E
execto2019-03-27 10:25:42
JavaScript
execto, 2019-03-27 10:25:42

How to make Yandex map behave like in Yandex.Taxi?

Good afternoon.
Please tell me which way to dig in order to get closer to the behavior similar to Yandex taxi, and more specifically, so that when you move the map, the label remains in the center of the screen, and then reads its position.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2019-03-27
@execto

map.events.add('boundschange', function(e) {
  placemark.geometry.setCoordinates(e.get('newCenter'));
});

D
Dmitry, 2019-03-27
Chainikov @Dan_Stanly

Read the Yandex Maps Developer Guide

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question