If anyone could shed some light on a problem I'm having I'd be very grateful.
I've written a map which plots some points from a database. You can see a static version of the map here: http://www.richlyn.co.uk/googlemap.html The 'points' are displayed as circular polygons. These are/should be destroyed and recreated when an option is changed. Also, as you will see the circles should get smaller as you zoom into the map to allow you to see what's going on in popular areas. What's happening is that as you zoom right in and zoom right out again every now and then a polygon appears to get 'detatched' and just float around. A call to clearOverlays() doesn't seem to shift it. Its clearly a memory leak somewhere. I should point out I've just tried to reproduce it and it (stubbornly) seems to be working quite well now >: ( I can still simulate the problem (In Google Chrome, I should add) but only after a lot more twiddling. Through Visual Studio it was buggering up the polygons after just a few clicks. I've been trying for hours to delete any objects I create, but the javascript garbage collection doesn't seem to be on my side. If I could reassign the properties of the polygons I'd do that, but it seems I can't access the polygon's properties. The only place I've been able to do that is on the mouseover event, where I've used setFillStyle to change the fill colour. I also can't seem to be able to just delete and recreate the entire map. The only way I can see to do this at the moment is to just reload the entire page but that really isn't pretty. Could someone give me some pointers please? Cheers Rick --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
