First, grab the bounds of the map with LatLngBounds mapBounds = map.getBounds().
Then, use LatLng position of the InfoWindow and see if it is within the bounds: LatLng coords; ... if (!mapBounds.containsLatLng(coords)) { // move the info window ... } On Fri, Aug 28, 2009 at 12:36 AM, zinkronz network<zinkr...@gmail.com> wrote: > hello all, > > > i need help. how can i know the balloon is hidden after user drag the map to > another location? i want to re center the balloon if the balloon is not > visible after user drag map to another location. > > > Thanks > > Buzz > > > > -- Google Code Jam 2009 http://code.google.com/codejam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---