hi i am using geocoder in order to search for a location and get a market 
pointed there. i get the first result with my code. what changes must i do 
in order to 
retrieve all results in a combobox so that the user can then select a 
diffrent one??can i use the html select?or better the asp dropdownlist
.thank you

function codeAddress() {
    var address = document.getElementById("address").value;
    geocoder.geocode( { 'address': address}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
          map.setCenter(results[0].geometry.location);
          contentString = address;
          var infowindow = new google.maps.InfoWindow({
              content: contentString
          });
          infowindow.setPosition(results[0].geometry.location);
        var marker = new google.maps.Marker({
            map: map,
            position: results[0].geometry.location
        });
        markersArray.push(marker);
        google.maps.event.addListener(marker, 'click', function() {
            infowindow.open(map, marker);
        });
      } else {
        alert("Location was not found, please try again");
      }
    });
  }

....
<input type="button" value="Find Street" onclick="codeAddress()"/>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to