мангуста заполнить поле без опционной опции

Ничто не похоже на эти две строки в учебнике Майка Уильямса:

    wait = true;
    setTimeout("wait = true", 2000);

Вот порт версии 3:

http://acleach.me.uk /gmaps/v3/plotaddresses.htm

Соответствующим битом кода является

  // ====== Geocoding ======
  function getAddress(search, next) {
    geo.geocode({address:search}, function (results,status)
      { 
        // If that was successful
        if (status == google.maps.GeocoderStatus.OK) {
          // Lets assume that the first marker is the one we want
          var p = results[0].geometry.location;
          var lat=p.lat();
          var lng=p.lng();
          // Output the data
            var msg = 'address="' + search + '" lat=' +lat+ ' lng=' +lng+ '(delay='+delay+'ms)
'; document.getElementById("messages").innerHTML += msg; // Create a marker createMarker(search,lat,lng); } // ====== Decode the error status ====== else { // === if we were sending the requests to fast, try this one again and increase the delay if (status == google.maps.GeocoderStatus.OVER_QUERY_LIMIT) { nextAddress--; delay++; } else { var reason="Code "+status; var msg = 'address="' + search + '" error=' +reason+ '(delay='+delay+'ms)
'; document.getElementById("messages").innerHTML += msg; } } next(); } ); }

16
задан hhs 31 January 2013 в 14:19
поделиться