Answer the question
In order to leave comments, you need to log in
Guys, how to delay the initialization of the map?
How to make a delay before 2gis initialization?
I want to do a lazy load.
function map2Gis(){
DG.then(function() {
map = DG.map("map", {
center: [55.72083, 37.637142],
zoom: 15
}), DG.marker([55.72083, 37.637142]).addTo(map)
})
}
setTimeout(map2Gis, 12);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question