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:
var iconGreen = new GIcon();
iconRed.image = 'http://labs.google.com/ridefinder/images/
mm_20_green.png';
iconRed.shadow = 'http://labs.google.com/ridefinder/images/
mm_20_shadow.png';
iconRed.iconSize = new GSize(12, 20);
iconRed.shadowSize = new GSize(22, 20);
iconRed.iconAnchor = new GPoint(6, 20);
iconRed.infoWindowAnchor = new GPoint(5, 1);
var customIcons = [];
customIcons["association"] = iconBlue;
customIcons["research_group"] = iconRed;
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?
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.