Hi James, I assume the method we discussed in e-mail of using semitransparent markers didn't work out? I'd think you could do multicolored that way, but I haven't tried it. Do you have too many markers for that to be practical?
Otherwise, what's wrong with a grid-based approach? If you construct the grid programmatically, it shouldn't matter how fine it is, and determining density that way will still be O(n). I've used that approach for server-side clustering with good success on a number of projects, and it seems to me it'd be a reasonable approximation. A variation would be to use a grid to find "hotspots" - this is essentially what clustering does - then color each marker by its proximity to those. It'd require a couple of passes through the data, but still be O(n). String On Jan 27, 5:38 pm, jameslove <[email protected]> wrote: > Hi, > I'd like to calculate the rough proximity of markers on the server > side in order to alter the colour of markers which are clustered. For > scalability I'm thinking that a rough "as the crow" flies calculation > would be the most scalable. I can only think of a brute force method > where I compare each of the markers to all the others. > > The Clusterer class uses some sort of grid method, however I would > need to make a small grid in order to achieve the effect I am > desiring. I've got an approximation of a heat map, but I'd like to see > if I can make it in more than one colour by overlaying different > coloured semi-transparent custom icons. > > Is there another server side method that might be employed? Is there > anything from the Google API which would calculate the proximity of > markers? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
