Is there an opposite of "mouseover" such as "mouse not over"?
On Mar 26, 11:58 am, Andrew Leach <[email protected]> wrote: > On Mar 26, 3:48 pm, ruzshams <[email protected]> wrote: > > >http://www.geocities.com/rafayshams89/gmaps.html > > Thanks. You can make improvements to your code by defining *all* your > polygons first. Just add the green ones to the map, and have the white > ones in reserve for later. > > So you could have polygon_Brampton1 AND polygon_Brampton2 defined to > start with. On mouseover of Brampton1, remove the polygon and add the > Brampton2 polygon. > > If that still takes too long, don't bother removing the green polygon. > Just add the white one and remove that on mouseout, revealing the > green one still underneath. > > Currently, you are building the new white polygon after removing the > green one, and that takes time. If it takes too long, the mouseout > listener hasn't been added by the time the mouse has left the polygon, > so moving the mouse out of the polygon doesn't do anything. The > listener gets added at some point, ready for when you next mouseover/ > out of the white polygon. > > > i don't know how to add debugging tools > > Debugging tools are a different matter altogether, and are added to > the browser itself, not your code. Firebug is an extension to Firefox, > for example. > > 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 -~----------~----~----~----~------~----~------~--~---
