W
W
Worddoc2018-02-01 14:07:42
JavaScript
Worddoc, 2018-02-01 14:07:42

How to hang a callback for rendering routes in Google Maps?

Hello.
I believe that the rendering of routes in Google maps is asynchronous, so I ran into the following problem: if you quickly clear the routes, and then draw, then complete chaos occurs. Those routes are drawn that do not need to be drawn by condition in js and vice versa, and without any logic. A sequence of asynchronous route renderings will solve this problem, but I don’t understand how to hang up a callback on new google.maps.Polyline(). Perhaps someone knows, or knows how to build a chain of asynchronous renderings for Google maps? Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question