Answer the question
In order to leave comments, you need to log in
Where is the error in Google map initialization?
Hello, tell me how to solve the problem.
There is a large JSON file, with several nested arrays. It was possible to extract the necessary data from it and run a loop to fill in several new google.maps.LatLng. Here is the entire function code jsfiddle.net/r04s32ph
JSON example:
{"stops" : [{"zoneId":"5522bdb1e4b047df5b5b7afa","coords"
:[],"name":"Ватутина","description":""}
Answer the question
In order to leave comments, you need to log in
And why are you making another, the same request inside the getJSON handler, only by native means?
$.getJSON('zones.json', function(data){
// В data будут JSON данные
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question