Hi Javier- Martin has put together a GNU-licensed solution for the JS API called ClusterMarker, which does visual clustering based on icon bounds. You can download it here and check it out: http://googlemapsapi.martinpearman.co.uk/downloads.php<http://googlemapsapi.martinpearman.co.uk/downloads.php?cat_id=1>
Look in particular at the "_filterIntersectingMapMarkers" function. - pamela On Tue, Dec 9, 2008 at 4:48 AM, Javier <[EMAIL PROTECTED]> wrote: > > Hello, i have tested and used the MarkerManager version for AS3, very > nice work. > But how be resolved the problem about grouping markers together based > on their distance from each other? > > I dont want markers start to overlap each other, so is there any > algorithm to calculate the distance in PIXELS between markers, and > cluster the markers wich start to overlap each other and with zoom in > shows the markers of this cluster if they dont overlap? > > I read about it could be done with Haversine formula and Pythagoras' > theorem, but i dont know how to put it all together.... > > Thanks. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
