Thank you for your helpful and speedy reply.

I changed my implementation so when the lightbox is closed, it then
opens the infowindow. Not an absolutely perfect solution, but good
enough.

Thanks again



On 9 Jan, 12:23, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Jan 9, 12:01 pm, David <[email protected]> wrote:
>
>
>
> > which is then used in the function myclick:
>
> > function myclick(i)
> >         {
> >         GEvent.trigger(gmarkers[i], "click");
> >         }
>
> > Can anyone provide any guidance? Many thanks for any help in advance.
>
> I think you are using map controls as your "lightbox" effect. When you
> click on the > arrow, say, it triggers opening the infoWindow on the
> linked marker. When the API opens an infoWindow, it will move the map
> in order to avoid any controls -- including your lightbox. This means
> that it moves the infoWindow off the bottom of the map.
>
> The lightbox itself is rather good, and probably deserves to be used
> as a reference example.
>
> One way around the undesirable movement might be to subvert the normal
> behaviour by -- instead of simply opening an infoWindow -- explicitly
> centring the marker in the map and using the [undocumented] option
> {suppressMapPan:true} so that opening the infoWindow doesn't move the
> map.http://econym.org.uk/gmap/reference.htm#openInfoWindow
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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