Geocoding with Google Maps API - updating existing marker rather than adding another
问题 How, when geocoding, can you simply move an existing marker to the result of a new geocode result. Let's take this example: When the map loads, a marker appears When someone geocodes, the marker moves to the result The marker is draggable, so the user can further move the marker (if they want to) Perhaps they want to re-geocode a location, so the new result should automatically move the existing marker. In this sample: https://google-developers.appspot.com/maps/documentation/javascript