Skip to main content

cluster

Function cluster 

Source
pub fn cluster(markers: &[LonLat], zoom: u8, cell_px: f64) -> Vec<Cluster>
Expand description

Cluster markers with a grid of cell_px pixels at zoom.

Markers falling into the same grid cell are merged. Single-marker cells are returned as clusters with count == 1.