if (GBrowserIsCompatible()) {

var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

            var xml = GXml.parse(data);
            var markers =
xml.documentElement.getElementsByTagName("Marker");
            for (var i = 0; i < markers.length; i++) {
            var point = new
GLatLng(parseFloat(markers[i].getAttribute("lat")),
 
parseFloat(markers[i].getAttribute("lng")));

            var icon = new GIcon();
            icon.image = "http://maps.google.com/mapfiles/ms/micons/
red-dot.png";
            icon.iconSize = new GSize(32, 32);  /// (w,h)
            icon.iconAnchor = new GPoint(1, 25); // (w,h)
            icon.infoWindowAnchor = new GPoint(5, 1);

            var marker= new GMarker(point);
            map.addOverlay(marker);
            var a = markers[i].getAttribute("lat")
            GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml("test");
    });
            }
               });
}
}

I'm searching the forums trying to figure why the infoWindow will not
show. If i put an alert there, it will pop fine. Any suggestions???

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