kstukstu / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
0 stars 0 forks source link

MarkerClusterer removeMarkers - add opt_nodraw #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The removeMarkers method does not have the option to not redraw the cluster.
Please add "opt_nodraw" as second parameter and the 2 lines at the bottom:
    if (!opt_nodraw) {
        this.resetViewport();
        this.redraw();
    }

This helps improving performance if you have to remove an amount of specific 
markers and handle the redraw manually afterwards.

Thanks

Original issue reported on code.google.com by elak....@gmail.com on 30 Jul 2010 at 12:04

GoogleCodeExporter commented 9 years ago

Original comment by lu...@google.com on 6 Oct 2010 at 12:29