Berry, You were right, I had to load the blank array and then run setColor and it works like a charm. My app is 99% converted from v2 to v3 thanks to polycluster. Thanks so much for creating it, it is incredibly useful to me. Is there someplace where you announce new versions of polycluster so I can grab the one with the fixes when you finish it up?
On Oct 9, 12:01 pm, bratliff <[email protected]> wrote: > On Oct 9, 2:54 pm, Tim G <[email protected]> wrote: > > > > > cluster.setPixel(10); seems to have done the trick as far as fixing > > the rendering issues. I've also simplified the map quite a bit if you > > still need that. > > > One thing I did add was a "Remove Polycluster" button for testing > > purposes but I can't get it to work. I create an empty array as so > > (shorttrip being the path I want to delete): > > > var empty_array = {}; > > empty_array.shorttrip = []; > > > and then I do cluster.load(empty_array); > > > You had mentioned I just needed to reload the cluster with an empty > > array but I'm obviously doing something incorrectly. > > > Thanks again Berry, I appreciate you taking the time to look at all > > this stuff. > > Thanks Tim, > > PolyCluster itself cannot be discarded without total chaos. > > I use: > > cluster.load({shorttrip:[],othertrip:[], ... }); > > or > > cluster.load({shorttrip:null,othertrip:null, ... }); > > to discard polys. What you are doing appears to be equivalent. > > You may have to call "setColor" to flush the existing polys from the > screen. > > cluster.setColor(["shorttrip","othertrip", ... ],{}); > > PolyCluster ought to do it for you. It is a bug. I will fix it. > > I have found the other problem. I will have a solution soon. > > Thanks for your help providing a test case. > > Berry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
