http://phonecaps.com/geoFinder.html
I can see that you got a different idea. Opening the info window immediately when the new marker is created. I guess that the behavior is not exactly what you want. You cannot open the info window after you dragged the marker. I would suggest a simplified process for the map 'click' event: Instead of clearing overlays and creating a new marker, just move the existing marker to the click point. Replace these lines: map.clearOverlays(); marker = new GMarker(centerPoint, {draggable: true}); map.addOverlay(marker); map.panTo(centerPoint); marker.openInfoWindowHtml(infoWindow(centerPoint)); by: marker.setLatLng(centerPoint); map.panTo(centerPoint); To make the info window to indicate right coordinates, you should pass the marker location to your infoWindow() function. Replace marker.openInfoWindowHtml(infoWindow(centerPoint)); by marker.openInfoWindowHtml(infoWindow(marker.getLatLng())); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---