That was it. Thanks. It was driving me nuts.
On Jan 6, 12:01 pm, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Jan 6, 5:57 pm, devlavigne <[email protected]> wrote:
>
> > Andrew looks like my link made it up before your post - sorry.
>
> Not to worry. The problem is here:
>
> var symboltype = 'symbol' + pointtype;
>
> where you create a **string** resulting in a value of, say, "symbol6"
> and attempt to use that string as an icon with {icon:symboltype}.
> That's the same as writing {icon:"symbol6"}, not {icon:symbol6}
>
> The icon needs to be a GIcon object not a string, so you could
> probably do
> var symboltype = eval('symbol' + pointtype);
> which would evaluate "symbol6" and return the object with that name.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---