Using v=2.x I am trying to centre a marker and display an info window
when a link is clicked. The trick is that I want the marker centred.
If I don't open the infowindow, then the panning works fine. But
whenever an info window opens it seems to abort the panning, even with
the undocumented "{suppressMapPan:true}" and when calling
openInfoWindow before starting the pan. For example, this does not
result in a centred marker:
marker.openInfoWindow(info_content, {suppressMapPan:true});
map.panTo(marker.getLatLng());
Any workarounds for this? I guess I could handle the moveEnd event and
open the info window there. Seems like this should be simpler...
-Brad
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---