Chad, Many thanks for your code! Using it at,
http://www.micro-active.com/maps/map7-v3-api-4.htm The previous marker is removed and the next marker appears. But! The infowindow keeps the same address data. How do I get it to have the new data? I have tried several versions but no luck so far. The code is as below. I don't understand why there is the { at ***. Could you possibly put in all the { and }s and perhaps I will get it .... Cheers Geoff if (geocoder) { geocoder.geocode( { 'address': address}, function (results,status) { *** if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); if(marker) { marker.setPosition(results[0].geometry.location); } else { marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); } infowindow.open(map,marker); } else { alert("Geocode was not successful for the following reason:" + status); } }); } } -- 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.
