On Sep 10, 5:49 am, "Enric G. Torrents" <[email protected]> wrote:
> Hi all,
>
> I am creating a map with three categories of markers, called: events,
> institutions, and research_groups. I want each different kind of
> marker to be set in a different colour.
>
> The code is supposed to paint institutions blue, research groups red
> and events yellow. Right now it's painting institutions blue as
> expected, research groups yellow and completely ignoring all event
> markers.
>
> The code is the following:
>
Not really needed, you gave us a link (thanks).

>
>     var customIcons = [];
>     customIcons["association"] = iconBlue;
>     customIcons["research_group"] = iconRed;
>     customIcons["event"] = iconGreen;
This is what I see on the page:
//  customIcons["event"] = iconGreen;

>
> It was working fine since I introduced the third category and colour.
> Full code at:
>
> http://www.aiworld.co.uk/index.html
>
> You can find the list of markers 
> at:http://www.aiworld.co.uk/phpsqlajax_genxml3.php
>
> Any idea of what's going on?
It works as I expect in Chrome (blue, green and default markers).

It is a tad confusing that your iconRed is green:
iconRed.image = 'http://labs.google.com/ridefinder/images/
mm_20_green.png';

In IE8, your map div has zero size when the map is rendered.  And your
icons are not clickable (you haven't fully defined the icons).

  -- Larry



> Many thanks!!!!
>
> Enric G. Torrents
> aiworld.co.uk

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

Reply via email to