Tuesday, May 25, 2010

Re: Directions Tab with the same icon

On May 25, 7:42 pm, adembe <ade...@gmail.com> wrote:
> Hello Again,
>
> http://www.adgeomatics.com/Test4is 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?

What are you trying to do? The tabs and the icon are separate. If
you just want a single custom icon, remove the get_icon function calls
and replace them with a reference to your icon.

-- Larry

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


Real Estate