How do i set custom icon on a polyline?

53 views
Skip to first unread message

123gotoandplay

unread,
Jul 22, 2011, 11:46:48 AM7/22/11
to google-map...@googlegroups.com
Hi,

Back in version 2 i had

function returnGIcon(type) {
    var icon =  new GIcon();
    switch(type) {

}
    return icon;
}

How do i use this in v3???
var path = new google.maps.Polyline({
path: coordinates,
strokeColor: "#FF0000",
strokeOpacity: 1.0,
strokeWeight: 2
});
hardloopRoutePath.setMap(map);//test


geoco...@gmail.com

unread,
Jul 22, 2011, 11:56:24 AM7/22/11
to Google Maps JavaScript API v3
Why would you use an icon for a polyline (in either v2 or v3)?

If you provided a link to your map(s), perhaps we might be able to see
what you were trying to do.

-- Larry
Reply all
Reply to author
Forward
0 new messages