Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New @turf/clusters module (getCluster, clusterEach, clusterReduce) #847

Merged
merged 11 commits into from
Jul 20, 2017
Prev Previous commit
Next Next commit
Improve example wording
  • Loading branch information
DenisCarriere committed Jul 18, 2017
commit 7d900c78611636599079e973bc7f4bc4766c2eae
2 changes: 1 addition & 1 deletion packages/turf-clusters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var clustered = turf.clustersKmeans(geojson);
var cluster = turf.getCluster(clustered, {cluster: 0});
//= cluster

// Retrieve custom properties
// Retrieve cluster based on custom properties
turf.getCluster(clustered, {'marker-symbol': 'circle'}).length;
//= 2
turf.getCluster(clustered, {'marker-symbol': 'square'}).length;
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-clusters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var featureCollection = require('@turf/helpers').featureCollection;
* var cluster = turf.getCluster(clustered, {cluster: 0});
* //= cluster
*
* // Retrieve custom properties
* // Retrieve cluster based on custom properties
* turf.getCluster(clustered, {'marker-symbol': 'circle'}).length;
* //= 2
* turf.getCluster(clustered, {'marker-symbol': 'square'}).length;
Expand Down