Google Maps Custom Icons

Hey All,

I’m running into an issue where I’m placing custom markers on the Google map using a list of lat/long and iterating through the list. It works great, until I get the last icon in the list - stops working and shows only the default Google marker. Has anyone run into this issue before? Anyone see anything in my code below that may cause the problem? Thanks in advance.

Mat


for (var i:uint = 0; i<propArray.length-1; i++) {
        trace(i);
        var propItems;
        propItems = propArray*.split(';');
        var propName = propItems[0];
        var LatLong = propItems[1].split(",");
        var Latitude = LatLong[0];
        var Longitude = LatLong[1];
        var fAddress = propItems[2];
        var pType = propItems[3];
        var pID = propItems[4];
        trace(pID);
        var currentNumber:String = String(i+1);
        if (i==0) {
            doGeocode(fAddress);
            map.visible = true;
        }
        selectList.addItem({data:pID,label:(i+1) + ". " + propName});
        var marker:Marker = new Marker(new LatLng(Latitude,Longitude),markerOptions);
        var markerOptions:MarkerOptions = new MarkerOptions();
        var markerIcon = new City_Icon();
        markerIcon.cityNumber.text = i+1;
        var iconColor:ColorTransform = markerIcon.iconbg.transform.colorTransform;
        markerIcon.iconbg.transform.colorTransform = iconColor;
        markerIcon.stud = propItems[4];
        markerOptions.icon = markerIcon;
        markerOptions.hasShadow = true;
        markerIcon.markerText.text = pID;
        markerIcon.addEventListener(MouseEvent.MOUSE_DOWN, getPropURLM);
        map.addOverlay(marker);