I've successfully added  icons using:

var tinyIcon=new GIcon();

                // Create my "tiny" marker icon
                tinyIcon.image = "http://labs.google.com/ridefinder/
images/mm_20_red.png";
                tinyIcon.iconSize = new GSize(12, 20);

                //tinyIcon.shadowSize = new GSize(22, 20); //made it
worse
                tinyIcon.iconAnchor = new GPoint(6, 20);
                tinyIcon.infoWindowAnchor = new GPoint(5, 1);

                markerOptions = { icon:tinyIcon };

                var mylat = Lat.toString();
                var mySplit = mylat.split(',');

                for(i=0; i < mySplit.length; i++)
                {
                    try{
                        var LatD = parseFloat(mySplit[i]);
                        i++;
                        var LongD = parseFloat(mySplit[i]);
                        var point = new GPoint(LongD,LatD);

                        map.addOverlay(new GMarker(point,
markerOptions));
                        map.setCenter(new GLatLng(LatD,LongD),10);
                        latcntr = latcntr + LatD;
                        llongcntr = llongcntr + LongD;
                    }
                    catch(err)
                    {
                    }
              }

but the backgound of the icon is always visible. I've tried several
links to various other icons, but they are all the same.

Ideas?

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