Dear Larry, As per advice now I have define is below but the icon is still not appearing either too. What else is my mistake ya. Thank you.
for(var i=0; i<360 ; i=i+10) { var imageName = ""; if(i<100) { if(i==0) { imageName = "00"+i+".png"; } else { imageName = "0"+i+".png"; } } else { imageName = i+".png"; } alert("imageName : "+imageName); var Icon1 = new GIcon(); Icon1.image = "vehicleIcons/1-"+imageName; Icon1.iconSize = new GSize(40, 40); v1icons[indexIcons]= Icon1; var Icon2 = new GIcon(); Icon2.image = "vehicleIcons/2-"+imageName; Icon2.iconSize = new GSize(40, 40); v2icons[indexIcons]= Icon2; var Icon3 = new GIcon(); Icon3.image = "vehicleIcons/3-"+imageName; Icon3.iconSize = new GSize(40, 40); v3icons[indexIcons]= Icon3; var Icon4 = new GIcon(); Icon4.image = "vehicleIcons/4-"+imageName; Icon4.iconSize = new GSize(40, 40); v4icons[indexIcons]= Icon4; var Icon5 = new GIcon(); Icon5.image = "vehicleIcons/5-"+imageName; Icon5.iconSize = new GSize(40, 40); v5icons[indexIcons]= Icon5; var Icon6 = new GIcon(); Icon6.image = "vehicleIcons/6-"+imageName; Icon6.iconSize = new GSize(40, 40); v6icons[indexIcons]= Icon6; indexIcons++; } On Sun, Sep 5, 2010 at 3:42 AM, geocode...@gmail.com <geocode...@gmail.com>wrote: > On Sep 4, 3:26 pm, ss ss <shaisoftwa...@gmail.com> wrote: > > Dear Larry, > > I prefer to go with the first link of the google map > > documentation. > > That is your choice. Mike's tutorial has a lot of useful information > that didn't make it into the documentation. > > > I am confuse how to add now in this function > > v1icons[indexIcons]= new GIcon(G_DEFAULT_ICON, > > "vehicleIcons/1-0"+i+".png"); the size property? > > As I said below use GIcon() (don't give the constructor any arguments, > don't use G_DEFAULT_ICON, don't include the image URL). Then define > all the properties listed in the documentation. > > Good luck. > -- Larry > > > I want the size property > > to be in when it goes into the array. Thank you. > > > > On Sun, Sep 5, 2010 at 3:12 AM, geocode...@gmail.com > > <geocode...@gmail.com>wrote: > > > > > > > > > On Sep 4, 2:38 pm, ss <shaisoftwa...@gmail.com> wrote: > > > > Dear All, > > > > I am creating an array of custom icons.Below is partial > > > > of my code. The problem I dont know how to add the size and how to > > > > make sure no shadow. Earlier when I use like this > v1icons[indexIcons]= > > > > new GIcon(G_DEFAULT_ICON, "vehicleIcons/1-0"+i+".png"); it works > > > > perfectly fine but I can not control the size. Any idea how to solve > > > > it? > > > > > Don't do that. Do new GIcon(); and completely define the icon per the > > > documentation. > > > > >http://code.google.com/apis/maps/documentation/javascript/v2/referenc. > .. > > > > > This page from Mike Williams' tutorial should also help: > > >http://econym.org.uk/gmap/custom.htm > > > > > -- Larry > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google Maps API" group. > > > To post to this group, send email to google-maps-...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-maps-api+unsubscr...@googlegroups.com<google-maps-api%2bunsubscr...@googlegroups.com> > <google-maps-api%2Bunsubscribe@ googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-api?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API" group. > To post to this group, send email to google-maps-...@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-api+unsubscr...@googlegroups.com<google-maps-api%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.