Your code opens an infowindow for every marker but it`s empty the content
isn`t displayed
function addMarker():void
{
for (var j:int=0; j<loadedData.length; j++)
{
var markerPin:pa_icon = new pa_icon();
var marker:Marker = new Marker(new
LatLng(loadedData[j][9],loadedData[j][10]),new MarkerOptions({
hasShadow: true,
icon:markerPin
})
);
var titlu = loadedData[j][1];
var infowindow:InfoWindowOptions = new InfoWindowOptions({content:titlu});
marker.addEventListener(MapMouseEvent.CLICK,
function(event:MapMouseEvent)
{event.currentTarget.openInfoWindow(infowindow);});
// add marker to map
map.addOverlay(marker);
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" 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-for-flash?hl=en.