Ok.. Now what I have come to figure out is, if the following chunk of
code is outside 'GDownloadUrl' then the length is 0 and if it is
inside 'GDownloadUrl' then length it is OK but not supposed to work -

alert("length: "+uniqe_tags.length);
              for(var i=0; i<uniqe_tags.length; i++){
                  //alert("length: "+uniqe_tags.length);
                   var temp_tag = uniqe_tags[i].toString();
                   gicons[temp_tag] = new
GIcon(baseIcon,tags_colors[i]);
                   //alert("gicons: "+gicons[i]);
               }
I apologize if that sounds naive.

Regards,
Eishita

On Jul 9, 1:01 pm, Eishita <[email protected]> wrote:
> You can try it now.
>
> On Jul 9, 7:12 am, "[email protected]" <[email protected]>
> wrote:
>
> > On Jul 9, 12:38 am, Eishita <[email protected]> wrote:
>
> > > Thanks I overlooked that. Even if I change the position of the snippet
> > > it's not working. I tried to see the length putting an alert, and in
> > > shows 4.
>
> > Your alert always shows 0 for me in Chrome.
>
> >   -- Larry
>
> > > On Jul 8, 9:20 pm, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Jul 8, 10:07 pm, Eishita <[email protected]> wrote:
>
> > > > > Oh I'm sorry. I missed that. Here's the link 
> > > > > -http://128.233.104.33/passgui/editLevel.php
>
> > > >  var uniqe_tags=[];
> > > >  <snip>
> > > >           for(var i=0; i<uniqe_tags.length; i++){
> > > >                    gicons[k] = uniqe_tags[i];
> > > > <snip>
> > > >            for(var i=0; i<uniqe_tags.length; i++){
>
> > > > Why do you think uniqe_tags.length is anything but zero?
>
> > > >   -- Larry
>
> > > > > On Jul 8, 7:50 pm, "[email protected]" <[email protected]>
> > > > > wrote:
>
> > > > > > On Jul 8, 9:44 pm, Eishita <[email protected]> wrote:
>
> > > > > > > Yes they are in local directory. But it is not showing me 
> > > > > > > anycustom
> > > > > > > icon. It shows me the default marker icon.
>
> > > > > > Link? [2nd request]
>
> > > > > > > On Jul 8, 6:43 pm, "[email protected]" <[email protected]>
> > > > > > > wrote:
>
> > > > > > > > On Jul 8, 8:38 pm, Eishita <[email protected]> wrote:
>
> > > > > > > > > Previously I had something like this -
>
> > > > > > > > >  var gicons = [];
>
> > > > > > > > >             var baseIcon = newGIcon(G_DEFAULT_ICON);
> > > > > > > > >             baseIcon.iconAnchor = new GPoint(9,34);
> > > > > > > > >             baseIcon.iconSize = new GSize(20,34);
> > > > > > > > >             baseIcon.infoWindowAnchor = new GPoint(9,2);
>
> > > > > > > > >            gicons["home"] = newGIcon(baseIcon,"yellow.png");
> > > > > > > > >            gicons["red"] = newGIcon(baseIcon,"red.png");
> > > > > > > > >            gicons["green"] = newGIcon(baseIcon,"green.png");
> > > > > > > > >            gicons["blue"] = newGIcon(baseIcon,"blue.png");*/
> > > > > > > > > It works fine.
> > > > > > > > > Instead of the previous thread I want to re-write it like 
> > > > > > > > > following -
>
> > > > > > > > > var tags = ["home", "red","green", "blue"];
> > > > > > > > > var tag_colors = ["yellow.png", "red.png", "green.png", 
> > > > > > > > > "blue.png"];
>
> > > > > > > > >            for(var i=0; i<tags.length; i++){
>
> > > > > > > > >               if(tags[i]!=null){
>
> > > > > > > > >                    gicons[tags[i]] = new
> > > > > > > > >GIcon(baseIcon,tags_colors[i]);
> > > > > > > > >               }
> > > > > > > > >            }
>
> > > > > > > > > But unfortunately it is not working. No idea why.
>
> > > > > > > > What do you mean by "not working"?
>
> > > > > > > > > Can anyone help me please?
>
> > > > > > > > Link?http://groups.google.com/group/Google-Maps-API/web/suggested-posting-......
>
> > > > > > > > Do the icons exist in the local directory?
>
> > > > > > > >   -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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