nomo-kazza / google-maps-utility-library-v3

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

Patch to allow MarkerClusterer to be paused #263

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
MarkerClusterer

I've add a flag to pause markerClusterer behaviour.
It should work like this:

var mapMarkerCluster = new MarkerClusterer(map, markers, conf);

...

jQuery.on("myEvent", function(){
   // maybe a resetViewport() could be necessary
   mapMarkerCluster.onPause = true;
});

// From now on markerClusterer won't cluster markers

jQuery.on("myOtherEvent", function(){
   mapMarkerCluster.onPause = false;
});

// From now on markerClusterer will cluster markers again

I've attached a diff file

Original issue reported on code.google.com by filippo....@gmail.com on 3 Jul 2013 at 8:37

Attachments: