Wasn't it Martin who wrote:
>
>I had this problem using my ClusterMarker and found a simple solution.
>
>Instead of using the GMarker openInfoWindowHtml() method, i used the
>GMap2 openInfoWindowHtml() method.
>
>That way the infowindow doesn't close when a managed marker is redrawn
>when then map pans to display the infowindow.

To position the infowindow correctly relative to the marker when using
that technique, you can do this:

 var iwAnchor = marker.getIcon().infoWindowAnchor;
 var iconAnchor = marker.getIcon().iconAnchor;
 var offset = new
GSize(iwAnchor.x-iconAnchor.x,iwAnchor.y-iconAnchor.y);
 map.openInfoWindow(marker.getLatLng(), html, {pixelOffset:offset});

If you don't do that, then the info window opens with the point of the
stem touching the base of your marker.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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