On Oct 8, 4:15 pm, Tim G <[email protected]> wrote: > Berry, > > I figured out I can just reload the polycluster object and it deleted > the old overlay. So with that sorted, everything seems to be working > well except at the higher zoom levels there seems to be issues > rendering the line similar to the problems I was having using the > Google's Polyline. Here is my example.. I tried to make it as simple > as I could while still having the code work: > > http://www.dgcoursereview.com/google_simple/beta_cluster_map.php > > Also, is there a way to remove the overlay? setMap(null) wasn't > working. Do I just set the color to be clear as you did on your > examples? > > Thanks again, > Tim
Think of PolyCluster like an extension of the API rather than an OverlayView object. You never have to remove it. You do not require multiple PolyClusters. Just load your polys separately or together. To destroy a poly, just reload it with an empty array. PolyCluster will discard the related "cache" elements. If you can eliminate the use of the "new google.map.LatLng()" constructor, you will improve performance significantly. You will be able to eliminate your "toPolyCluster" function too. To simplify it to the point I can diagnose it, hard code your poly array. It is really one array containing several other arrays. Please remove all bells and whistles from your map. I have a limited amount of time to spend looking at it. With nothing superfluous, I will be able to examine the error. Thanks very much. -- 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.
