add or subtract them, depending on which quadrant of the globe it's in
(whether it's + or - lat,  + or - lon)

On Nov 15, 10:05 am, mmjaeger <[EMAIL PROTECTED]> wrote:
> Thanks for your input - how would I calculate the lat lon offset then
> between the edges and the marker?
>
> On Nov 15, 3:51 pm, donb <[EMAIL PROTECTED]> wrote:
>
>
>
> > 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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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