On Dec 17, 10:31 pm, Greg <gregfraz...@gfcpa.com> wrote: > My info windows contain lot's of info, so they can be a bit large. > When the user clicks on a marker to view the contents of the info > window, the map view moves well above the marker and the marker is no > longer in the map view. The user must manually search and navigate > back to the selected marker after they close the window. > > Is there a way to automatically snap the selected marker back to the > center of the map view after a large info window is closed?
Yes. Keep track of the last marker clicked in a global variable. When the infowindowclose event fires, center on it. I don't know how your map is currently set up since you didn't provide a link, but you will most likely need a global array of markers to do the above. -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---