>I guess I would have to add marker.openInfoWindowHtml(address);
>somewhere, but how?

A few changes

function place(lat,lng,html) {
        var point = new GLatLng(lat,lng);
        map.setCenter(point,14); 
        map.addOverlay(new GMarker(point));
        map.openInfoWindowHtml(point,html);
        document.getElementById("message").innerHTML = "";
      }.


// Loop through the results
for (var i=0; i<result.Placemark.length; i++) {
 var p = result.Placemark[i].Point.coordinates;
 var address = '"'+result.Placemark[i].address+'"';
document.getElementById("message").innerHTML += "<br>"+(i+1)+": <a href=
'javascript:place(" +p[1]+","+p[0]+"," + address +  ")'>" +
result.Placemark[i].address + "<\/a>";
 }

// ===== If there was a single marker =====
else {
document.getElementById("message").innerHTML = "";
var p = result.Placemark[0].Point.coordinates;
var address = result.Placemark[0].address;
place(p[1],p[0],address);
}

This code is meant to demonstrate what's needed, if copied it might not
work. 

Ralph



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to