just set the position of the marker every time you click the map.
google.maps.event.addListener(map, 'click', function(event){
marker.setPosition = event.latLng;
})
if the infowindow is anchored to the marker, it should follow.
if you need to change the content of the infowindow, use
infowindow.setContent()
so perhaps:
google.maps.event.addListener(map, 'click', function(event){
marker.setPosition = event.latLng;
infowindow.setContent(content)
})
the issue of having multiple markers and multiple infowindows, result
from calling 'new google.maps.Marker/infoWindow' multiple times. Call
them once and you shouldn't have any problems just update their
content and position.
--
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.