Answer the question
In order to leave comments, you need to log in
Google maps initialization, how to add SetTimeout?
Peace for everyone! The problem is this:
There is a map at the link: cikadaweb.com/lion/store_locator
All content is output via JS from a JSON file.
Here is the JS: cikadaweb.com/lion/js/store_locator_page.js Specially commented out the code
Here is the JSON: cikadaweb.com/lion/js/bishkek_p.json
Due to some problem, as I believe due to the fact that js is not manages to make an AJAX request sometimes nothing is displayed, although the drop-down list should be displayed anyway.
With multiple updates, you will be taken to the case when nothing will be displayed.
Which solution would be better? Maybe add a SetTimeout or is there a better solution? And how to add SetTimeout if you use it?
Help to deal with the issue, as a gift to you a script) I think that sometimes it can come in handy.
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