On Sep 5, 1:09 pm, ss ss <[email protected]> wrote:
> Dear Larry,
>                Ok I have done as below and commented some it as below and it
> works now. Just few more thing how to avoid the shadow for the window and
> how to open the window based on the centre of my image?

Set the infoWindowAnchor appropriately.
  -- Larry

> Thank you.
>
>        var Icon2 = new GIcon();
>        Icon2.image = "vehicleIcons/2-"+imageName;
>        //Icon2.shadow = "vehicleIcons/2-"+imageName;
>        Icon2.iconSize = new GSize(40,40);
>        //Icon2.shadowSize = new GSize(60,40);
>        Icon2.iconAnchor = new GPoint(20,40);
>        Icon2.infoWindowAnchor = new GPoint(20,0);
>        //Icon2.printImage = "vehicleIcons/2-"+imageName;
>        //Icon2.mozPrintImage = "vehicleIcons/2-"+imageName;
>        //Icon2.printShadow = "vehicleIcons/2-"+imageName;
>        //Icon2.transparent ="vehicleIcons/2-"+imageName;
>        //Icon2.imageMap =
> [23,3,24,4,25,5,25,6,25,7,25,8,25,9,25,10,25,11,25,12,25,13,26,14,26,15,26, 
> 16,26,17,25,18,25,19,25,20,25,21,26,22,25,23,25,24,25,25,25,26,25,27,25,28, 
> 25,29,25,30,25,31,25,32,26,33,25,34,25,35,24,36,14,36,13,35,12,34,12,33,12, 
> 32,12,31,12,30,12,29,12,28,12,27,12,26,12,25,12,24,12,23,12,22,12,21,12,20, 
> 12,19,12,18,12,17,12,16,12,15,12,14,12,13,12,12,12,11,12,10,12,9,12,8,12,7, 
> 13,6,12,5,14,4,13,3];
>
>               v2icons[indexIcons]= Icon2;
>
> On Sun, Sep 5, 2010 at 9:29 PM, [email protected]
> <[email protected]>wrote:
>
>
>
> > On Sep 5, 5:27 am, ss ss <[email protected]> wrote:
> > > 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.
>
> > I said:
> > + Do new GIcon(); and completely define the icon per the
> > documentation.
>
> > + This page from Mike Williams' tutorial should also help:
> > +http://econym.org.uk/gmap/custom.htm
>
> > You haven't defined the icons completely.
>
> >  -- Larry
>
> > > On Sun, Sep 5, 2010 at 3:42 AM, [email protected]
> >  > <[email protected]>wrote:
>
> > > > On Sep 4, 3:26 pm, ss ss <[email protected]> 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, [email protected]
> > > > > <[email protected]>wrote:
>
> > > > > > On Sep 4, 2:38 pm, ss <[email protected]> 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
> > [email protected].
> > > > > > To unsubscribe from this group, send email to
> > > > > > [email protected]<google-maps-api%2Bunsubscribe@
> > > > > >  googlegroups.com>
> > <google-maps-api%2Bunsubscribe@ 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 [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-maps-api%2Bunsubscribe@
> > > >  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 [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<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 [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