The Gbounds() object tells you the dimensions of the visible map area,
so you need to calculate the lat lon offset between the edges and the
marker, then re-center the map to position the marker where you need
it - all from within the click event of the marker.  Of course, if the
'click' also opens an infowindow that's going to potentially move the
map again.

On Nov 15, 9:41 am, mmjaeger <[EMAIL PROTECTED]> wrote:
> Hello
> when I click on a marker, I like the map moved so the clicked marker
> would appear in e.g. the upper-left of the map canvas - hope somebody
> has an idea how this could be done.
>
> thank you in advance for your help.
--~--~---------~--~----~------------~-------~--~----~
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