карте, но он этого не делает
                  
                  
                  <script>var addressesArray = ['Москва','Ижевск','Саратов','Казань','Иркутск',];
                  
                  
                                //loop all the addresses and call a marker for each one
                  
                  
                                for (var x = 0; x < addressesArray.length; x++) {
                  
                  
                                  $.getJSON('http://maps.googleapis.com/maps/api/geocode/json?address='+addressesArray[x]+'&key=ключ'), null, function (data) {
                  
                  
                                      var p = data.results[0].geometry.location
                  
                  
                                      var latlng = new google.maps.LatLng(p.lat, p.lng);
                  
                  
                                      var aMarker= new google.maps.Marker({
                  
                  
                                          position: latlng, //it will place marker based on the addresses, which they will be translated as geolocations. 
                  
                  
                                          map: map 
                  
                  
                              
                  
                  
                                      });}}</script>
                  
                  
                  сама карта
                  
                  
                  <iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=Ижевск&key=тут_мой_ключ" allowfullscreen=""></iframe>
                  
                  
                  Что я делаю не так?
                  
                  
                
Обсуждают сегодня