Awesome...that did it Esa, thanks!

One last function I am working on adding...I want to be able to drag
the map and have an info Window pop-up with the coordinates of the
exact center of the rectangle.

If you have any quick code for that I would appreciate it.

On Jul 6, 3:19 pm, Esa <[email protected]> wrote:
> http://phonecaps.com/geoFinder.html
>
> I can see that you got a different idea. Opening the info window
> immediately when the newmarkeris created. I guess that the behavior
> is not exactly what you want. You cannot open the info window after
> you dragged themarker.
>
> I would suggest a simplified process for the map 'click' event:
>
> Instead of clearing overlays and creating a newmarker, just move the
> existingmarkerto 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);
>
> Tomakethe info window to indicate right coordinates, you should pass
> themarkerlocation 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 [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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to