O
O
ortsuev332018-10-06 11:49:36
Yandex maps
ortsuev33, 2018-10-06 11:49:36

How to track the loading of the yandex api map?

By default, I have a map display none; when I click on li with cities, it appears, the fact is that if the map does not have time to load geocoding does not work, how can I track the loading of the map

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2018-10-06
@ortsuev33

This is the very first example you should have found, withymaps.ready

ymaps.ready(function(){
                var myMap = new ymaps.Map("map", {
                        center:[55.76, 37.64], // Москва
                        zoom:2
                    });
             });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question