Skip to content

Instantly share code, notes, and snippets.

@abhisuri97
Created March 18, 2017 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhisuri97/599ef66297f8c21c603fd33f7407b7b2 to your computer and use it in GitHub Desktop.
Save abhisuri97/599ef66297f8c21c603fd33f7407b7b2 to your computer and use it in GitHub Desktop.
var lv = new PruneClusterForLeaflet(160);
mymap.addLayer(lv); // mymap is a leaflet map
var os = oboe()
os.node('locations.*', function(location) {
var marker = new PruneCluster.Marker(location.latitudeE7 * SCALAR_E7,
location.longitudeE7 * SCALAR_E7);
lv.RegisterMarker(marker);
return oboe.drop;
}).done('done');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment