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 On Oct 8, 11:10 am, bratliff <[email protected]> wrote: > On Oct 8, 2:01 pm, Tim G <[email protected]> wrote: > > > Ah, sorry about that. I have tried to simplify it a little more. You > > can find my use of polycluster on line 331 of the file below: > > >http://www.dgcoursereview.com/google_example/templates/routemap_main_... > > > highPoints is the array of points from the directionspolyline. I > > convert them to the polycluster format using a function I found in > > another thread in the group (toPolyCluster > > fromhttp://www.william-map.com/20100717/2/test.htm?polyline,0). > > > I am using the polycluster.js file linked from this > > example:http://home.provide.net/~bratliff/polycluster/v3/hawaii.html > > Can you simplify it further with nothing except PolyCluster calls ? > "toPolyCluster" is unnecessary. Just use a double array of {x:,y:} > objects. Look at "hawaii.raw" for an example. The API requires every > vertex to execute a "new google.maps.LatLng()" constructor which seems > ridiculous to me. PolyCluster uses JavaScript arrays directly. -- 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.
