On Oct 27, 3:09 pm, patfee <[EMAIL PROTECTED]> wrote: > Hi, > > how can i prevent that the moveend event (GEvent.addListener(map, > "moveend", test);) is triggered when there is a openinfowindowhtml > open?
You can't stop the moveend event being triggered. You can set a flag variable when the infoWindow is opened to indicate that an infoWindow is being opened. You can then test for that flag in your moveend handler. If it's set, the moveend has been triggered by opening the infoWindow, so you can ignore it (and unset the flag to trap future moves). You can prevent the infoWindow from moving the map with an undocumented option, suppressMapPan:true. 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 Google-Maps-API@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---