I have combined the code from 2 of Mike Williams' tutorials -
'categories' and 'custom tooltips', and the result is mostly
successful, except when I mouseover the markers, the same tooltip
(relevant to just 1 marker) keeps appearing instead of a different
tooltip for each marker.
You can see the example here:
http://www.peterbertelsen.com/map-test/categories-tooltips.html
The tooltips work correctly when you mouseover the sidebar text.
The code that is associated with the marker mouseover is here:
GEvent.addListener(marker,"mouseover", function() {
showTooltip(marker);
});
GEvent.addListener(marker,"mouseout", function() {
tooltip.style.visibility="hidden"
});
I suspect that, when merging the 2 sets of code, the above code
stopped looping through the markers correctly and is stuck on the
details for the last marker in the xml file. I'm sure the solution is
simple, but I can't find it myself.
Thanks in advance for any help you can give me.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---