On Nov 20, 10:09 am, johnnyb <[EMAIL PROTECTED]> wrote: > I know that the windows are very tall, and that can be pretty ugly, > but that's not the actual problem. When I trigger a click event on a > marker, it opens the infoWindow as it should, but the marker itself > disappears if the map has to scroll the marker into the viewport, or, > I believe, if it zooms. It's tricky to see, but if you look closely > you will see that the infoWindow often comes from nothing.
This is because you are moving the map and attempting to open an infoWindow on a marker which isn't in view. You need to reinstate your .panTo line to move the map first TMM.map.panTo(new google.maps.Point(TMM.markers[i].X.lat,TMM.markers [i].X.lng)); but change it to TMM.map.panTo(new google.maps.LatLng(TMM.markers[i].X.lat,TMM.markers [i].X.lng)); so that it's moving the map to the marker location. (GPoint's arguments are lng,lat; GLatLng takes lat,lng. GPoint is deprecated) 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 -~----------~----~----~----~------~----~------~--~---
