You dont have the markerOptions in your GMarker() parameter so please try
the following code. I hope It may help you

for(i = 0;i<latlong.length;i++){
            *j=i+1;
            var letter = String.fromCharCode("A".charCodeAt(0) + j);
            var letteredIcon = new GIcon(baseIcon);
            letteredIcon.image = "http://www.google.com/mapfiles/marker"; +
letter + ".png";
            markerOptions = { icon:letteredIcon, draggable:false };*
            var marker = new GMarker(latlong[i]*, markerOptions*);
            marker.num = i;

            GEvent.addListener(marker , "click", function()
            {
            marker.openInfoWindow(text[marker.num]);

            });

            map.addOverlay(marker);
       }










On Thu, Sep 4, 2008 at 10:43 AM, Karl <[EMAIL PROTECTED]> wrote:

>
> This code
>
>        for(i = 0;i<latlong.length;i++){
>
>                var marker = new GMarker(latlong[i]);
>                marker.num = i;
>
>                GEvent.addListener(marker , "click", function()
>                {
>                        marker.openInfoWindow(text[marker.num]);
>
>                });
>
>                map.addOverlay(marker);
>        }
>
>
> causes the same marker to open when clicked
>
> I did same as:
> http://code.google.com/apis/maps/documentation/examples/icon-custom.html
>
>
> >
>

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