E
E
E6APB2017-10-05 07:05:44
JavaScript
E6APB, 2017-10-05 07:05:44

How to smooth marker movement on the map?

There is an openstreetmap. It is used to track the shuttle bus. The data is updated every 10 seconds. And, of course, the marker twitches. I look at Yandex Transport - everything is smooth with them. How to implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2017-10-05
@E6APB

Because you don’t need to immediately insert the marker into the right place, but slowly lead it there. Yes, there will be a lag. But you can not wait for the next answer, but interpolate the movement further and correct it when you get the exact coordinates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question