Directions Tab with the same icon
Hello Again,
http://www.adgeomatics.com/Test4 is my mapping project page.
I have looked up how to add a directions tab to my infowindow;
however, there seems to be no examples that use just one custom icon.
The examples that I have seen: http://www.geocodezip.com/mapXmlTabsDirections.asp
etc. use the same parameters as the google icons.
How is it possible to change this code to be used for one custom icon
instead of different colors?
From geocodezip:
function get_icon(iconColor) {
if ((typeof(iconColor)=="undefined") || (iconColor==null)) {
// iconColor = "red";
return;
}
if (!icons[iconColor]) {
icons[iconColor] = new GIcon(icons["red"]);
icons[iconColor].image = "mapIcons/marker_"+ iconColor +".png";
}
return icons[iconColor];
Thanks for your help/links.
Regards,
Adam
--
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-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home