If you've got many hundreds of hotspots, like Google layers can have, then using individual objects with "mouseover" settings is likely to be too slow.
What Google do is return a list of hotspot coordinates for each tile, then whenever the mouse moves, the API works out which tile the pointer is over, then compares the mouse position with the list of hotspot coordinates associated with that tile. I strongly suspect that the API uses a quadtree search to speed up the checking, but if you don't have too many hotspots per tile you get reasonable speed with a linear search. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
