When you create a Marker, you need to specify the icon image you want to
use, and of course, the size of it.

For example:

        var baseIcon = new GIcon();
        baseIcon.shadow = "/sam/images/visor/shadow50.png";
        baseIcon.shadowSize = new GSize(50, 35);
        baseIcon.infoShadowAnchor = new GPoint(0, 0);
        baseIcon.infoWindowAnchor = new GPoint(0, 0);
        baseIcon.image = "/sam/images/visor/icon_transp.png";
        baseIcon.icon = "/sam/images/visor/icon_transp.png";
        baseIcon.iconSize = new GSize(28, 28);
        baseIcon.iconAnchor = new GPoint(0, 0);


and when crating your marker:

        function creaPuntoInteres(point, name) {
            var iconB = new GIcon(baseIcon);
            iconB.image = "images/custom_icon.png";
            markerOptions = { icon:iconB, title:name };
            var marker = new GMarker(point, markerOptions);
            return marker;
       }


Regards,
Carlos Montelongo


2008/10/6 bongii <[EMAIL PROTECTED]>

>
> How can I modify this example so it´s possible for me to change the
> icons to my own customize icons?
>
>
> http://code.google.com/apis/maps/documentation/examples/directions-simple.html
>
> F.eks: I´m making a Route between 4 shops and want the icons to be the
> shops logos.
>
> Is it possible?
> >
>

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