> Hum, I undesterstand my problem now but how fix this ? Let's put it simply
> But your codeAddress() function defines a new local marker > var marker = new google.maps.Marker(); > that you don't need at all. So, it's not needed. Take that line away in codeAddress(). > codeAddress() places that new marker > marker.setPosition(results[0].geometry.location); > marker.setMap(map); > instead of using placeMarker() to control the global one. So, take those lines away. Replace with a call to placeMarker(). See if you can work out what argument to pass to placeMarker() when you call it. -- 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.
